4. Names and records
A site lives under an LNS name. This section covers what a name is, how a client finds its record, which record fields make a site, and when a change shows up.
Describes the LNS registry on the LEZ 0.4 testnet line (rc3, moving to released LEZ 0.4.0 in a new deployment), as specified in the Logos Names specification (version 2, draft) and implemented in its core and seal crates, and as read by Names Browser 0.4.6 and the gateway.
4.1 LNS names
- A name is 1 to 32 characters of
a-z,0-9and-, and does not start or end with-. - A name is written bare:
alice. LNS is the service, not part of the name. - No subnames yet. A name has no dots, so
blog.aliceis not a valid LNS name today and does not resolve. One-level subnames are planned for the 0.4 registry (section 4.10).
Normalising input. Before using typed or pasted input as a name, a client trims surrounding whitespace, lowers ASCII case, then removes one leading lns:// or lns:, one leading @, and one trailing .lez (an old suffix, still accepted when typed). Alice, @alice, lns:alice and lns://alice all become alice.
A client MUST normalise names exactly as above and refuse anything that is not then a valid name. Two clients that normalise differently would read different records for the same input.
Required by the Logos Names specification, section 2. Implemented inlinks.rs is_valid_lns_name and parse_url, and in logic.mjs normalizeName and isValidName, which the gateway imports.
Subnames (non-normative). Until the planned registry subnames exist (section 4.10), folders already work: publish under alice/blog (lns://alice/blog and https://alice.lnsweb.online/blog/) using normal lns-links/1 folders.
4.2 From name to record
The chain never sees a name. A client derives two values from it:
master = Argon2id(password = name, salt = "logos-names/v5",
version 0x13, memory 64 MiB, passes 3,
lanes 1, length 32 bytes)
id = SHA-256("logos-names/v5/id" ‖ master)
key = SHA-256("logos-names/v5/key" ‖ master)
id is public: the chain knows the name by it. key never leaves the client: it opens what the name resolves to. Each name has two accounts in the registry program, found from id:
| Account | Address |
|---|---|
| Record | PDA(registry, SHA-256("logos-names/v5/name/" ‖ id)) |
| Page | PDA(registry, SHA-256("logos-names/v5/page/" ‖ id)) |
A client reads each with the sequencer's getAccountView call. The derivation needs 64 MiB of memory and about 70 to 140 ms in native code, so a client SHOULD derive once per name and keep the result (Logos Names specification, section 3). The gateway keeps an index of names it already knows and runs at most two derivations at once (section 8.9).
4.3 The record
The record account holds a version, an owner tag (not an account), an expiry time, a claimed flag, and sealed: the profile encrypted with AES-256-GCM under key. sealed is at most 12,288 bytes. The profile inside holds:
- the name itself, so a reader can confirm the record is this name's;
- payment fields (a public account and private receiving keys), which a site does not use;
- up to 16 text entries. A text key is 1 to 32 characters of
a-z,0-9,-,_and.. A text value is at most 512 bytes under the registry's client library (see 4.6 for the avatar).
The plaintext is padded with zeros to a multiple of 256 bytes, so its length says little about what it holds. In deposit mode (section 4.9), expires is u64::MAX and the name never lapses; in fee mode, expires is a Unix timestamp in milliseconds with a 30-day grace period.
A client MUST treat a name as having nothing set if sealed does not open with the name's key, or opens to a profile whose name is not the name asked for.
A client MUST treat a fee-mode name as unregistered once 30 days have passed after its expiry.
Logos Names specification, sections 5 and 6. The gateway does both inderive.mjs (resolveNameWithDerived, readRecord). The Names Browser reads records through Basecamp's Names module.
A client MUST bind a record to the name the user asked for, never to a name supplied in the RPC's answer.
Enforced inlogic.mjs extractSiteInfo (a round-3 fix): the site, its avatar and its "older version" are filed under the requested name.
4.4 Site fields
A site is set through ordinary text entries. These are the ones LNS web reads:
| Key | Value | Read by |
|---|---|---|
cid | CID of the site's root: 8 to 128 ASCII letters and digits. A leading cid=, cid: or cid:// is removed. | browser, gateway, publisher |
cid.sha256 | SHA-256 of the root's bytes: 64 hex digits, compared in lower case. | browser, gateway, publisher |
cid.type | links for an lns-links/1 root, which is what lns publish writes. Older values: single, manifest (section 5.9). | browser, gateway |
avatar | A small image as a data: URL (section 4.6). | browser, publisher |
display | Display name, shown in the browser. BiDi and control characters are removed; at most 200 characters. | browser |
bio | Short text, shown in the browser. Cleaned the same way; at most 500 characters. | browser |
gateway | off stops the HTTPS gateway serving the site. | gateway |
gateway.index | on lets search engines index the gateway copy. | gateway |
Set cid.type=links on every lns-links/1 site: in the Names Browser's Basecamp Storage path, a root without cid.type=links starts under the 512 KiB single-page fetch cap instead of the 2 MiB list cap (section 6.9).
Other LNS text records. The Logos Names specification defines other standard text entries (such as forward, color, theme, font, chat, inbox, agent, logos.account, blockchain and app.<module>). LNS web reads only the eight keys in the table above. In particular, neither the Names Browser nor the gateway follows forward when loading a website.
A publisher MUST set cid.sha256 whenever it sets cid.
A client MUST NOT show or serve a Storage site whose record has a cid but no valid cid.sha256.
Main.qml loadNativeStaticNavigation). The gateway answers 502 "Unverified site root" (serve.mjs loadSiteRoot). lns publish always sets both in one transaction (publish.mjs buildNamesProfileCommand).
4.5 Storage site or on-chain page
A name can carry a site in two places.
- Storage site
- The record's
cidnames the root (usually anlns-links/1root list) in Logos Storage. There is no size limit beyond the list limits in section 5.10. This is whatlns publishmakes, and it is the right choice for every normal site. - On-chain page
- The name's page account holds the content itself, encrypted under the same key with the associated data
logos-names/v5/page. The plaintext is a content type (1 to 64 bytes) and a body. Although LEZ caps actor data at 100 KiB, a 96 KiB write fails the wallet's default gas limit, so the registry caps a sealed page at 80 KiB (81,920 bytes,MAX_SEALED_PAGE_LEN), giving a practical maximum of about 78 KB of HTML.
When a record has a valid cid, a client MUST use the Storage site and not read the on-chain page. It reads the page only when there is no cid.
Main.qml loadNativeStaticNavigation and serve.mjs loadSiteRoot read the page only as a fallback.
An on-chain page body is one of:
- HTML (or plain text): a one-page site. The Names Browser shows it at
/and/index.htmlonly; any other path is "not found". The gateway accepts only HTML or plain text (else 415) and caps the body at 80 KiB. - An
lns-links/1root list, under 10,240 bytes, with the content typetext/vnd.logos.lns-links; version=1. Its folders and files still come from Logos Storage (section 5.8.2).
On-chain pages come straight from the LEZ RPC (getAccountView) with no Storage fetch and no separate hash pin. They are as trustworthy as the RPC's answer for the record (sections 6.8 and 10.4). The gateway computes the body's SHA-256 only to show in the banner and to check its blocklist.
4.5.1 Cost and when to use one
Writing an on-chain page costs in proportion to its size — about 185 LEZ per byte per write (roughly 185 to 220 LEZ per byte across these measured sizes on the LEZ 0.4 testnet on 25 November 2026, in testnet LEZ):
| Page size | Fee per write |
|---|---|
| 5 KB | about 1.1 million |
| 23 KB | about 4.2 million |
| 46 KB | about 8.7 million |
| 78 KB (the real cap) | about 14.5 million |
That fee is paid again on every edit. A record update pointing at a Storage site costs about 250,000 LEZ whatever the site's size (section 9.6). Use an on-chain page only for a tiny single-page site (or a small root list under 10 KiB) when you have no Logos Storage node; use a Storage site for everything else.
4.6 Avatar
The avatar text entry is the name's icon, shown on tiles, in history and on tabs. Its value is a data:image/png, jpeg, gif or webp base64 URL. Showing it fetches nothing.
- On chain: the registry program caps the whole sealed record at 12,288 bytes (
MAX_SEALED_RECORD_LEN) and cannot inspect individual text values because the record is encrypted. - Names Browser: accepts an
avatardata:URL string of at most 12 KiB (12,288 bytes) and decodes it only if the image is at most 256 by 256 pixels and its magic bytes match the declared type (logic.mjsMAX_AVATAR_DATA_URL_BYTES,cache.rsMAX_AVATAR_BYTESandMAX_AVATAR_DIM). Because base64 expands bytes by about one third, 12 KiB ofdata:URL holds at most about 9 KiB of raw image bytes — and less in practice, because the sealed record also holds the name,cid,cid.sha256,cid.typeand any other entries. lns publish: refuses icons that are not PNG, JPEG, GIF or WebP, are over 256 by 256 pixels, or whose raw image file is over 12 KiB (icon.mjsMAX_AVATAR_BYTES)..icoand.svgare refused, because SVG can carry script (section 9.5). Note that checking raw bytes rather than the longer base64 URL means a file between about 9 KiB and 12 KiB passeslns publishbut produces adata:URL over 12 KiB that the Names Browser rejects and that cannot fit in a sealed record.
Open contradiction. The Logos Names specification (section 5) and its seal crate cap every text value at 512 bytes (validate_profile), while section 7 of the same specification, the Names Browser and lns publish allow a 12 KiB avatar value. A data: URL longer than 512 bytes fails validate_profile in the seal source. Until this is settled, keep icons tiny (or pass --no-avatar) and never exceed about 8 KiB raw even if avatar is exempted from the 512-byte check.
4.7 Addresses
The address of a page is:
lns://<name>[/<site path>][?<query>][#<fragment>]
lns://aliceis the site's home: the root folder's index file.lns://alice/docs/intro.htmlis one file.lns://alice/docs/is a folder's index (section 5.7).- Shareable form:
alice/docs/intro.html, with no scheme, is accepted in the address bar and is the short way to write an address in text. - Also accepted as input:
lns:aliceand@alice. Case is lowered. - The query is ignored when resolving. The fragment is kept with the address.
- On the gateway the same page is at
alice.lnsweb.onlinewith the same path,/docs/intro.html(section 8).
A client MUST refuse an address longer than 2,048 bytes, or one containing control or BiDi characters.
Enforced inlinks.rs parse_url (MAX_URL_BYTES, round-3 BiDi fix) and logic.mjs parseUrl.
cid:// addresses. Both URL parsers (parse_url in links.rs and parseUrl in logic.mjs) accept the syntax cid://<cid>[/<path>][?<query>][#<fragment>], and HTML links to cid://… are preserved by resolve_safe_link (sanitize.rs). However, Names Browser 0.4.6 refuses to open a bare cid:// address from the address bar or a link: it stops with an error ("Unverified file skipped — direct cid:// URLs have no pinned SHA-256 hash") and fetches nothing (Main.qml loadNativeStaticNavigation; lib.rs fetch_static_site). That is because a bare CID has no record-pinned SHA-256, and the browser does not check the CID's multihash against the bytes (section 6.2.1, section 6.2.2). Inside a page's HTML or CSS (<img>, <link>, @font-face), cid:// references are likewise never fetched by the Names Browser; the gateway resolves one only if that CID appears with a pinned SHA-256 in the site's verified lists (section 6.4). (STATIC-PROFILE.md still says cid:// addresses navigate and load; the code wins.)
4.8 When a change takes effect
Making a change. The holder rewrites the record with one SetRecord transaction carrying the whole new sealed profile. lns publish does this through the names profile command, which sets cid, cid.sha256, cid.type and, if given, avatar in one transaction and keeps the other entries. LEZ includes failed transactions in blocks.
A publisher MUST confirm a change by reading the record back, not by seeing its transaction included.
Logos Names specification, section 8.lns publish step 6 resolves lns://name again and reports which side is behind (single-publish.mjs).
In the Names Browser. The browser asks the RPC for the record on every page load and link click, so a new root is used on the next load. While the new version loads, it may show the last version it verified for that name, marked as older (section 6.5).
On the gateway. The gateway keeps a name's record for 60 seconds, and the CDN keeps HTML for up to 120 seconds. A change usually shows within about three minutes, sooner if the publisher purges the CDN (section 8.6). Files under /_imm/ are addressed by hash, so they never go stale.
Transfer, release and expiry. A transfer or release empties the profile and the page, so the site is gone at once. A fee-mode name 30 days past its expiry reads as unregistered, so its site is gone too, whatever the record still holds. Deposit-held names do not expire (section 4.9).
4.9 Getting and holding a name
Publishing a site requires holding an LNS name. The Logos Names specification (section 8) defines the full transactions; this section summarises what affects site owners.
- Commit-reveal (why: front-running). Registering a name takes two transactions: first a commitment that hides the name, its identifier and its future holder, then a reveal (
Register) bound to the committed holder's owner tag. Nobody watching pending transactions can register the name first or replay a pending reveal for another account. A commitment stays usable for 24 hours (MAX_COMMIT_AGE_MS). - The waits (by deployment). The registry program (
core) defines two paths:- Private path (
Commit): 10-minute clock window (TIME_WINDOW_MS, leaving room to generate a private proof) and a 15-minute minimum wait before reveal (MIN_COMMIT_AGE_MS; at least 5 real minutes pass). - Public path (
CommitPublic): 1-minute clock window (PUBLIC_TIME_WINDOW_MS) and a 5-minute minimum wait before reveal (PUBLIC_MIN_COMMIT_AGE_MS; at least 4 real minutes pass).
6Yxj5k8A…XXN3gA), both public and private registrations use the 15-minute wait. On the next registry deployment on released LEZ 0.4.0, public registrations use the 5-minute wait while private registrations stay at 15 minutes. - Private path (
- Deposits and transfers. In deposit mode (
MODE_DEPOSIT = 1), registering a normal name locks a refundable deposit in the name's own deposit account (a PDA only the registry can spend from). A deposit-held name never expires (expires = u64::MAX) and needs no renewal. Releasing the name (Release) empties its record and page and refunds the full deposit to whoever holds it. Names are transferable (not soulbound):Transferhands the name to a new holder, empties its profile and page, and keeps the deposit with the name. (Fee mode,MODE_FEE = 0, with 30-day, 1-year and 5-year terms and a 30-day grace period, also exists in the program.) - Locked and reserved names. Every 1 to 4 character name (1,823,508 names) plus 21,718 reserved names (common nouns, first names, web3 projects, brands, wallet and app names) — 1,845,226 names in all — are locked behind a Merkle root compiled into the registry (
SHORTLIST_ROOT). Only the registry's admin may register a locked name (with no deposit) and transfer it to its holder. Normal 5 to 32 character names not on the list are open to anyone via commit-reveal with a non-membership proof computed locally from the fixed 61 MBshortlist.binlist. - Private vs public holders (effect on running a site). A record stores only an owner tag, never an account address, but public and private holders behave differently:
- Public holder: signs updates from a public LEZ account. Record updates confirm quickly (normally one block), and on the next registry public registration waits 5 minutes. Anyone who knows the name can test public accounts seen on chain against the owner tag and find the holder.
- Private holder: holds the name under a LEZ private account and submits privacy-preserving transactions proven on the holder's own machine. The chain never sees which account owns or updates the name. For a website owner, the cost is time: every publish or record change takes a local proof of minutes (the Names module runs CLI jobs in the background with a 45-minute timeout), and registration uses the 15-minute wait. (Per the Logos Names specification, section 8, the private-holder path has not yet been run on LEZ 0.4.)
4.10 Planned: subnames and prices
Planned, not built (non-normative). These are decisions for the new registry on LEZ 0.4.0, made on 27 November 2026. Nothing here runs yet, and the details can change before it is deployed.
Subnames.
- One level only:
label.parent, such asblog.alice. - For each subname, the parent's holder chooses revocable (the parent can take it back) or permanent (its holder keeps it for good). The record shows which.
- When the parent changes hands or is released, permanent subnames stay with their holders. Revocable ones follow the parent: the new holder controls them, and releasing the parent releases them.
- Creating a subname costs the transaction fee only, with no deposit.
- The parent can sell subnames at one price that it sets. Anyone may then claim an unclaimed
label.aliceby paying that price, the payment goes to the parent in the same transaction, and a sold subname is always permanent. Sales can be switched off. --will be banned in new names, so the gateway formblog--alice.lnsweb.online(section 8.2) is never ambiguous.
Prices. Names will be charged for, in place of the refundable deposit of section 4.9.
- Terms of 30 days, 1 year or 5 years, which can be renewed, or a one-time permanent purchase that never expires.
- Prices by length: 5 characters, 6 to 7 characters, and 8 or more. Names of 1 to 4 characters stay locked and assigned by the admin.
- Prices are in LEZ, from a table the admin can change at any time as the token's value moves. A change applies to new purchases and renewals only.