LNS web Draft · 27 November 2026

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

Status of this document

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 of a-z, 0-9 and -, 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/1 list for the site's top folder. Its CID and hash are in the record.
Folder list
The lns-links/1 list 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 names tool sign one record update.

1.2 Design goals

  1. 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.
  2. Accessibility. Sites are documents that everyone can read, including with assistive technology (section 3).
  3. Integrity. Every file is checked against a hash pinned by the record, so no server can change what you see.
  4. 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:

  1. Parse the address. The name is alice and the site path is /docs/intro.html (section 4.7).
  2. 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).
  3. Read the record. Ask the RPC for the record account, open the sealed profile with the key, check that it belongs to alice, and read cid, cid.sha256 and cid.type (sections 4.3 and 4.4).
  4. Fetch the root list. Get the bytes for cid from Logos Storage. Their SHA-256 must equal cid.sha256, or the site is refused (section 6.2).
  5. 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).
  6. Fetch the file. Find intro.html in the docs list, fetch it, and check it against its hash (section 6.2).
  7. Render. Draw the page under the content profile. Its stylesheet ../style.css resolves to /style.css and goes through the same lookup and check (section 7).
  8. 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:

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

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.