LNS web: the lns:// protocol
How an LNS name points to a website, how the site's files are stored and checked, and how they are shown. Written as a specification, in plain English.
Draft, 27 November 2026. Describes Names Browser 0.4.6 with core 0.3.6, the gateway at <name>.lnsweb.online (round 3, live), and lns publish, on the LEZ 0.4 testnet line.
Abstract
LNS is built for privacy first. The chain never learns a name: the registry knows each one only by an identifier derived with a slow, memory-hard hash, and keeps what it resolves to encrypted. It does not store who holds a name, and a private holder's account is never shown (a path specified but not yet run on LEZ 0.4). Pages run no code, so they cannot track the people who read them. Accessibility is the second core goal: a site must be readable by everyone, including people who use assistive technology (section 3).
LNS web lets anyone publish a website under an LNS name and open it as lns://name. The name's record on the LEZ chain pins the SHA-256 of one small text file, the root list. The root list names each file and folder of the site by its Logos Storage content ID and its SHA-256, and each folder has a list of its own. A client resolves the name, fetches the lists and files from Logos Storage, refuses any byte that does not match the hash pinned above it, and draws the page under a fixed content profile that runs no page code. This document specifies what each party can and cannot learn, the record fields, the lns-links/1 list format, the checks a client makes, the content profile, the HTTPS gateway, and the lns publish tool. It also says plainly what the design does not yet protect against.
Privacy at a glance
- Names: never on chain, only an Argon2id identifier. A guessable name is still public (section 2.2).
- Holders: the record keeps a tag, not an account. A private holder is hidden (not yet run on LEZ 0.4); a public one can be found (section 2.3).
- Registration: commit, then reveal; the commitment shows nothing. A private registration hides the account, once that path runs on LEZ 0.4 (section 2.4).
- Payments: private by default when a name has receiving keys. A public account on a name shows its balance (section 2.5).
- Browsing: your RPC sees which names you open, Storage peers see your IP address and CIDs, and pages see nothing (sections 2.6 to 2.10).
- Publishing: the record update, the whole file tree and your address to your Storage node are public (section 2.11).
- Accessibility is the second core goal, next to privacy (section 3).
Status of this document
- Draft, dated 27 November 2026. This is the first edition written as a specification. It replaces the one-page "LNS web standards" summary that was published here before.
- It describes these builds:
- Names Browser 0.4.6 with core 0.3.6, the Logos Basecamp app (native renderer, no web engine). The earlier WebKit browser line (LNS Browser 0.3.0 / core 0.2.0) is superseded and not covered here.
- The gateway at
<name>.lnsweb.online, round 3 (sanitizer revisions3), live. lns publishfrom the same source as the gateway.- The LNS registry currently deployed on the LEZ 0.4 testnet line (rc3), program account
6Yxj5k8A…XXN3gA(in full in Appendix C.5). LEZ 0.4.0 is released and the registry moves to it in a new deployment (section 1.6 and section 4.9). Tokens and names on testnet have no money value.
- It records what the code does today. Everything here can change, and nothing is stable until a later edition says so. Where this document and the code disagree, the code is what runs; please report the difference.
- History is in Changes.
Conventions and terminology
The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, NOT RECOMMENDED, MAY and OPTIONAL in this document are to be read as described in BCP 14 (RFC 2119 and RFC 8174) when, and only when, they appear in capitals, as shown here.
A requirement is stated only where the current code enforces it, and each one says where. Requirements are shown in a box like this:
A client MUST refuse any file whose SHA-256 differs from its pinned hash.
Each box ends with where the rule is enforced in the code.Text without a capitalised key word describes what the current implementation does. It is not a requirement on other implementations.
Sizes: 1 KiB is 1,024 bytes and 1 MiB is 1,048,576 bytes. Hashes are written in lower-case hex. Examples use the name alice. Long hashes are shortened with "…" where noted.
Terms
- LNS name
- A name in the Logos Name Service, such as
alice: 1 to 32 characters ofa-z,0-9and-, written bare (section 4.1). - Record
- What a name resolves to: an encrypted profile stored by the LNS registry on LEZ, holding up to 16 text entries. A site is set through text entries in the record (section 4.4).
- Page (on-chain page)
- A second, larger encrypted slot each name has on chain, up to about 80 KiB. It can hold a one-page site or a small root list (section 4.5).
- CID
- A Logos Storage content ID. Clients use it only to find bytes; the bytes are checked by SHA-256, not by the CID.
- Pinned hash
- The SHA-256 written next to a CID by the step above it: the record pins the root list, and each list pins its files and subfolders.
- Root list
- The
lns-links/1list for the site's top folder. Its CID and hash are in the record. - Folder list
- The
lns-links/1list for any other folder. It is pinned by a line in its parent's list. - Client
- Anything that resolves
lns://addresses and shows or serves the result. The Names Browser and the gateway are both clients. - Gateway
- A client that serves LNS sites over HTTPS to ordinary web browsers, at
<name>.lnsweb.online(section 8). - Publisher
- A tool that turns a folder into lists, uploads it, and updates the record. Here that is
lns publish(section 9). - RPC
- The LEZ sequencer's JSON-RPC endpoint that a client asks for a name's record. By default
https://lez.nameswallet.app/. - Site path
- The part of an
lns://address after the name, such as/docs/intro.html.
1. Introduction
1.1 Three parts
- Names Browser
- An app for Logos Basecamp. It draws pages natively with Qt Quick. It has no web engine for pages: no WebKit, no Chromium, and no JavaScript engine for pages. It checks every file it fetches from Logos Storage against the hash pinned for it before drawing it. Small on-chain pages and name icons come straight from the record through the RPC.
- Gateway
- A server that shows LNS sites to ordinary web browsers at
https://<name>.lnsweb.online. It makes the same hash checks, strips scripts, and puts a banner on every page that says it is a user site. lns publish- A command-line tool. It hashes a site folder on your machine, uploads what changed to Logos Storage, and has your own
namestool sign one record update.
1.2 Design goals
- Privacy. The chain never learns a name or a private holder (the private path is not yet run on LEZ 0.4), payments go to private receiving keys by default, and pages run no code, so they cannot track readers. Section 2 says what each party can still see.
- Accessibility. Sites are documents that everyone can read, including with assistive technology (section 3).
- Integrity. Every file is checked against a hash pinned by the record, so no server can change what you see.
- Low, flat cost. A site of any size changes with one record update.
In one paragraph: one thing is on chain per site, the root list's CID and hash in the name's record. Everything else is found by CID and checked by hash, folder by folder. So a site of any size changes with one record update, whose fee does not depend on the site's size. Pages are documents, not programs: no page code runs, and a page cannot make the client fetch anything outside its own site.
1.3 The life of a request
What a client does to show lns://alice/docs/intro.html:
- Parse the address. The name is
aliceand the site path is/docs/intro.html(section 4.7). - Derive the name's keys. Argon2id over the name gives a public identifier and a private key. The identifier gives the address of the record account. The chain never sees the name (section 4.2).
- Read the record. Ask the RPC for the record account, open the sealed profile with the key, check that it belongs to
alice, and readcid,cid.sha256andcid.type(sections 4.3 and 4.4). - Fetch the root list. Get the bytes for
cidfrom Logos Storage. Their SHA-256 must equalcid.sha256, or the site is refused (section 6.2). - Walk the folders. Parse the root list, find the line
docs/, fetch that folder list by its CID and check it against the hash on that line (section 5.7). - Fetch the file. Find
intro.htmlin thedocslist, fetch it, and check it against its hash (section 6.2). - Render. Draw the page under the content profile. Its stylesheet
../style.cssresolves to/style.cssand goes through the same lookup and check (section 7). - Show it. The page is shown as verified. If any check failed, nothing unverified is shown; the client reports what failed (section 6.7).
Every file fetched from Logos Storage is tied, by a chain of hashes, to the record:
record cid.sha256 = 46e9b706… (pins the root list)
└ root list docs/ … 46340f14… (pins the docs list)
└ docs list intro.html … 8986a160… (pins the file)
└ intro.html the bytes whose SHA-256 is 8986a160…
The record itself is the one link not checked by a hash: it comes from the RPC. Section 10.4 explains what that means.
1.4 How to view a site
There are two ways to open an LNS site:
- Names Browser (for full hash checks). Get Names Browser 0.4.6 (with core 0.3.6) from
nameswallet.app/browserand install it in Logos Basecamp. Typelns://alice,lns://alice/docs/intro.html, or the short formaliceoralice/docs/intro.htmlin the address bar (section 4.7). Every file from Logos Storage is checked against its pinned SHA-256 on your machine before it is drawn. - Any ordinary web browser (via the gateway). Open
https://alice.lnsweb.online/orhttps://alice.lnsweb.online/docs/intro.html. Nothing needs to be installed, and the gateway checks hashes and strips scripts, but you trust the gateway operator, its RPC and Cloudflare (section 8.12).
1.5 Scope
This document covers how a site is named, laid out, stored, pinned, checked, drawn, served and published. It summarises getting and holding an LNS name (section 4.9) and how Logos Storage is used (section 5.11); for the full registry wire format and transactions see the Logos Names specification, and for the storage protocol itself see Logos Storage. Basecamp itself is out of scope.
1.6 Versions and the road ahead
- LEZ 0.4.0 and the next registry. LEZ 0.4.0 is released. The current live registry runs on the LEZ 0.4 rc3 testnet (
6Yxj5k8A…XXN3gA), where every registration waits 15 minutes between commit and reveal. The registry moves to LEZ 0.4.0 in a new deployment, which adds a 5-minute commit-reveal wait for public registrations while keeping 15 minutes for private holders (section 4.9). - WebKit browser line superseded. The earlier WebKit line (LNS Browser 0.3.0 / core 0.2.0, which ran sandboxed page JavaScript through a loopback server and still sits in the public GitHub repository
LNS_Browser) is superseded by the native 0.4.x line and is not covered by this specification (section 10.5.6).
Planned, not built. Site features such as forms and payments are planned as built-in parts that the browser draws itself. A site would ask for them in its record with a stated reason, and the user would approve each one against the content hash. Pages would still run no code. Light-client proofs or signed records to close RPC forgery (section 10.4), and a second Storage seed-peer operator (section 2.7.1), are also planned. Nothing of this exists yet, and this document does not specify it.