2. Privacy considerations
Privacy is the main promise of LNS. This section says what LNS keeps private and what it does not, for every part of it: the name on chain, who holds it, registering it, paying it, opening a site and publishing one. Pages themselves learn nothing about you.
Describes the LNS registry on the LEZ 0.4 testnet line (as specified in the Logos Names specification), Names Browser 0.4.6 with core 0.3.6, the gateway at <name>.lnsweb.online (round 3, live) and lns publish, as checked on 27 November 2026. Finding IDs are row labels in the consolidated security report of 27 November 2026, which is not yet published; section 11 summarises it.
2.1 Who sees what
A short map of the rest of this section. Each row links to the details.
| Who | Learns | Never learns |
|---|---|---|
| The chain (anyone reading it) | A 32-byte identifier per name, a sealed record, an owner tag, expiry and amounts paid; a public holder's account; any name published with SetPrimary (2.2 to 2.5) | The name, unless they guess it; a private holder's account; who received a private payment |
| Your LEZ RPC | Which record accounts you read, when, and from which IP address (2.6) | The names, unless it guesses them |
| Logos Storage peers | Your IP address and the CIDs you fetch (2.7) | Anything else about you |
| Gateway operator and Cloudflare | A gateway visitor's IP address, the full URL and the page (2.8). The same operator runs the default RPC and the seed peer, so Names Browser users who keep those defaults are seen as in the two rows above. | Anything a Names Browser user fetches through their own RPC and Storage peers |
| The page you open | Nothing (2.10) | Your time, tabs, history, files, input or address |
2.2 Names are never on chain
The registry never needs a name. Every account address and event, and every instruction that acts on a name, uses a 32-byte identifier derived from the name with Argon2id, a slow, memory-hard hash (section 4.2). The one exception is SetPrimary, a reverse record in which an account publishes the name it wants to be shown as; it puts that name on chain in the clear, and the Logos Names specification asks clients never to write it. What the name resolves to is sealed under a key derived the same way, so the registry program stores the bytes and cannot read them. There is no list of names, and nothing on chain links one record to another.
Every registry instruction that registers, changes, renews, transfers or releases a name MUST identify it only by its identifier, never by the name.
TheInstruction enum in core/src/lib.rs: Register, Renew, SetRecord, SetPage, Transfer and Release take id: NameId; Commit and CommitPublic take only a commitment; accounts come from name_seeds(id). Only SetPrimary takes a name. The derivation is in Logos Names specification, section 3, and the gateway's derive.mjs.
What this protects. Someone who reads the whole chain cannot list the names on it. To find a name, they must guess it and pay one Argon2id derivation (64 MiB of memory, about 70 to 140 ms on a laptop) for each guess. The memory cost is what slows GPUs: a dictionary run costs about 50 times more than with the older PBKDF2 derivation.
What it does not protect.
- The salt is the same for every name, every registry and both testnet and mainnet, so that any client can find any name and names carry over. So a dictionary of likely names is computed once and then works on every registry, now and later. Five million common names take under an hour on one GPU (Logos Names specification, section 1).
- Anyone who knows or guesses a name can resolve it and open its record. That is what makes a name usable.
- Treat any name someone might guess as public. Only an unguessable name stays hidden.
2.3 Holders
A record does not store who holds the name. It keeps an owner tag in its place: SHA-256("logos-names/v5/owner" ‖ id ‖ account). The tag names no account, and one account's tags for two names are unrelated. No instruction's effects or events carry an account.
The registry MUST store the holder only as an owner tag, never as an account.
owner_tag in core/src/lib.rs; the record's owner field holds the tag (Logos Names specification, section 5).
Who can see what depends on the kind of account that holds the name:
- Public holder
- Signs each change from a public LEZ account, so the chain shows that account touching some record. Worse, the tag is a plain hash: anyone who knows a name can test every public account that ever appeared on chain against its record and find the holder, long after the fact. Today the Names module registers names to a public account in the open wallet.
- Private holder
- Holds the name under a LEZ private account and sends privacy-preserving transactions: the registry runs inside a proof made on the holder's own machine, and the chain sees only the change to the record, never the account. The cost is time: each change takes a local proof of minutes (section 4.9). This path has not yet been run on LEZ 0.4 (section 2.12).
The Logos Names specification asks conforming clients never to tie a name to an account: to publish only receiving keys, never display an address or the keys behind a name, and write no reverse record (Logos Names specification, section 1). The Names module can still set a public account on a name when its holder asks (section 2.5).
2.4 Registration
Registering takes two transactions, a commitment and then a reveal (section 4.9):
- The commitment is
SHA-256("logos-names/v5/commitment" ‖ id ‖ tag ‖ secret), with 32 random bytes the client keeps. It shows nothing about the name, its identifier or its future holder. - The reveal (
Register) names the identifier and the secret. The program recomputes the commitment with the payer's tag, so a reveal seen pending cannot be replayed for another account.
The registry MUST refuse a reveal unless it matches a commitment for the payer's own tag that is old enough and less than 24 hours old.
commitment, MIN_COMMIT_AGE_MS, PUBLIC_MIN_COMMIT_AGE_MS and MAX_COMMIT_AGE_MS in core/src/lib.rs.
What an observer of the chain learns:
| Item | Public registration | Private registration |
|---|---|---|
| The name | No (only its identifier, at the reveal) | No (only its identifier) |
| The holder's account | Yes: it signs both transactions and pays | No: the proof hides it |
| The deposit or fee | Yes, and which account paid it | The amount arriving, not who paid |
| When | Yes | Yes |
The deposit sits in the name's own deposit account, so its size is public. In fee mode, the expiry is in the record in the clear and the fee arrives in the treasury.
2.5 Payments to a name
A name can carry two kinds of payment address in its sealed record: private receiving keys (a nullifier public key and a viewing public key) and a public account.
- Private by default. When a name offers receiving keys, a client pays it privately, with a shielded transfer to those keys. Each payment lands on a fresh private account that only the holder can find, so the recipient is always hidden. Sent from a private account, the sender and the amount are hidden too. Sent from a public account, they are visible.
- A public account on the name shows that account, and so its balance and history, to anyone who resolves the name. A name that points only at receiving keys shows keys that reveal nothing about funds.
A client SHOULD pay a name through its private receiving keys whenever the name offers them.
Logos Names specification, section 6 ("Paying a name"); the Names module'ssend uses the private keys if there are any, and receive_privately publishes them and removes any public account.
2.6 Browsing: the RPC
The Names Browser asks the RPC for the record live, on every page load and every link click (callNamesWithRetry("resolve", …) in Main.qml). So the RPC operator learns:
- which names you open, and when (it sees record addresses; with a dictionary of identifiers it can tell the names);
- your IP address, unless you reach the RPC through something that hides it;
- roughly how you move between sites, from the order of lookups.
The default RPC, lez.nameswallet.app, is run by the same operator as the gateway and sits behind Cloudflare, so Cloudflare sees the same requests.
Not yet protected (X3, open). The fix would be a local light client that follows LEZ state itself, or private lookups that hide which account is asked for. Until then, choose an RPC you trust, or run your own.
2.7 Browsing: Storage peers
The Names Browser MUST fetch site files from Logos Storage as private downloads that do not advertise the CID to the network.
storage_download_chunks is called with private on and advertise off (Main.qml; lib.rs). The core does not log CIDs (B11).
A peer that serves you a file still sees your IP address and the CID you asked for. Because a CID names one file, a peer that knows which site uses that CID can tell which site you are reading.
2.7.1 The built-in seed peer
When you have set no Storage peers of your own, the browser connects to one built-in seed peer, so that sites load on a fresh install (effective_storage_peers in lib.rs). That peer is the gateway operator's own Storage node, the same one the gateway reads from. While it is in use, it sees your IP address and which files you fetch. It cannot change them.
- It is on by default and can be turned off in Settings. Basecamp's Storage node also finds other peers on its own.
- The browser does not dial it until your settings have loaded, and if they cannot be read it stays off (
Main.qml,logic.mjs; B28). - It is refreshed every five minutes, not on every page (B23).
Partly addressed (B23). There is one seed operator, it is on by default, and it is the same party that runs the gateway and the default RPC. A second, independent seed operator would help; so would turning it off by default once Storage peer discovery is reliable on its own.
2.8 Browsing: the gateway
A visitor who opens https://alice.lnsweb.online/ in an ordinary web browser is seen by:
- Cloudflare, which ends TLS. It sees the visitor's IP address, the full URL and the page.
- The gateway operator, for requests that Cloudflare does not answer from its cache. The gateway's code writes no per-request log; it logs only errors, such as a failed cache purge (
serve.mjs). What Cloudflare logs is outside it.
The RPC and Storage see the gateway, not the visitor. The gateway keeps an index on disk of real names that have been opened through it, with their derived keys, so that known names skip the Argon2id step (KnownNamesIndex in flood.mjs, at most 100,000 names). It holds names, not visitors or times. It is still a list of names in the clear, which the chain itself never has.
What the gateway sends limits what leaves the page:
- No cookies, ever: the gateway never sends
Set-Cookie. Referrer-Policy: no-referrer(applySecurityHeadersinserve.mjs).- No scripts, no forms, no outside images, fonts or styles: the CSP allows only the site's own files (
'self') anddata:images and fonts. - A
Permissions-Policythat turns off camera, microphone, location and similar features.
For privacy from the gateway operator and Cloudflare, open the site in the Names Browser instead.
2.9 On your machine
The Names Browser keeps Favorites, History, the last verified version of each site, icons and cached files in its own data folder. Its state files are written atomically, readable only by you (files 0600, folder 0700; write_private_file_atomic in lib.rs).
Clear history removes visited sites, the last verified versions, their icons and their cached files (history_clear and purge_history_derived_state in lib.rs; B22). It also removes cached files for Favorites, which then download again (B30). It does not remove:
- the Back and Forward lists of open tabs;
- Recent downloads, and files you saved to Downloads;
- data held by Basecamp's own Storage node.
2.10 What pages cannot learn
Because no page code runs (section 10.2.2), a page cannot read anything about the visitor or report it: not the time, other tabs, history, files, or input. Because a page cannot make the client fetch anything outside its own pinned site, it cannot use tracking pixels, outside fonts or remote images to report a visit.
One small channel is left. CSS can choose which of the site's own files to load, for example a different image for a narrow screen. Those requests go to Storage peers or to the gateway, never to a server the page names, so only the parties in sections 2.7 and 2.8 could see them.
What a site owner can learn is limited to what the network already shows: if the owner also runs a Storage node that holds the site's files, that node sees the visitors who fetch from it, as in section 2.7. In the Names Browser, an outside link opens only after the user confirms. From then on the outside site sees the visit as it would any other.
2.11 Publishing
Publishing makes a site public on purpose. What it reveals:
- The record update. The chain sees a change to the name's record, and when. A public holder's account is seen signing it; a private holder's is not (section 2.3).
- The CIDs. The record pins the root list, and every list names each file and folder of the site, so the whole tree is public, including files that no page links to. Leave out of the site folder anything you do not want published.
- Your address to the Storage node. The Storage node you upload to sees your IP address and holds and serves the files. Peers that fetch them can see that node's address.
- Old versions. A record keeps pointing to the newest root, but earlier lists and files stay available for as long as some Storage node holds them. Removing a file from a site does not remove it from Storage.
lns publish computes every hash on your machine and never reads your keys. It talks to your Storage node, your RPC, and, if you set one, your HTTPS host.
2.12 Known gaps
- Guessable names are public. One shared salt means one dictionary serves every registry (section 2.2).
- Public holders can be found by anyone who knows the name, at any time (section 2.3). Today the Names module registers to public accounts.
- The private-holder path has not yet been run on LEZ 0.4 (Logos Names specification, section 8). Until it is, private holding and private registration are specified but not proven on this chain.
- Amounts and times are public: deposits, fees, expiry and when a record changes (section 2.4).
- The RPC sees your lookups (X3, section 2.6).
- The seed peer is on by default and run by the gateway operator (B23, section 2.7.1).
- Gateway visitors are seen by Cloudflare and, on cache misses, by the gateway operator (section 2.8).
- Clear history leaves Back and Forward lists, downloads and Basecamp's Storage data (section 2.9).
- Published files stay in Storage after you remove them from a site (section 2.11).