# The wNFT as an identity container Date: 2026-08-30 Status: built and folded into the chain state root. 1265 tests across 76 files green, soak green, scenario green, six e2e scenarios green — measured on this tree, not carried over. Naming: **Idunn** (`src/identity/wnft.ts`) and **Lethe** (`src/crypto/wnft-envelope.ts`), both registered in [NAMING.md](NAMING.md). Diagrams for everything described here are in [ARCHITECTURE_SCHEMATICS.md](ARCHITECTURE_SCHEMATICS.md). --- ## 1. What changed A wNFT used to be a label. `wnftIdForDomain(domain)` returned a deterministic hash, the `WNFT` token ledger held one unit per proved domain, and nothing else existed. An STR.domain was a name with a lock behind it and no place to put anything. The wNFT is now the **state object the identity lives in**. One STR.domain has one wNFT forever, the id is still `sha256("wnft:str-domain:v1:" + normalizedDomain)` so nothing gets to choose it, and the wNFT holds: | | | |---|---| | `holderAddress` | the wallet that may write to it. For a slave, the **master's** wallet | | `lockedMinor` | the 1000 STR domain lock. `DomainRecord.lockedMinor` is a projection of this field, not a second copy | | `entries` | ordered attribute versions, public and private, including tombstones | | `masterWnftId` / `masterDomain` / `inherits` / `operatorAddress` | set on a slave only | | `sequence` | accepted mutations against this wNFT — the replay guard | | `status` | `active` or `revoked` | The vault is owned by `StrDomainRegistry` (`registry.wnfts`) rather than by `LedgerManager`, and that placement decides correctness rather than taste: `clone()` and `absorb()` exist because applying a peer's block mutates identity and rejecting it halfway has to restore all of it. A vault held anywhere else would be restored by a different rollback, and two rollbacks can disagree. Idunn is the same shape as the ledgers already in the state root — Glasir for accounts, Sindri for contracts, Odin for governance — one Glasir leaf per wNFT keyed on `sha256("idunn:wnft|" + wnftId)`, with `stateRootHex / snapshot / loadSnapshot / replay`. It is folded into `LedgerManager.stateRoot()` under the key `IDENTITY`, beside `CONTRACTS` and `GOVERNANCE`. `IDENTITY` rather than `WNFT` because `WNFT` is already a token-ledger key in `ALL_TOKENS` and the two would collide in that array. --- ## 2. Three things stated plainly These are the reasons the design is shaped the way it is. A reader who does not get them will build something unsafe on top of it, so none of them is softened here. ### 2.1 A private payload never touches the chain — only a salted commitment does For a private entry the chain stores a `WnftCommitment` and nothing else. Not the plaintext. Not the ciphertext. Not the entry's name. Exactly five fields, published as data in `LETHE_CHAIN_FIELDS` so the identity layer can assert it and a sixth field fails a test instead of shipping: ``` scheme wnftId slotIdHex version commitmentHex ``` **Why not ciphertext.** You cannot un-publish from a blockchain. Every node keeps every block forever, so a `burn` that removes a row from current state while the bytes sit in block history is a promise the data structure cannot keep. Ciphertext on chain is a *time-delayed* disclosure: anyone who ever held the key reads it now, and anyone at all reads it on the day that cipher falls. Identity documents are the payload where a twenty-year delay is not a mitigation — a passport number, a date of birth and a national ID are still true in twenty years. A commitment inverts that. The holder keeps the payload and the opening off chain; the chain holds an HMAC-SHA-256 whose key is 32 uniformly random bytes it has never seen. The holder can prove to any verifier they choose, at any time, exactly what the value was. The chain gains the ability to say *this identity committed to this slot at this version at this time* and gains no ability to read it. HMAC under a random salt rather than `sha256(payload)`, because hiding has to survive a low-entropy payload. A country, a birth year or a yes/no answer is a dictionary away from its own digest, and two entries holding "Romania" would produce the same 32 bytes on a public ledger forever. Every version gets a fresh opening, so a commitment never repeats: an observer who sees the same 32 bytes twice on this chain is looking at a bug. **The consequence for burning, which is where the honesty is load-bearing.** The two cases are genuinely different, and the chain records which one happened rather than implying "gone" — `WnftAttributeEntry.burnErasure`: | | `commitment-withdrawn` (private) | `published-not-recallable` (public) | |---|---|---| | what current state held | a commitment | the value, in the clear | | after the burn, in state | nothing — no value, no commitment, no opening | nothing | | in block history | the commitment string, an HMAC under a key the chain never saw | **the value itself, forever** | | is this erasure | **yes**, once the holder destroys the opening | **no**, and nothing can make it so | Burning a **private** entry is a real erasure of everything the chain ever had. The commitment does remain in the block that carried it — saying "erased everywhere" would be a lie — but it discloses nothing to anyone who does not already hold the opening, and Lethe's `burnEntry` destroys that opening. Burning a **public** entry is not an erasure. The value was published. It is in the block that carried it, in every archive node, and in the hands of everyone who read it. Burning removes it from current state and from what this node serves; it does not un-publish it. If that matters for a value, it needed to be private from the start. The same asymmetry applies to `hide`, and more weakly. Hiding withdraws an entry from `activeAttributes` and from what this node serves. It does not remove it from state, from the state root, or from any other node's disk. For a public value, hiding is a presentation choice honoured by honest nodes — not a confidentiality mechanism, and nothing in this subsystem can make it into one. ### 2.2 An STR.domain is pseudonymous at best `wnftIdForDomain` is a pure function of the domain name, so anyone can compute the wNFT id of `STR.sourceless`. Making the id random would gain nothing: `DomainRecord.wnftId` publishes the mapping and the registry is chain state, so the link is inherent to a named-domain identity system rather than a property of this construction. So: the domain is public, the container is linkable to it, and only the **values** are private. What leaks either way: - **The number of private slots a wNFT holds.** `IdunnVault.privateSlotCount()` publishes it deliberately, because it is public whether that method exists or not — the leaf is in the state root and the entries are in it. Not offering a reader would hide a leak rather than remove one. - **The timing and cadence of updates.** A slot superseded every five years and never otherwise touched tells an observer it is a document with a five-year expiry, and there are not many of those. Values stay private; the cadence is the disclosure. `Lethe.rollForward()` is the mitigation, and it is partial. It re-commits **every** slot in one step, including the ones whose value is byte-identical to before, so after a roll all an observer sees is "this wNFT moved forward" with no way to tell which entry changed. `wnft-set-private` therefore takes an **array** of commitments and applies them in one record, one sequence step and one block entry: nothing here may force slots to be updated individually, because a one-slot write is a pointer at which slot changed. `MAX_COMMITMENTS_PER_RECORD` is set equal to `MAX_PRIVATE_SLOTS_PER_WNFT` on purpose so a full roll always fits in one record and a holder is never forced to split one. A holder who rolls on a fixed schedule as well as on change removes the correlation between a roll and a real-world event. What remains after all of that is the slot count and the roll times, and both are visible in any design where the chain stores per-entry commitments at all. There is no version of this that makes an STR.domain anonymous. `LETHE_ABSENT` addresses the adjacent leak: a wNFT that only gains a slot when the holder gains the document announces the document. Committing `LETHE_ABSENT` into a slot from the day the wNFT is created makes the *presence* of an entry as private as its value, for the cost of one commitment. ### 2.3 A private slot cannot be inherited by a slave Inheritance is by name — `inherits: 'all'` or a sorted list of public attribute keys — and a private slot deliberately has no name on chain. There is nothing for a slave to name, so `resolvePrivateSlot` never follows a master link, and `normalizeInheritance` refuses a 64-hex string so a slave cannot name a slot id and be quietly given nothing. The reason the name is absent is the reason this matters. A private slot is addressed by `slotIdHex`, a random 32-byte label from `newSlotId()`. "Slot 4 renews every five years" says almost nothing; "`passport` renews every five years" says a great deal, and `asylum-application` or `hiv-status` beside a domain that names a person is the exact failure this subsystem exists to prevent. The key **is** the leak, and a chain that stored it would have made the value private and the meaning public. The name is bound cryptographically *inside* the commitment and stays in the holder's Lethe vault. **This is a real trade-off, not an oversight, and it is the one the owner may want to revisit.** A company that wants every department to present the same verified tax number cannot express that today: the master holds it privately, the slave cannot reference it, and the only routes are to make it public or to give each slave its own commitment — which means its own opening, its own disclosures and its own burn. Any future change here has to answer the question the current design answers by refusing: how a slave references a private slot without a name existing on chain for it to reference. A capability that named a master's slot id on a slave's leaf would publish the linkage between the two, which is a different leak with the same shape. --- ## 3. The 1000 STR lock The lock sits on the wNFT rather than as a flag beside the account, because the wNFT is the object that represents the identity, so it is the object that holds what the identity cost. - A **master** carries `DOMAIN_LOCK_MINOR` — 1000 STR at 13 decimals. - A **slave** carries `0n`. That is the utility, and it is not a sybil hole: every slave carries `masterWnftId`, so every slave is attributable in one hop to exactly one master that paid exactly one lock. A thousand slaves under `STR.sourceless` are a thousand names for one accountable party. - A **genesis** domain carries `0n`. The lock is the sybil cost of *joining*, and genesis membership is defined by the spec rather than bought. It still gets a wNFT, because a genesis domain that could hold no attributes would be an identity the network's own founders cannot use. `DomainRecord.lockedMinor` is read back off the wNFT at `prove()` time rather than copied from the proof, so the projection cannot be written from a source the vault never saw. `StrDomainRegistry.reconcileLocks()` is the assertion that the two have not drifted, and it also checks that every wNFT's id is the deterministic one — the id construction is deliberately duplicated in `wnft.ts` so that module needs no import from `str-domain.ts`, and this is what stops the two copies diverging in silence. `prove()` is idempotent. A registration record is public data anyone can lift out of a block and resubmit; a re-mint that reset the wNFT would erase every attribute on it, which turns a replayed record into a way to destroy somebody's identity documents. ### What happens to slaves when a master releases its lock `IdunnVault.releaseLock()` **refuses** while the master has any live slaves, and says how many. A slave whose master's lock is gone is an identity that resolves, carries attributes, and is attributable to nothing — the sybil hole the lock exists to close, reached by waiting instead of by paying. The two alternatives are worse. Orphaning leaves those identities live and unbacked. Cascading the deletion destroys state third parties may be relying on, at the exact moment the master has the least reason to care. Refusing puts the cost where the decision is: revoke your slaves first, deliberately, one signed record each. **Built 2026-09-07: the lock still never releases, and a domain can now be BURNED.** The governance decision is recorded at the top of `docs/BUILD_STATUS.md`. There is no release; the one way back to the STR is to destroy the domain, and doing so: - refunds **the amount the wNFT's lock holds** — not the constant — to the burner, - erases the wNFT and the `DomainRecord`, and burns the holder's WNFT token, - puts a **30-day cooldown** on the name during which no address may take it, and - bars **the burning address from that name permanently**. It is a consensus record kind, `DomainBurnRecord` in `src/identity/helgrind.ts`, applied by `applyDomainBurn` in `src/core/blockchain.ts` from `produceBlock`, `acceptBlock` and the `validateChain` replay. The cooldown and the bar are chain state, folded into `LedgerManager.stateRoot()` under `BURNED-DOMAINS` — a cooldown a node kept locally would be a fork. The slave guard above is unchanged and is now reached by a path that can actually give the lock back: revoke your slaves first, then burn. *What the burn erases, and what it does not.* Current state loses the wNFT and everything on it. Block history does not: every public value it ever carried is in the block that carried it, in every archive node, and in the hands of everyone who read it. Private slots were only ever commitments under a key the chain never saw. Burning a domain is not a recall. *`releaseLock` still refuses, and that is not an oversight.* What it names is a BARE release — keep the domain, keep the wNFT, hand the money back — and there is deliberately no such operation: a domain still resolving with its lock returned is an identity with no sybil cost behind it, which is the whole deterrent this chain charges instead of a transaction fee. *Changed 2026-09-06.* `releaseLock` used to perform its one leg anyway. A domain lock lives in three places that must agree — `Wnft.lockedMinor`, the locked balance on the native ledger, and `DomainRecord.lockedMinor` — and `IdunnVault` owns the first and cannot reach the other two: it deliberately imports nothing from `str-domain.ts` and holds no ledger. Zeroing the wNFT alone put the chain into a state `reconcileLocks()` reports as drift, and the method was exported, so any embedder could reach it. **It now refuses**, after the slave guard. Idunn's leg of the burn is `burnMaster`, which reports the lock it destroyed and lets the chain pay it. --- ## 4. Entries ### Two address spaces, because public and private have opposite requirements | | public | private | |---|---|---| | addressed by | a human key — `logo`, `website`, `support-email` | `slotIdHex`, 32 random bytes | | the chain learns the name | yes, and it must — an attribute nobody can name is one nobody can ask for | **never** | | the chain learns the value | yes, in the clear, in state and in block history | never — commitment only | | inheritable by a slave | yes | no (§2.3) | | bound | 64 keys, 1 KiB per value | 64 slots | The spaces are kept disjoint by construction rather than by convention: `normalizeAttributeKey` refuses a 64-hex-character key, so a public key can never be read as a private slot id or the reverse. Public keys are case-folded with `toLowerCase()`, never `toLocaleLowerCase()`. If `Logo` and `logo` were two keys on one identity, a holder could keep a current value under one and a stale one under the other, and a verifier asking for the wrong spelling would be shown the stale one and told it was `active`. Superseding only means something if there is exactly one name for a thing. The locale-aware form maps `I` to a dotless `i` under a Turkish locale, so two nodes differing only in locale would fold the same key differently and reach different state roots — a chain split from a spelling. ### The lifecycle | status | meaning | |---|---| | `active` | the current version of its slot. The only status that is served | | `superseded` | a newer version of the same slot took its place. Retained, never served | | `hidden` | withdrawn from what the node serves, by the holder. Retained in state | | `burned` | a tombstone. Value or commitment gone from state; the version number is consumed forever and the slot is closed | Transitions, and only these: `active → hidden` and `hidden → active` (`wnft-hide` / `wnft-unhide`, current version only); `active → superseded` and `hidden → superseded` when a new version lands; any non-burned status `→ burned`. A `burned` entry is never revisited. **Superseding never touches the domain.** That is the case the whole feature exists for: an expired passport is replaced by the new one, the new version becomes `active`, the old one becomes `superseded`, and `STR.sourceless` is still `STR.sourceless`, on the same wallet, holding the same lock. `IdunnVault` has no reference to the registry at all, so nothing in it *can* touch the domain. Versions are monotonic per slot from 1, supplied by the holder rather than assigned by the producer — the version is inside what the holder signed, so a producer cannot renumber a write in flight. Lower is a rollback (a holder silently reverting to a document they superseded); higher is a gap that would let a later record claim a version nobody can place in time. Both are refused. **A burned slot is closed permanently.** Reusing it would relink the new entry to the burned one for every chain observer, which undoes the burn for anyone watching. The holder opens a fresh slot id, which costs nothing and carries no history. --- ## 5. What a holder must do for a burn to be complete The chain cannot erase the commitment — that is the premise of the whole design — so what a burn *means* has to be something the holder can actually complete. Destroying the 32-byte opening is what makes the commitment permanently unopenable: without it nobody can recompute the salt, so the commitment stays a 32-byte string indistinguishable from random for anyone, including the holder, including someone who later steals the vault seed, including someone who correctly guesses the payload. `Lethe.burnEntry(vault, name)` does the part that is in memory — it removes the slot and every opening for it from the vault index — and **returns the part that is not**, as a `BurnInstruction.steps` checklist, because a caller has to be handed them. A burn that clears one process's variables while three backups keep the ciphertext has erased nothing. The six steps, as the code returns them: 1. Delete every sealed envelope for that slot — **every version**, not just the latest. 2. Delete the same envelopes from every replica: other devices, cloud sync, any custodian you sealed a copy for, and every backup snapshot that predates the burn. 3. Re-wrap and re-store the vault (`wrapVault`). Until you do, the old wrapped vault on disk still opens the commitment. 4. Delete any plaintext copy exported while using the entry — screenshots, PDFs, clipboard history, temporary files. 5. **Tell every verifier you disclosed this entry to.** A disclosure hands over the opening, so a verifier who kept it can still open the commitment on chain after the burn. That cannot be revoked. It can only be asked, and stopped from applying to *future* versions by rolling the entry forward. 6. Record that the slot is burned, so no later write reuses it. `burnVersion` is the narrower operation for the common case: drop one superseded version's opening while the current version stays usable. Two stated limits. This runs in a garbage-collected runtime with immutable strings, so removing a reference is not zeroing memory — a heap dump, a swap file or a core dump taken before collection can still hold the opening. That is the same limitation [SECURITY.md](SECURITY.md) states for node keys, for the same reason, and it is not fixable from inside JavaScript. And hiding is computational and conditional on the opening staying secret: once an opening is disclosed, that commitment is open to whoever holds it forever, because the chain keeps the commitment forever. --- ## 6. Selective disclosure A holder proves one entry, at one version, to one chosen verifier. The verifier recomputes the commitment from `(payload, opening, path)` and compares it with what they read from the chain themselves. `verifyDisclosure` takes the on-chain record as a **parameter** rather than fetching it, and that is the point: verification is arithmetic over two values the verifier already holds. Nothing is submitted, no endpoint is called, and the chain has no way to learn that a disclosure took place — not who disclosed, not to whom, not how often. A verifier learns **exactly**: that at slot `slotIdHex` version `version` of this wNFT, the entry named `name` holds `payload`, and that the holder committed to it before the block carrying that commitment was sealed. A verifier does **not** learn: any other slot's name or value; any other version of this slot; how many entries the wNFT has beyond what the chain shows publicly; the vault seed; the holder's other openings. Each opening is HKDF-separated by slot and version, so one opening is one statement — showing a verifier an old address is not showing them the new one. The signature on a disclosure does not make the value more true; the commitment already does that, and anyone holding `(payload, opening)` can produce a valid opening. What it establishes is **consent** — that the holder chose this verifier, at this time, for this entry. That is an audit property, not a confidentiality one, and a verifier who assumes otherwise will build a forwarding check on it that does not hold. Disclosures carry an audience, an issue time, an expiry (10 minutes by default) and a fresh nonce. It is ed25519 rather than hybrid Gemini deliberately: a disclosure lives for minutes and is verified immediately, so it has no harvest-now-decrypt-later exposure, which is the property that makes long-lived keys hybrid in this repository. **The expiry is checked, or the caller says it is not.** *Changed 2026-09-06.* `verifyDisclosure` is pure and takes `nowMs` rather than reading a clock, because a clock inside a pure function is one its caller cannot mock. It used to treat an absent `nowMs` as permission to skip the window entirely — so the shortest call that compiles was the one that made the TTL advisory, and a disclosure meant to live ten minutes verified years later with the holder's consent having no expiry at all. Omitting `nowMs` is now a refusal that names the omission; `ignoreValidityWindow: true` is how a caller with no clock asks the narrower question — does this opening open this commitment — and shows in their own source that they asked it. Passing both is a refusal, not a preference to be resolved quietly. `verifyDisclosureOnChain` still supplies `Date.now()` by default, which is right for the function a verifier actually calls. --- ## 7. Master and slave `wnft-slave-create` names the **master's** `wnftId`, and the signature check has already established that the signer derives the master's holder address. That single check is the whole of "only the master's wallet may create or write to a slave" — there is no second path, because a slave wNFT is only ever reachable through a record against its master. A slave's `holderAddress` **is** the master's wallet. **One level, enforced.** `STR.sourceless.sales` is a slave of `STR.sourceless`; `STR.sourceless.sales.eu` is refused. Depth would multiply the cost of a master update by the length of the chain and turn "which lock backs this identity" from a lookup into a walk — and a walk can loop, or dangle halfway, in a way a single hop cannot. Slave shape is classified by dot count in the identifier, which adds a rule at the slave API without making any currently-valid domain invalid: all 1313 genesis identifiers hold none. **Inheritance is by reference, never by copy.** A master that supersedes `logo` supersedes it for every slave that inherits it, in the same record, with no second write and no possibility of the two disagreeing. Copying would let them drift with nothing in state saying which was right. An own entry **masks** inheritance at any status. A slave that sets its own `email` and then hides it resolves to nothing, not back to the master's — falling through would resurrect a value the slave had explicitly withdrawn. That masking is also the intended way to opt out of an inherited key. ### Why a slave may name a wallet but not spend `operatorAddress` exists for attribution and for being paid. It confers nothing else. Spend authority on this chain is `StrDomainRegistry.isProved(wallet)`, which answers only for a wallet holding a proved **master** domain with a lock behind it. Slaves are deliberately kept out of the registry's `byDomain` and `byWallet` maps entirely — they live in the vault and only in the vault — so `isProved` cannot be reached through one. The test asserts it directly: with an operator address set, `isProved(operator)` is false, `reverse(operator)` is undefined, `resolve('STR.sourceless.sales')` is undefined, and the registry's total locked STR is unchanged at one lock. If a slave could confer spend, one lock would buy `MAX_SLAVES_PER_MASTER` spending identities and the fee-free anti-spam model — whose entire premise is that identity is expensive exactly once — would be gone. **Revocation is a tombstone, not a deletion.** Every live entry on the slave is burned, the wNFT is marked `revoked`, and the leaf stays. A revoked slave's name cannot be re-minted, for the same reason a burned version number cannot be reissued: a counterparty who resolved `STR.sourceless.sales` last year must not be shown a different `STR.sourceless.sales` this year with no way to tell. --- ## 8. Bounds, and the measured ceiling Every bound is a refusal, not a truncation. An identity object with no bound is a way to make every node on the network store whatever an attacker likes, forever, for the price of one domain — and unlike a balance, nothing about an attribute is self-limiting. | Bound | Value | At the bound | |---|---:|---| | `MAX_ENTRIES_PER_WNFT` | 512 | no new version of anything; tombstones count | | `MAX_PUBLIC_KEYS_PER_WNFT` | 64 | a **new** public key is refused | | `MAX_PRIVATE_SLOTS_PER_WNFT` | 64 | a **new** slot id is refused | | `MAX_VERSIONS_PER_SLOT` | 64 | that slot is frozen; the holder opens a new one | | `MAX_ATTRIBUTE_KEY_LENGTH` | 64 chars | refused | | `MAX_PUBLIC_VALUE_BYTES` | 1024 | refused | | `MAX_COMMITMENTS_PER_RECORD` | 64 | refused — set equal to the slot bound so a full roll always fits | | `MAX_SLAVES_PER_MASTER` | 1024 | `wnft-slave-create` refused; revoke a slave to make room | | `MAX_INHERITED_KEYS` | 64 | refused; use `'all'` | | `MAX_WNFT_SEQUENCE` | 1,000,000 | the wNFT is frozen; every record against it is refused | Tombstones counting against the entry bound is the harsh part and it is deliberate: a burned version's number can never be reused and a burned slot is closed forever, so the slot is genuinely consumed. The holder's route at the bound is a fresh domain, which costs another lock — which is the point. An unbounded object would make the figures below the *floor* of what one lock buys rather than the ceiling. Rotating slots is the right behaviour rather than a workaround: a slot carrying 64 versions has a 64-point update history attached to one label, and that cadence is exactly what `rollForward` exists to blunt. A holder rolling quarterly gets sixteen years out of one slot before it freezes, and opening the next one costs one entry. ### The ceiling, measured Measured on this tree by filling a wNFT to `MAX_ENTRIES_PER_WNFT` and taking the canonical JSON length of its snapshot entry. This is **current state per node**; it excludes the block history that carried the records and excludes any on-disk framing. | A wNFT filled with | bytes/entry | full wNFT | 1,000,000 such identities | |---|---:|---:|---:| | 512 public entries, 8-byte values | 149 | 74.5 KB | 71 GB | | 512 private commitments | 272 | 136.0 KB | 130 GB | | 512 public entries at the 1 KiB value bound | 1,165 | 582.5 KB | 555 GB | An empty wNFT is 305 bytes. The bottom row is the true worst case one lock can buy: **~583 KB of state per identity, on every node, forever.** The comment in `src/identity/wnft.ts` calls this "about 100 KB … ~100 GB at a million", from "roughly 200 bytes" per entry. That arithmetic is an estimate labelled as a measurement, it lands between the first two rows, and it understates the worst case by about 5.8×. The figures in this table are the measured ones. The bounds themselves are unaffected — this changes what they imply, not whether they hold — but a capacity plan built on 100 GB would be wrong. The typical wNFT is a few hundred bytes. The ceiling is only reached by an identity that deliberately fills it. --- ## 9. On the block plane A wNFT update is an **input** every node folds for itself, exactly like a contract record. An identity one node believes in and another does not is not an identity; it is a local opinion about a person. - `BlockchainCore.submitWnft(record)` queues. **Nothing is applied there.** - `produceBlock` folds identity **after** governance and **before** transfers, so a domain proved in a block can be paid in the same block. One refused record does not take the block: a stale sequence number is the ordinary failure, and letting it stop the producer would hand anyone who can queue a record a way to stall the chain. Each record is tried against a vault snapshot and rolled back individually if it throws. - `acceptBlock` and the `validateChain` replay take the **opposite** rule: a record already in a sealed block must apply exactly as its producer applied it, or this node's identity root diverges from the one the header commits to `DEFERRED_DEPTH` blocks later. A block carrying a record that does not apply is an invalid block, and every node decides that identically. - `rebuildDomains` replays `wnftRecords` too. Without it a restart rebuilt the domains and threw the wNFTs away — every superseded document, every burn, every slave, gone, while the chain that carried them still validated. The loss was silent and total. - `recordsRootHex` covers `wnftRecords`, so dropping or rewriting one is caught before it applies. Otherwise a producer could show an identity to some peers and withhold it from others while every chain still validated. Every record is applied at the producing block's `producedAtMs`, read out of the header by a replaying node. There is no wall clock anywhere in the fold. ### What authorises a record Three checks, in this order, and the order is deliberate: 1. **Sequence.** `record.sequence === wnft.sequence + 1`, checked *before* the signature — a record whose sequence is wrong is a replay or a race, and there is no point spending an ed25519 verification to discover that. This is what turns an honestly-replayed block into a refusal rather than a second mutation. 2. **Holder signature.** Not optional, unlike Odin's: governance records are checked against a roll that says who may act, and a wNFT record has no roll. The only thing standing between a stranger and your passport slot is this signature. It must derive `holderAddress`, and for a slave that is the master's wallet — which is the whole of "only the master may write to a slave". 3. **Chain binding.** `wnftRecordPayload` binds `wnft-record-v1`, the chain binding, the sequence and every field the record acts on, including every nested commitment's `slotIdHex`, `version` and `commitmentHex`. A record signed on a testnet does not carry to mainnet, and no part of it can be rewritten in flight. A `WnftCommitment` proves *what* was said and carries no signature at all, so it says nothing about who was allowed to say it. That gap is closed here and only here. Each element of a `wnft-set-private` record must satisfy `isWnftCommitment` exactly — five fields, no more. The record **nests** the commitment rather than spreading it, so the chain-side shape check is the same check Lethe publishes and a sixth field cannot be smuggled in by a well-meaning `{...commitment, entryName}` in a caller nobody re-read. The commitment's internal `wnftId` must also match the outer record's, or a commitment made for wNFT A could be written onto wNFT B and would verify for anyone checking the commitment alone. --- ## 10. What is designed but not built Stated so nobody assumes otherwise. - **~~No network-facing way to submit a wNFT record.~~ CLOSED, 2026-09-08.** This said `submitWnft` was an in-process method on `BlockchainCore`, that `JsonRpcSurface` exposed no identity method and that the `strblk` CLI had no identity command. All three were closed together: **Iris** (`src/network/iris.ts`) is the public JSON-RPC endpoint every node opens by default and `IRIS_METHODS` publishes `submitWnft`, `submitWnftTransfer` and `submitDomainBurn` among its eleven write methods, and `strblk wallet identity get`/`set` is the CLI. **What is still true is narrower**: a wNFT record has no SLNN protocol, so one accepted by Iris is queued on that node only until that node's own slot comes round; and no wallet in this tree can *produce* a burn or a transfer record — `Skidbladnir` has no signing method for either, so the door exists and the hand to open it does not. See `docs/book/IDENTITY_AND_WALLET.md` §11. - **No lock release.** §3. The guard is built and proved; the operation is not. - **No per-block cap on identity records — but the queue and the block are bounded.** This bullet said `submitWnft` pushes onto an unbounded array and `produceBlock` seals all of it. It refuses past `MAX_PENDING_RECORDS` = 1,024 (`src/core/blockchain.ts`), and a block is bounded at seal by `MAX_BLOCK_BYTES` = 400,000 (`src/core/blockchain.ts`) — a bound that exists because a wNFT holder using only legal records inside every published limit sealed a 729,810-byte block against a 523,235-byte frame ceiling, and every node reported a valid chain while the follower stopped. What remains true is that no record KIND has a count ceiling of its own the way transactions have 100. This is a block-plane property rather than an identity one, but a wNFT record is the cheapest to produce. - **No key-rotation record.** `rotateVaultWallet` rotates the holder's *vault* wrapping key with no chain transaction and nothing re-committed, which is correct and tested. Changing the wallet a **domain** is bound to is a different operation and does not exist. - **No recovery.** If the wallet key is gone the seed is gone, and with it the openings and any ability to disclose or decrypt. The holder's independent backup is the 32-byte `vault.seedHex` they can write down. There is no escrow and no recovery service, because either one is a second party who can read the identity. - **No private-slot inheritance.** §2.3 — a deliberate trade-off, listed here so it is visible as an open design question rather than only as a property. --- ## 11. Where this is proved | File | What it covers | |---|---| | `tests/integration/wnft.integration.test.ts` | the vault's rules — supersede, hide, burn, master/slave, bounds, determinism, the lock | | `tests/integration/lethe-wnft.integration.test.ts` | commitments (binding and hiding), disclosure, envelopes, vault key handling, roll-forward, holder-side burn | | `tests/integration/wnft-onchain.integration.test.ts` | the block plane — root movement, follower agreement, JSON wire survival, rewritten-records refusal, restart, cross-chain refusal | The burn test searches the **whole serialised snapshot** for the commitment rather than reading one field: a burn that only cleared the field a reader happens to look at is the bug it is written against. The wire test asserts on the JSON, because a structural copy that never leaves the process proves nothing about what a peer receives, and that defect class has cost this repository three separate incidents.