# Identity and the wallet The reference for anyone building a wallet or an integration against this chain, and for anyone who must not lose a user's funds. Everything below is read off the code as it stands. Where a claim could not be checked from the tree it is marked **unmeasured** rather than softened. Where the code refuses to promise something, this document refuses too — most sharply in [Recovery](#7-recovery), which is the section that will cost somebody real money if it is skimmed. **Line numbers were re-pointed at `9220195`**, 2026-09-07, when §1.9 (Helgrind) and §1.10 (Handsal) were added, and again at `a78ab19` when §9.5 to §9.7 were added. **§4.11 was added on 2026-09-08 and is read off the tree at that date.** It should have been here from the start: this volume cited `skidbladnir.ts` fifty-three times and `skirnir.ts` — the transport that makes the wallet reach a node in another process — **not once**, which left a chapter written for "anyone building a wallet or an integration against this chain" describing a wallet that only works if you are already inside the node. `npm run citations` scores citations written as `` `Symbol` (`path.ts:NNN`) `` and fails CI when one no longer lands within 25 lines of that symbol; a bare line reference in prose is still an anchor to check rather than a coordinate to trust. --- ## Contents 1. [STR.domain — the entry rule](#1-strdomain--the-entry-rule) 2. [wNFT — the state object identity lives in](#2-wnft--the-state-object-identity-lives-in) 3. [Lethe and the vault](#3-lethe-and-the-vault) 4. [Skidbladnir — the wallet](#4-skidbladnir--the-wallet), and [Skirnir, its transport to a node it does not run](#411-skirnir--the-same-wallet-against-a-node-it-does-not-run) 5. [The authority model](#5-the-authority-model) 6. [Wallet at rest](#6-wallet-at-rest) 7. [Recovery](#7-recovery) 8. [Hostless surfaces](#8-hostless-surfaces) 9. [XPlorer — the read-only explorer](#9-xplorer--the-read-only-explorer) 10. [What a wallet must do to be safe on this chain](#10-what-a-wallet-must-do-to-be-safe-on-this-chain) 11. [What is still missing](#11-what-is-still-missing) --- ## 1. STR.domain — the entry rule `src/identity/str-domain.ts` ### 1.1 Why it exists at all SourceLess charges no transaction fee. Something else has to bound sybil identities, and the choice made here is a **one-time cost at the identity layer** rather than a toll on every transaction: every user must hold an allocated and proved `STR.domain`, and a domain costs **1,000 STR locked through a wNFT — or 5,000 for a business domain** (§1.6, `requiredLockMinor` `src/identity/str-domain.ts:84`). Sybil cost is paid once per identity instead of once per transaction. That single decision is why this file is the first one a wallet integrator reads. **A wallet that does not understand the domain rule will build a send button that never works.** ### 1.2 Format ``` STR. /^STR\.[a-zA-Z0-9\-_.]{1,64}$/i ``` - `STR_DOMAIN_PATTERN` (`src/identity/str-domain.ts:57`), `MAX_IDENTIFIER_LENGTH` (`:58`) = 64. - The prefix is case-insensitive on input and normalised to uppercase `STR.` (`src/identity/str-domain.ts:38`, `:84`). - The deprecated `.str` form is **rejected outright** rather than migrated by guesswork (`src/identity/str-domain.ts:56-58`). The error tells the caller what to write instead. - Spaces are refused (`:54`). Anything outside `[a-zA-Z0-9\-_.]` is refused (`:68-70`). ### 1.3 Normalisation, and the chain split that motivated it `normalizeStrDomain` (`src/identity/str-domain.ts:51-85`) folds the identifier with `toLowerCase()`. Two separate reasons are written into the code, and the second is the one that matters: - **Convenience.** Nobody should lose a name to how they capitalised it. - **Security.** Without folding, a domain differing from another only in case is a *different* domain that renders almost identically. Register `STR.TREASURY` beside `STR.treasury` and most people reading a transaction will not notice which one they are paying (`src/identity/str-domain.ts:72-78`). That is an impersonation primitive. **`toLowerCase()`, never `toLocaleLowerCase()`** (`src/identity/str-domain.ts:80-83`). The locale-aware form maps `I` to a dotless `ı` under a Turkish locale. Two nodes differing only in their process locale would then disagree about whether two domains are the same one — they would fold the identifier differently, write different keys into state, and reach different state roots. **A chain split, from a name.** The identifier is restricted to ASCII one line earlier, which is exactly what makes `toLowerCase()` locale-independent by definition. The identical decision, with the identical reasoning, is made for public attribute keys in `normalizeAttributeKey` (`src/identity/wnft.ts:451-454`). Any integration that folds domains or attribute keys on its own side must use a plain ASCII lower-case fold and nothing else. ### 1.4 Allocation vs proof — two states, and only one of them can spend | State | Established by | What it permits | |---|---|---| | **allocated** | `allocate()` / a signed `DomainAllocationRecord` | **Receiving only.** Not sufficient to transact. | | **proved** | a verified `DomainProof` + the lock its class requires, 1,000 or 5,000 STR (§1.6) | Spending, contract deploy/call, identity writes. | - `allocate` — `src/identity/str-domain.ts:330-346`. One domain per wallet and one wallet per domain, enforced in both directions (`:335-341`). Without that the domain requirement would not bound identities at all (`:299-304`). - `prove` — `src/identity/str-domain.ts:349-389`. The proof is **verified here, never taken on trust** (`:350-351`), the allocation must already exist and belong to the same wallet (`:353-357`), and the wNFT is minted in the same statement that writes the lock (`:372-384`). `prove()` is deliberately **idempotent** (`src/identity/str-domain.ts:364-372`). 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, turning a replayed record into a way to destroy somebody's identity documents. **Why the asymmetry between spending and receiving exists.** `LedgerManager.validate` refuses a transfer whose sender has no proved domain (`src/core/ledger-manager.ts:319-321`) but requires only an *allocated* domain of the recipient (`src/core/ledger-manager.ts:339-343`). The comment states the reason plainly: a newcomer must be able to receive the STR the lock needs before it can lock them, and requiring proof to receive would make the lock unfundable — nobody could ever join (`src/core/ledger-manager.ts:310-318`). The same gate applies to contracts: deploy and call both require `isProved` of the acting account (`src/core/blockchain.ts:763-768`), with a contract address exempted because a contract is not a person and the account that funded it was already gated (`:760-762`). ### 1.5 Claims and proofs are signed artifacts Two payloads, both canonical, both domain-separated: - `domainClaimPayload` — `str-domain-claim-v1` (`src/identity/str-domain.ts:482-495`). - `domainProofPayload` — `str-domain-proof-v1` (`src/identity/str-domain.ts:402-417`). `claimDomain` (`src/identity/str-domain.ts:427-441`) signs a claim with the wallet it allocates to. Allocation used to be a bare `(domain, address)` pair anyone could submit, which let a stranger reserve every desirable name for free and — worse — allocate names *pointing at someone else's wallet*. **You can only ever allocate to yourself**, and the signature is what makes that true. `verifyDomainClaim` (`:504-546`) and `verifyDomainProof` (`:604-663`) both refuse a record whose domain is **not already normalised** (`:523`, `:614`). This is not tidiness. A claim signed over `STR.Sourceless` that verified here and was then stored under the folded `STR.sourceless` would leave the stored record's signature no longer covering the name it holds — the producer would seal a block every follower rejects, and which fails the producer's own `validateChain`, with no reorg path off it. `verifyDomainProof` additionally checks that the wNFT id is the one this domain implies (`:632`) and that the lock is **exactly** what the signed `domainClass` requires (`:641`). ### 1.6 The domain lock — 1,000 STR, and 5,000 for a business domain ``` DOMAIN_LOCK_STR = 1_000n src/identity/str-domain.ts:56 STR_DECIMALS = 13 :57 DOMAIN_LOCK_MINOR = 1_000n * 10n ** 13n :58 BUSINESS_DOMAIN_LOCK_STR = 5_000n :75 BUSINESS_DOMAIN_LOCK_MINOR = 5_000n * 10n ** 13n :76 ``` **There are two lock tiers, and every earlier version of this chapter stated one.** `DomainClass` (`DomainClass` `src/identity/str-domain.ts:78`) is `'personal' | 'business'`, and `requiredLockMinor` (`requiredLockMinor` `src/identity/str-domain.ts:84`) is the only place in the tree either number is selected: ```ts return domainClass === 'business' ? BUSINESS_DOMAIN_LOCK_MINOR : DOMAIN_LOCK_MINOR; ``` `domainClassOf` (`src/identity/str-domain.ts:115`) reads the class off a record and treats absence as `personal`, so a record written before the class existed still reconciles against 1,000. The business tier is not latent. It is in the shipped wallet's own help text, printed from the constant rather than written out — `[--business] A BUSINESS domain: ${BUSINESS_DOMAIN_LOCK_MINOR} minor STR locked instead` (`src/cli/wallet.ts:182`) — it is what `prove` on the wallet checks the balance against (`requiredLockMinor(domainClass)`, at `src/wallet/skidbladnir.ts:492`), and the class is carried into the `DomainRecord` so `reconcileDomains` asks the record which lock it owes (`src/core/ledger-manager.ts:864`). A business domain is required for a public STR.domain website and to own a paid hostless space; that is the thing the extra 4,000 STR buys. **So read every bare "1000 STR" in the rest of this chapter as the lock a *personal* domain requires.** Where the tier changes what the sentence means, the sentence now says both numbers. Where it does not, 1,000 is there because every worked example in this volume is a personal domain. A wallet that renders `lockedMinor` against a hardcoded 1,000 misreports a business holder's position by 4,000 STR. Where the lock actually lands: `applyRegistration` (`src/core/blockchain.ts:17495`) verifies the proof, derives the amount from the **signed class** rather than reading it off the record — `requiredLockMinor(domainClassOf(registration))` at `:6518` — checks the wallet has that much **available** (`:6519-6521`), calls `domains.prove(...)`, then `ledgers.native.lock(wallet, requiredMinor)` and mints 1 WNFT token (`:6523-6525`). `verifyDomainProof` (`src/identity/str-domain.ts:706`) has already refused any proof whose declared lock is not **exactly** what its class requires (`:641`) — a floor rather than an equality would have let a `business` proof declare the personal amount and pass, which is a 5,000 STR name bought for 1,000. The lock is held on the wNFT, and `DomainRecord.lockedMinor` is a **projection** of it, written from one place only (`prove`, `src/identity/str-domain.ts:728`) and read back off the wNFT at `:763` rather than copied from the proof, so the projection cannot be written from a source the vault never saw. `reconcileLocks()` (`src/identity/str-domain.ts:1933`) is the assertion that the two never drifted, and it also checks that every wNFT id in the vault is the deterministic one — the id construction is duplicated in `wnft.ts` so that module needs no import from this one. **A genesis domain gets a wNFT holding a zero lock** (`registerGenesis` `src/identity/str-domain.ts:1029`). The lock is the sybil cost of *joining*; genesis membership is defined by the spec. It still needs the wNFT, because a genesis domain that could hold no attributes would be an identity the network's own founders cannot use. > **The lock has no release path, and the method that looked like one now refuses.** > **Corrected after this chapter was written** — the paragraph that stood here described > `IdunnVault.releaseLock` zeroing the wNFT's lock without unlocking the native ledger or the > `DomainRecord` projection, which `reconcileLocks` then reported as drift, and cited a test > asserting exactly that corruption. Both are now the opposite: the method is > `(wnftId, atMs): never` and throws unconditionally, and that test asserts the refusal and > that all three legs are untouched. > > The release path was **not** built, because it cannot be built there: `IdunnVault` holds no > ledger and imports nothing from `str-domain.ts` by design, and a release not carried in a > block does not replay, so nodes would diverge. Building it means a new consensus record kind, > which is a governance decision about whether a domain lock is refundable at all. > > **That decision was taken on 2026-09-07, and the answer was no.** The lock is not > refundable; it is RECOVERABLE, by destroying the identity it paid for. `DomainBurnRecord` > (`src/identity/helgrind.ts`) is the record kind, `applyDomainBurn` is the one implementation > all three execution paths run, and Idunn's leg of it is `burnMaster`, which erases the wNFT > and reports the lock it was holding. `releaseLock` still refuses, because what IT names — > keeping the domain and taking the money back — is still not an operation this chain has. > > **So tell your users this:** a domain lock is never released while you hold the domain. There > are exactly **two** ways back to the STR, and the first one is the destructive one: > > 1. **Burn the domain** (§1.9). It refunds what the lock holds, destroys the identity and > everything on its wNFT, shuts the name for thirty days, and bars your address from that name > permanently. > 2. **Sell the domain** (§1.10). `applyWnftTransfer` runs > `native.release(record.seller, movedLockMinor)` and `native.lock(record.buyer, movedLockMinor)` > in one statement (`src/core/blockchain.ts:6851`), so the seller's lock is released and the > buyer's is posted. The seller is paid `priceMinor` **as well**, and `priceMinor: 0n` is legal > — which makes a zero-price sale the non-destructive exit: the lock comes back and the name, > the wNFT and everything on it survive, under a new holder. > > **Corrected 2026-09-12.** The paragraph that stood here said burning was the *only* way back. > That was written before §1.10 and never amended, and it is the sentence a wallet vendor pastes: > a holder who followed it destroyed an identity, its documents and thirty days of the name's > availability, and earned a permanent bar on their own address, to recover STR that a sale would > have returned with the name intact. The first clause — never released while you hold it — still > stands, and it is what both exits have in common: you stop holding the domain either way. ### 1.7 The gate a wallet must respect ```ts isProved(walletAddress): boolean src/identity/str-domain.ts:471-475 requireProved(walletAddress): DomainRecord :477-484 ``` `isProved` answers only for a wallet holding a proved **master** domain. Slave domains are deliberately kept out of `byDomain` and `byWallet` entirely (`src/identity/str-domain.ts:318-322`), so **no slave can ever reach `isProved()` and be handed spend authority its master never paid for.** ### 1.8 Rollback `clone()` (`src/identity/str-domain.ts:536-544`) and `absorb()` (`:547-559`) exist because applying a block from a peer mutates identity as well as balances, and rejecting it halfway has to restore both. The wNFT vault is held *inside* the registry (`:310-323`) for exactly this reason: a vault held anywhere else would be restored by a different rollback, and two rollbacks can disagree. `clone()` carries the chain binding rather than defaulting it (`:537-541`) — an unbound clone would refuse every record the original accepts, and it would look like a signature failure rather than a wiring one. ### 1.9 Helgrind — burning a domain, and the two rules it leaves behind **Added after this chapter was written.** §1.6 promised this section by describing the decision; this is the mechanism. `src/identity/helgrind.ts`. Norse *Helgrindr*, the gate of Hel: what passes it does not come back, and the one who walked through does not walk back through the same gate. Both halves of the rule are in the name, and both are in the code. Burning an STR.domain **refunds the STR the lock held to the burner**, and then: - a **30-day cooldown** on that domain, during which no address may take it — `DOMAIN_BURN_COOLDOWN_MS` (`src/identity/helgrind.ts:88`), which is literally `30 * 24 * 60 * 60 * 1000`; - the **burning address may never hold that domain again**, permanently, by any door. The second clause is permanent by decision, not by omission: the cooldown is time-bounded and applies to everyone, so a bar on the burner that also expired would say nothing the cooldown did not. #### The record `DomainBurnRecord` (`src/identity/helgrind.ts:114`) carries **four fields and nothing else**: `kind`, the normalized `domain`, the `burner`, its `nonce`, and one `authorization`. Every consequence is derived rather than asserted, which is what makes it replay identically on every node: | Not in the record | Where it comes from instead | |---|---| | the refund amount | read off the wNFT at burn time (`applyDomainBurn`, `src/core/blockchain.ts:5424`) | | the burn height | the block header's | | the burn timestamp | the block header's `producedAtMs` | A record that carried any of them would be a number every follower had to take on trust, which is the defect that made the old PoE counters unverifiable. The `nonce` is the burner's **chain-wide native nonce** — deliberately the same one a transfer uses rather than a second replay mechanism of the record's own. The cost is stated where it is paid: **a burn invalidates whatever else that account had signed at that nonce.** `domainBurnPayload` (`src/identity/helgrind.ts:133`) folds the chain binding in, so a burn signed for a testnet does not carry to mainnet, and `assertDomainBurnAuthorized` (`assertDomainBurnAuthorized` `src/identity/helgrind.ts:201`) requires the signature to verify **and** the presented key to derive `record.burner`. A forged record cannot even be used as an oracle for what an account holds: `applyDomainBurn` checks the authorization before it reads a single balance (`src/core/blockchain.ts:5424`). #### Milliseconds, not blocks, and this is a decision The cooldown is `producedAtMs` on the block carrying the burn plus `DOMAIN_BURN_COOLDOWN_MS`, compared against `producedAtMs` on the block carrying the next attempt. Not a height count, for four reasons in the order that decided it (`src/identity/helgrind.ts:35-70`): 1. **A height count is not thirty days, it is thirty days at the current slot.** Blocks per day is `86400 / blockTargetSeconds` and `blockTargetSeconds` is a *governed* parameter, so a height-based cooldown would let a vote about block cadence retroactively re-time every cooldown outstanding — a governance surface nobody asked for and which would be invisible in the proposal. 2. **A height count does not expire on an idle chain.** Under Tyr a node seals only in its own slot and only with a non-empty queue, so a quiet chain produces far fewer blocks than the target implies. N heights on a chain that stops producing is a permanent cooldown, which contradicts the decision's own word, "time-bounded". 3. **`producedAtMs` is not a clock here, it is a committed field** inside the signed header, with monotonicity enforced by both `acceptBlock` and the `validateChain` replay. 4. **It is the clock every other time-based rule on this chain already uses** — Odin's expiry and timelocks, every wNFT timestamp. **The exposure this buys, as a bound rather than a hope, and it is arithmetic over the code's own constants rather than a measurement.** `producedAtMs` is producer-asserted, `verifyBlockOrdering` refuses a header more than `MAX_BLOCK_DRIFT_MS` (120,000 ms) ahead of the accepting node's clock, and monotonicity forbids it going backwards. So a colluding producer set can bring a cooldown forward by **at most 120 seconds out of 2,592,000 — 0.0046%** — and cannot delay it at all except by not producing blocks, in which case nothing is registerable anyway. #### It is chain state, and it has to be A cooldown one node remembers is a fork: two honest nodes would disagree about whether STR.sourceless is available, one would seal a registration and the other would refuse the block, and both would report a valid chain. So `HelgrindGate` (`src/identity/helgrind.ts:478`) is built in the shape of every other ledger already in the root — one Glasir leaf per burned domain, `stateRootHex() / snapshot() / loadSnapshot()` — and `LedgerManager` folds it under `BURNED-DOMAINS` (`src/core/ledger-manager.ts:533`). There is no wall clock anywhere in the class; every time it is given comes from a block header. `BurnedDomain` (`src/identity/helgrind.ts:355`) holds the domain, the barred addresses **sorted by byte order** (sorted rather than in burn order, because insertion order is not a property of the chain and two nodes applying the same burns must produce the same leaf), the last burn's `producedAtMs`, height and refund, and a burn count. **How big it gets, reasoned from the rules rather than measured.** A domain can only be burned once per cooldown, because it cannot be registered again until the cooldown lifts — so a domain accumulates **at most 12 barred addresses per year**, by construction rather than by a bound somebody has to remember to enforce. Across domains the set grows one entry per burn, and a burn *retires* a `DomainRecord` (which carries a whole proof) and a wNFT, so the tombstone is smaller than the two objects it replaces and **burning shrinks state**. #### One rule, six doors `HelgrindGate.refuseTake` (`src/identity/helgrind.ts:577`) is the whole rule in one place, and it is consulted at six doors: `submitAllocation`, `submitRegistration`, `submitWnftTransfer`, `applyAllocation`, `applyRegistration` and `StrDomainRegistry.transferRefusal`. A rule reached from some of them is a rule the producer enforces and a follower does not. Two of those doors are wider than the decision's literal words, and both widenings are argued rather than assumed: - **Allocation is gated as well as registration.** The decision says "nobody may register it", and an allocation is not a registration — but an allocation is the step that decides *who* ends up holding the name, so a cooldown enforced only at registration would be a cooldown on the paperwork and not on the name: the first watcher to allocate at second one of the cooldown would own it at second 2,592,000. It also closes a concrete replay — an allocation record is public chain data, so the burner's own pre-burn claim can be lifted out of an old block and resubmitted. - **Purchase is gated too** (§1.10). Left ungated, the permanent bar costs one accomplice and thirty days: the burner waits out the cooldown, anybody registers the name, and sells it straight back — for nothing, from the burner's own second wallet, because **the bar names an address and not a person.** The permanent clause is checked before the cooldown clause, deliberately: a burner told "wait 30 days" and then refused anyway at day 31 has been told the wrong thing twice. #### What a burn actually does, in order `applyDomainBurn` (`src/core/blockchain.ts:17675`) is the one implementation all three execution paths run. Every check first, every mutation second: 1. authorization, before any balance is read; 2. the domain must arrive already normalized — **refused, not folded**, because the signature covers the string as sent; 3. the chain nonce; 4. `StrDomainRegistry.burnRefusal` (`src/identity/str-domain.ts:1163`) — *may this address burn this name at all*, asked before the money question, because "you do not hold this name" is the true answer for a stranger's burn; 5. the refund is read off the wNFT, and the burner must have at least that much **`getReleasableLocked`** — not `getLocked`, because what is locked for life is not releasable at any amount and a burn must not appear payable out of it; 6. the burner must hold a WNFT token to retire. Then: `applyBurn` (`src/identity/str-domain.ts:1218`) → `retireDomain` (`retireDomain` `src/identity/str-domain.ts:1230`) drops the `DomainRecord` **and its allocation**; `IdunnVault.burnMaster` (`src/identity/wnft.ts:753`) erases the wNFT and reports the lock it held; `ledgers.native.release` returns the STR; the WNFT token is burned; **the seat is evicted**; the nonce is bumped. **"The seat is evicted" arrived on 2026-09-14 and it closes a hole that had been open since Helgrind was written.** Until then a burn touched the identity registry and nothing else, so a validator that burned its own name **kept its seat** — owner decision 6 in the decision record: *ceasing a domain must cease the validator*. `ceaseValidatorSeat` now writes a committed change to the **Einherjar roll** from inside this applier, so it lands on the producer, on every follower and in the `validateChain` replay alike. Three of the four doors out of a name do the same thing, and one does something weaker on purpose: | Door | The seat | |---|---| | Burn (here) | **evicted** | | Sale (Handsal) | **evicted** — a buyer does not inherit the right to produce blocks; they ask the electorate for it, as the seller had to | | Lapse burn, at day 30 | **evicted** | | Relinquish, at day 0 | **suspended** — owner decision 27(f). The holder has thirty days to change their mind, and an eviction has no door back | It writes nothing when the domain holds no seat, which is almost every domain: a change per burn on a chain with millions of names would be a register that grows with traffic rather than with governance. **Genesis domains cannot be burned**, because nothing was paid for them — which is also why cease-the-validator can only ever touch a validator admitted *after* genesis: all four doors above are already shut to a genesis name. **What it costs the burner, stated rather than discovered:** the allocation goes with the name, so a burner who held exactly one domain now holds none, and cannot spend until they reserve a new name and prove it (`LedgerManager.validate` requires a proved domain of a sender, and always will). They **can** still receive: since the domainless-recipient change an address with no domain at all may be paid and may hold. This paragraph said "nor receive (it requires an allocated one)" and that half is no longer true. And everything on the wNFT is gone — see §2.7 and §3.8 for what a wNFT burn does and does not achieve, which is a narrower thing than users assume. ### 1.10 Handsal — selling a domain, and why it takes two hands **Added after this chapter was written.** `src/identity/handsal.ts`. Old Norse law: a *handsal* is the handclasp that concludes a bargain — not a promise later evidenced, but the moment it becomes binding, and it takes two hands. This is the second half of the same governance decision §1.6 records. The lock is not unlockable; **what is transferable is the wNFT**. Until this record existed the second clause described a capability the chain did not have: nothing moved a wNFT at all, `Wnft.holderAddress` was written at mint and never again, and `StrDomainRegistry.burnRefusal` said so in its own docstring while failing closed on the three legs that would have drifted the day a transfer landed. #### The record `WnftTransferRecord` (`src/identity/handsal.ts:139`): `kind`, `domain`, `seller`, `buyer`, `priceMinor`, `sellerNonce`, `buyerNonce`, and **two** authorizations. **Neither signature is optional, and each party can be robbed by the other's alone.** - *Seller-only* would push a domain — and its lock obligation, 1,000 STR or 5,000 — onto an unwilling buyer. Their available balance is silently converted into a lock they did not ask for and cannot release except by burning a name they never wanted, and they lose whatever identity they were about to register, because one wallet holds one domain. - *Buyer-only* would let a buyer take a domain by naming a price and paying it. Identity is not a commodity with a posted price: STR.sourceless is a company's name, and "I paid you, so it is mine now" is a taking rather than a sale. Both hands sign **the identical bytes**. `wnftTransferPayload` (`src/identity/handsal.ts:181`) strips both authorizations and folds everything else, so "both parties agreed" is literally true rather than a claim about two documents that resemble each other. There is no role tag inside the payload and none is needed: `assertWnftTransferAuthorized` (`src/identity/handsal.ts:274`) requires the seller's signature to derive `seller` and the buyer's to derive `buyer`, so **swapping the two authorizations fails on the address binding rather than on a label a forger could edit.** For a wallet: `signWnftTransferAsSeller` (`src/identity/handsal.ts:202`) produces the half-signed offer, `signWnftTransferAsBuyer` (`src/identity/handsal.ts:224`) closes it, and `signWnftTransfer` (`src/identity/handsal.ts:241`) is the both-keys-in-one-process convenience. #### Two nonces, and that is the revocation `EchoRecord` and `DomainBurnRecord` each consume one chain nonce because each has one party. This consumes **both**, for two separate reasons, and only the first is about replay: 1. **Replay.** The buyer's nonce alone would already make a sealed record unreplayable. 2. **A seller must be able to withdraw an offer, and without `sellerNonce` they cannot.** The seller signs first and hands the half-signed terms over. If only the buyer's nonce were bound, the buyer could sit on that signature indefinitely — they control their own nonce, so they can simply not transact — and counter-sign a year later at a price that stopped being the price. Binding the seller's nonce makes **withdrawal the same act as any other transaction**: the seller signs anything at all, their nonce moves, and the offer is dead. No expiry field, no cancellation record, no second mechanism. The cost is stated where it is paid: a settled sale invalidates whatever else *either* party had signed at that nonce. Both were signing something that spends their nonce, and both of them signed it. #### The price is in the record; the lock is not `priceMinor` is what the buyer pays the seller, and it is the one number the chain cannot derive — what two parties agreed a name is worth. The **lock** is not in the record at all: `applyWnftTransfer` (`src/core/blockchain.ts:5580`) reads it off the wNFT, exactly as the burn reads the refund off it, so a producer cannot name it and a buyer cannot be charged a lock the seller never posted. The amount released from the seller and the amount posted by the buyer are **the same number by construction** — one read, used twice. The buyer's outlay is therefore `priceMinor` *spent* plus the lock *posted*. The lock is not spent; burning the domain later returns the lock and not the price. **Nobody pays the lock twice, and the seller is paid the price once.** `priceMinor: 0n` is legal and means a gift or a handover inside one organisation. The lock still moves, because the obligation is not a gift. **Why the price is settled in this record rather than by an ordinary transfer beside it** — the repo's default answer for moving value, and the wrong one exactly once, here: - **After the sale the seller cannot spend.** The transfer moves the domain's allocation to the buyer, as a burn deletes it, so the seller holds no proved domain and `LedgerManager.validate` refuses a transfer *from* them: they cannot refund a buyer who paid first and was never handed the name. - **One leg of this argument has been removed rather than left standing.** It opened with "after the sale the seller cannot receive", which was true when written and is not since the domainless-recipient change — a price settled after the handover would now land. What is left is atomicity, which was always the stronger half. - Settling before the handover therefore means the buyer pays and hopes — precisely the counterparty problem `templates/escrow.ares` exists to solve, and requiring every domain sale to deploy a contract is not a market, it is a workaround. One record, one block, both legs, or neither. #### The five legs, and why the check order is load-bearing `applyWnftTransfer` moves: (1) the wNFT's `holderAddress`, (2) the `DomainRecord` wallet and its allocation, (3) the seller's lock released, (4) the buyer's lock posted, (5) the price paid. **A sixth thing happens and it is not a value leg: the seller's SEAT is evicted** (2026-09-14). The owner's decision record states the hole that closes — a domain transfers through Handsal, so binding a seat to a name would mean **selling the name sells the right to produce blocks**. It does not: the sale takes the seat, and the buyer does not inherit it. Admission stays a vote, so a buyer who wants to produce asks the electorate exactly as the seller had to. Listed apart from the five because it moves no balance and cannot fail the supply assertion below; it writes a committed change to the **Einherjar roll**, and writes nothing at all when the domain held no seat. **A partial sale is worse than a partial burn in a specific way.** A burn that half-applied leaves a chain that disagrees with itself; a sale that half-applied leaves a chain that disagrees with itself *about whose money the next refund is*. `burnRefusal` fails closed on exactly that drift, so the failure mode of getting this wrong is **a domain nobody can ever burn and a thousand STR locked forever.** So every check runs first and nothing between the checks and the mutations can throw. The check that makes the whole sequence unable to fail is the buyer's, asked **once**: `available >= priceMinor + lockMinor`. Two separate checks would each pass and the pair still fail, because the price is paid first and the lock is posted out of what remains. The price moves by **burn-then-mint with a supply assertion** — the pair `EchoVault` already uses and `LedgerManager.apply` uses for every non-native token — because `YggdrasilLedger` has no "move value between two accounts" primitive and this deliberately does not add one: a value-moving method with no authorization, reachable by any embedder, is the shape `IdunnVault.releaseLock` was condemned for (§1.6). Burn before mint, so supply never rises above the cap even for an instant, and `throw` if total supply is not exactly where it started. #### What a sale refuses `StrDomainRegistry.transferRefusal` (`src/identity/str-domain.ts:1392`) is the registry's half, and `applyTransfer` (`src/identity/str-domain.ts:1479`) asks it again at the mutation so there is one definition of what makes a sale legal: | Refusal | Why | |---|---| | seller equals buyer | not a sale | | not a proved domain | there is nothing to hand over | | **genesis domain** | see below | | domain not registered to the seller | | | wNFT held by someone other than the seller | | | `wnft.lockedMinor !== record.lockedMinor` | the two halves of the chain disagree about how much money moves | | `wnft.lockedMinor <= 0n` | a sale moving no lock hands over an identity with no sybil cost behind it | | buyer already holds a **proved** domain | one domain per wallet | | the domain still holds live slaves | revoke them first; also refused inside `IdunnVault.transferMaster` (`src/identity/wnft.ts:812`) | | **`HelgrindGate.refuseTake` on the BUYER** | §1.9 — the fifth door | A buyer holding a mere *allocation* is legal and is the ordinary case. The original reason was that `LedgerManager.validate` refused a transfer to an address with no allocated domain, so a newcomer had to reserve a name before anyone could fund them and refusing that buyer would have meant no buyer could ever have the STR to pay. Since the domainless-recipient change that particular argument no longer applies — a buyer with no domain at all can be funded — and the rule stands on the plainer ground that an allocation is not proof of anything a seller needs to check. **Genesis domains are not sellable, and the reason is stronger than the burn's.** The burn refuses them because nothing was paid. A sale would be worse on three counts, all named in the refusal: a genesis wNFT holds a **zero** lock, so "the lock moves with the wNFT" would move nothing and the buyer would end up holding a proved identity that cost them nothing — the sybil price this chain charges *instead of* a transaction fee, sold rather than paid; `LedgerManager.reconcileDomains` exempts `record.genesis` from the lock check, so the exemption would follow the name to a wallet the genesis spec never named and the chain would report itself reconciled while holding a free identity; and the genesis spec is this chain's root of trust — its addresses are what `validatorSetFromGenesis` and `GladsheimSeating` are built from, so a genesis name changing hands moves a seat's identity out from under the seating that names it. #### What it costs the seller Exactly what it costs a burner. The allocation goes with the name, so a seller who held one domain now holds none and can neither spend nor receive until they reserve a new one. That is the honest consequence of selling the thing that was the entry requirement. #### The standing assertion, and what it actually stands on The invariant is: the wNFT holder, the `DomainRecord` wallet and the native ledger lock agree after every sale and every burn. **After a sale the buyer may burn and be refunded, because the lock is now charged to the buyer** — and a refund to an address the lock was never charged to is theft from the address it was. `StrDomainRegistry.burnRefusal` (`src/identity/str-domain.ts:1163`) fails closed on that drift, so the failure mode of breaking it is a domain nobody can ever burn. `StrDomainRegistry.reconcileLocks` (`src/identity/str-domain.ts:1933`) is the method that would prove it. **It has no production caller**, and its own docstring says so: *"It runs at no checkpoint. Nothing in `src/` calls this method"* (`src/identity/str-domain.ts:1820`). Its callers are `scripts/a1.mjs` and four assertions in `tests/integration/verify-identity.integration.test.ts`. **`strblk verify` calls neither it nor `reconcileDomains`**: `cmdVerify` (`src/cli/strblk.ts:2217`) calls `chain.validateChain()` and nothing named `reconcile`, and the one caller of `reconcileDomains` in `src/` is the demonstration command, `cmdDemo` (`src/cli/strblk.ts:6857`). *Until 2026-11-17 this paragraph said the docstring "asserts on every checkpoint" and that `strblk verify` calls `reconcileDomains()`. §11 corrected both on 2026-09-12; this paragraph kept them for two months, which is the defect §11 exists to describe.* So the invariant holds **by construction and not by assertion**: `applyDomainBurn` and `applyWnftTransfer` are the only two writers of these legs, each writes them adjacently with no throwing step between, and both refuse before moving anything if the projection and the wNFT already disagree. That is a real argument and it is not a check. Nothing on a running node would notice if a third writer appeared. See §11. ### 1.11 A post-quantum identity — Gemini claims and proofs A **Gemini** account signs with ed25519 **and** ML-DSA-65, and its address commits to both public keys (`deriveGeminiAddress`, `src/crypto/aegis.ts`). Until 2026-09-10 such an account could transact only if it had been written into a genesis file, and the reason was here rather than in the crypto: `verifyDomainProof` required `deriveAddress(publicKeyHex) === walletAddress`, a Gemini address derives from neither key alone, and §1.4's entry rule is *no proved domain, no transaction*. The post-quantum transaction path existed and nobody could reach it. Both payloads now carry the same three optional fields `ChainTransaction` carries — `pqSuite`, `pqPublicKeyHex`, `pqSignatureHex` — and `claimGeminiDomain` (`src/identity/str-domain.ts:456-473`) and `proveGeminiDomain` (`src/identity/str-domain.ts:578-597`) are the two signers. **Four rules, and each of them is the difference between a hybrid signature and a decoration.** 1. **Absent when absent.** `domainClaimPayload` and `domainProofPayload` fold a *named* field list, so `pqSuite` and `pqPublicKeyHex` are spread in only when the record declares post-quantum material at all. A classical claim emits the identical five-key object and a classical proof the identical seven-key object they emitted before these fields existed — pinned byte-for-byte in `tests/integration/gemini-identity.integration.test.ts` against literals captured from the tree beforehand, and pinned by **key count** as well, because an unconditional `pqSuite: undefined` is byte-identical today and moves every digest ever produced the day somebody writes `null` there instead. 2. **The address commits to both keys, and the claim is refused if it does not.** This is the whole defence. `pqPublicKeyHex` travels on the wire, so without the binding an adversary holding the ed25519 private key — which is exactly what a quantum adversary derives from the public one — attaches a lattice keypair of their own, signs both halves honestly, and produces a record that verifies completely and proves nothing. That attack is executed in the test file and refused by the address alone, with the composite itself still valid. 3. **A partial declaration is refused, never read as classical.** A claim carrying a lattice key and no lattice signature is malformed, not weaker; `aegisAdmits` refuses `'partial'` under every policy value including `'forbidden'`. Deleting all three fields does not downgrade the record either, because the `walletAddress` left behind is a Gemini address that no ed25519 key derives. 4. **The suite is matched exactly.** `ed25519+ml-dsa-65` or a refusal. There is no prefix match, no version negotiation, and an unknown suite fails identically under `optional` and `required` rather than being quietly accepted by the lenient one. Signatures are made on a surface of their own, `AEGIS_CONTEXTS.strDomain` (`sourceless:aegis:str-domain:v1`), so an identity signature cannot be replayed as a transaction signature. One label covers both the claim and the proof, because the two payloads already carry different domain separators and a second label would separate a pair that is already separated. **What it costs, measured** (canonical bytes, for the name `STR.measure` — the classical column moves with the length of a name and the overhead does not): | record | ed25519 | Gemini | per block, against the 383,616-byte record budget | |---|---|---|---| | Domain claim | 354 | 10,946 | 1,083 → 35 | | Domain proof | 461 | 11,053 | 832 → 34 | | Onboarding one identity | 815 | 21,999 | — | The 10,592-byte overhead is the same one a Gemini *transfer* carries, and the difference that matters to an operator is the frequency: a claim and a proof are paid **once per identity and never again**, while a transfer pays it every time. `GEMINI_IDENTITY_POLICY` (`GEMINI_IDENTITY_POLICY` `src/identity/str-domain.ts:353`) is therefore `optional` — `required` would refuse every classical claim and proof on every chain that exists, genesis domains included, which are declared rather than signed and which no policy can retroactively furnish with a lattice key. The three fields are folded into the block's **records root** as well, absent when absent. Left out they would have been the one part of an identity record the producer's signature did not reach, and the exposure is a chain split rather than a theft: strip `pqSignatureHex` in flight and the root still matches, so a follower holding the stripped copy rejects a block every other node accepted. ### 1.12 Fjolsvith — the standing answer to "can I have this name" **Added 2026-09-12.** This volume described five domain states across §1.4, §1.7, §1.9 and §10 and never named the module that reports them, which made the chapter read as though a client had to assemble the answer itself. It does not. `src/identity/fjolsvith.ts`, 614 lines, four importers in `src/` — `src/core/ledger-manager.ts`, `src/core/rpc.ts`, `src/cli/wallet.ts` and `src/wallet/skirnir.ts`. Norse *Fjölsviðr*, "much-wise", who stands **outside** the gate in *Fjölsvinnsmál* and answers about it without opening or closing it. **Helgrind decides; Fjolsvith answers**, and the boundary is enforced by the file containing no mutation: every function in it is a read, and the verdict it reports for a name is `HelgrindGate.refuseTake`'s own sentence rather than a second opinion beside it. `findDomain` (`src/identity/fjolsvith.ts:297`) answers one of six standings for a name: `available` · `booked` · `held` · `cooldown` · `barred`, plus `invalid` for a string that is not an STR.domain at all. Two of those are the BOOK/MINT distinction this chapter turns on — `booked` is an allocation, which reserves the name and admits nothing (§1.4), and `held` is a proved registration carrying a wNFT and a lock (§1.6). `barred` is a fact about a **pair**, a name and an address, so it is only reachable when the caller names an address; with none given, `applicantBarred` is `null` and the barred list is still reported so a client can answer it locally for an address it holds. **A held name says every way it can leave its holder** (audit ID-4, 2026-11-17). The `held` sentence once said a Handsal sale or a burn was *the only way* a name changes hands; it now names all four exits — a Handsal sale both parties sign, a key rotation by the holder (Hamskipti, §1.13, where the name follows the holder to the new address), a burn by the holder, or a relinquish followed, once its lapse window has passed, by a lapse burn. A name its holder has relinquished stays `held` and carries the open window in `relinquished` (`by`, `atMs`, `height`, `lapseEligibleAtMs`, `lapseRemainingMs`), read off `StrDomainRegistry.relinquishedInfo`; before this the reader could not see the window, and a lapsing name read exactly like any other. The wallet says the same sentence in English and German. **The gap it closed is the one §11 records twice in other shapes.** A client asking "can I have this name" had exactly one question available to it — `JsonRpcSurface.domainHolder`, which answers a holder or nothing — and *nothing* conflated three different facts. Measured on the running Polaris testnet, 2026-09-08: `domainHolder({domain:'STR.plbeta'})` answered `{"holder":null}`, the identical answer it gives for a name nobody has ever mentioned, about a name that had been burned, was in a thirty-day cooldown, and was barred forever from the address that burned it — all of it in the state root under `BURNED-DOMAINS`. A wallet reading that claims the name, `applyAllocation` refuses the claim three blocks later, and the person is told about a cooldown nothing had offered to tell them about. This is the same defect `Hlidskjalf.search` had for human readers (§11), fixed the same way: ask Helgrind as well as the registry, and report both. It is what `strblk wallet find ` is built on — *"Is it available, booked, held, cooling after a burn, or barred?"* (`WALLET_HELP` `src/cli/wallet.ts:249`) — which is the first of the three verbs that command's own help text names. ### 1.13 Hamskipti — rotating the account key, and why the ADDRESS moves **Built 2026-09-12.** Until this record existed, a holder could not rotate an account key at all: `docs/reality/GHOST_AND_WALLET.md` recorded it in one line — *no record kind exists and no CLI verb is offered* — and `strblk wallet rotate` exited 2 as an unknown verb. A key that cannot be rotated is a key that, once exposed, ends the identity: the only exit was Helgrind (§1.9), which destroys the name, starts a thirty-day cooldown and bars that address from it for ever. Old Norse *hamskipti*, the shape-change: the *hamr* is the outer form and the self inside it is unchanged. **The name is what survives and the address is what changes.** After a rotation `STR.sourceless` is still `STR.sourceless`, still the same wNFT id — `wnftIdForDomain` (`src/identity/str-domain.ts`) has never depended on an address — still holding the same attributes, the same commitments, the same 1,000 STR lock and the same balances, opened by a key the old one cannot produce. **Nor can a recovery phrase.** The new key is a fresh 32 bytes and is not derived from the 24 words a phrase wallet was created from, so **a rotation ends recovery from the phrase**: afterwards the sealed wallet file and its passphrase are the only things that open the account, and the browser wallet, which opens an account only from words, cannot open it at all. The words still open the old address, which holds nothing once the rotation lands. `strblk wallet rotate` says this before it asks for confirmation (`src/cli/wallet.ts:3641`); write a new backup of the sealed file as soon as the rotation is carried. #### Why the address moves, which is the decision the whole design rests on There were two shapes available and only one is buildable honestly on this chain. The one not taken is *keep the address, change the key that opens it*. Three facts about this tree decide it: 1. **`ChainTransaction` has one security property: `publicKeyHex` derives `from`.** `validateTransactionStateless` (`src/core/transaction.ts`) is PURE — a chain id and a genesis hash, no state — and `batchVerifyTransactionSignatures` runs it across cores. Making the derivation conditional on *…or the chain has recorded that this address moved to this key* turns the most consensus-critical predicate on the chain into a lookup in a second store, which is exactly the objection `docs/NAMING.md`'s Gefjon entry raises against delegated transactions — and Gefjon was built as a new record kind rather than as a relaxation for that reason. 2. **The chokepoint for value is keyed by ADDRESS and never sees a key.** `YggdrasilLedger.apply` (`src/core/yggdrasil.ts`) is the only thing on this chain that may move a balance, and under key-substitution the exposed key and the new key are indistinguishable there. Retiring an *address* is enforceable in that one place; retiring a *key* is not enforceable there at all. 3. **`deriveAddress` is compared against a declared address at 53 sites in 34 files** — `src/governance/gefjon.ts`, `src/hostless/oort.ts`, `src/messaging/occultation.ts`, `src/governance/fenrir.ts`, `src/economics/echo.ts`, `src/identity/handsal.ts` among them. Key-substitution makes every one of those an independent revocation check, and the first one missed leaves the exposed key with authority on that path: a thief who can still sign a Gefjon grant delegates the account's money to an address of their own and spends it. That failure mode is OPEN. This record's is CLOSED — a site that has never heard of rotation still checks a signature against the address that key derives, which is the right answer for the retired address and for the live one. So a rotation is a **rebinding of the identity to a new wallet**, which is the operation `Skidbladnir.rotateVaultKey` names as the missing one (§3.6), and the machinery already existed: `StrDomainRegistry.applyTransfer` is the one implementation that moves a name, its wNFT and its lock between two addresses, and `applyAuthorityMove` (`src/identity/str-domain.ts:1607`) is its second caller. #### The record `KeyRotationRecord` (`src/identity/hamskipti.ts`) — `kind`, `from`, `to`, `rotationIndex`, `nonce` and two authorizations. No domain, no lock, no balance, no timestamp, no height: the name is read off the registry by the address that holds it, so a rotation cannot name a name it does not hold; the lock is read off the wNFT, as a sale reads it; the stamp is the block's own `producedAtMs`. A number in the record is a number every follower has to take on trust. **Two signatures, Handsal's rule for different reasons** — `assertKeyRotationAuthorized` (`assertKeyRotationAuthorized` `src/identity/hamskipti.ts:324`): - **the old key alone** is what a stolen key can produce, and it would hand a name, a lock and every balance to an address the holder has never seen; - **the new key alone** is somebody claiming an identity they were not given; - **either key in both slots** is one signature wearing two hats, which is why the two halves are bound to two different addresses rather than to two different role labels. Both hands sign the identical bytes — `keyRotationPayload` strips both authorizations and folds everything else — so *the holder of the old key and the holder of the new key agreed to the same move* is literally true. Swapping them fails on the address binding. #### Replay and ordering: a nonce, a CONTIGUOUS index, and a retirement `docs/BUILD_STATUS.md` records what a merely-increasing per-signer cursor cost Oort: *a grant pre-signed at nonce 20 still applied after a revoke at 12*. The remedy there was a cursor that is per-space and contiguous, and it is the remedy here: 1. **The signer's chain-wide nonce**, consumed, with the cost Gefjon's entry states plainly: a rotation and an ordinary transfer from one account compete for one nonce, so a rotation signed and held dies the moment that account signs anything else. 2. **`rotationIndex` must equal the register's count for this lineage exactly.** Not *greater than*, which is the Oort defect: a rotation pre-signed for a later position has no window it can ever settle in, because indexes are consumed one at a time and no gap opens. 3. **The retirement itself.** The first rotation out of an address retires it, so a second one is refused even at the right index and with a live nonce. #### What it moves, and what it refuses to move `applyKeyRotation` (`src/core/blockchain.ts:18213`), reached from `produceBlock`, `acceptBlock` and the `validateChain` replay — and, for the identity half only, from `rebuildDomains`. Every check first, every mutation second, nothing between them that can throw, which is `applyWnftTransfer`'s rule and matters more here because there are more legs: every balance on all seven ledgers, the releasable lock released and re-posted at the far end, the WNFT token, and the name (proved, or a bare reservation — a booking left on a retired address is a name nobody could ever hold). Refused rather than half-done: - **a genesis domain**, whose address the chain's own genesis declares and whose roll Gladsheim seats a producer set from. Moving one by record would make a chain disagree with its own genesis; that is a hard fork, not a rotation. - **a successor Helgrind has barred from this name**, which would leave the name held by nobody. - **a successor that already holds a name, a balance or a nonce.** A rotation is not a merge: it would have to decide which of two identities survives and whose nonce continues. - **an account holding STR locked beyond its own domain lock** — which is what a Fenrir validator bond is (`src/governance/fenrir.ts` locks on the same field a domain lock uses). Moving that collateral away from the register holding the address to it would leave a bond with nothing behind it. Withdraw first. - **live slave domains**, the dangling-slave guard a sale already has. #### What the retirement means, and where it is enforced A retired address can never be credited again **on any ledger by any path**, and that is what makes a rotation a revocation rather than a suggestion. It is enforced in one place rather than six: `YggdrasilLedger.guardCredits` (`src/core/yggdrasil.ts:276`) is consulted by `mint` and by `validate`, so a transfer, a bridge mint, a wrap, an unwrap, a delegated spend and a post-mine all meet the same refusal. `LedgerManager.validate` names it at the door, in both directions, so the sentence a holder reads says where the authority went. `StrDomainRegistry.allocate` and `prove` refuse it too — without that, the holder of the exposed key books a fresh name on the retired address, proves it, and is spending again. `retiredAccountRefusal` (`src/identity/hamskipti.ts:666`) is the one sentence every one of those surfaces prints. #### The register, and chain identity `HamskiptiRegister` (`src/identity/hamskipti.ts:452`) holds one leaf per rotation, lives inside `StrDomainRegistry` beside `HelgrindGate` — so one rollback restores both — and is folded into `LedgerManager.stateRoot()` under `KEY-ROTATIONS`, **omitted entirely while it is empty**. The records-root fold, `keyRotationRecordsFold` (`src/identity/hamskipti.ts:387`), is omitted when a block carries none, for the reason Gefjon's is: `computeRecordsRoot` folds a named object, so a present-but-empty key would have changed the digest of every block ever produced, including height 0, whose hash IS a chain's identity. **Measured after the change**: `strblk genesis --identity` still prints `8ee28b94…` / `a6bf0085…` / `abaa1b65…`. #### What a rotation does NOT carry, stated rather than discovered Anything keyed to the retired address that this record does not move is unreachable afterwards, by the holder and the thief alike: a hostless space (Oort) you own, an STR.talk inbox key, a Gefjon authority you granted, and anything a contract holds against your address. Two of those classes are refused up front instead (the locks above); the rest are printed by `strblk wallet rotate` before it signs, and a delegation granted by a retired address grants nothing in practice, because the money has gone and the address can never be credited again. **A Gemini account cannot rotate through this record**, and that is a stated gap rather than a silent one: a Gemini address is `sha256` over both public keys, so the ed25519 half alone does not derive it and the record is refused on the address binding. A post-quantum rotation needs both keys on both sides; it is not built. #### The verb `strblk wallet rotate` (`src/cli/wallet.ts`). It asks the chain which lineage index it is waiting for, prints what moves and what stops, takes the word `yes`, and then does the two writes in the one order that cannot lose an identity: **the new secret is written into the sealed wallet file first**, as `StoredWallet.pendingRotation` (`src/wallet/at-rest.ts`), beside the key that still works, and is promoted to the account key only once the chain reports the rotation applied. Promoting first would leave a wallet whose key has no authority; submitting first would leave a chain that has moved the identity to an address whose secret was never stored, which is total and silent loss. Every later wallet command finishes an interrupted rotation by asking the chain, and the holder's vault is re-wrapped under the new key at that moment — `rotateVaultKey` (§3.6) — so the retired key opens no document either. A rotation that the chain refused consumes no nonce, so nothing else would ever tell the holder why: `accountAuthority().lastRefusal` carries the node's own sentence, and the verb resubmits the identical record rather than signing a second one, because two valid rotations racing for one nonce with one key in the file is how an identity gets lost. --- --- ## 2. wNFT — the state object identity lives in `src/identity/wnft.ts` — the vault class is **Idunn** (`IdunnVault`). ### 2.1 What a wNFT is `wnftIdForDomain` used to be the whole story: a deterministic label that held nothing. The wNFT is now the state object identity lives in — the domain lock, the ordered attribute versions, and the master/slave relation (`src/identity/wnft.ts:16-19`). One domain, one wNFT, forever; the id is `sha256("wnft:str-domain:v1:" + normalizedDomain)` (`src/identity/str-domain.ts:107-109`, mirrored for slaves at `src/identity/wnft.ts:1364-1366`). The Idunn metaphor is load-bearing rather than decorative: a casket of renewable attributes bound to an identity that does not change when its contents do. Superseding an expired passport must not change the STR.domain (`src/identity/wnft.ts:7-14`). ### 2.2 The rule this file exists to enforce **A private payload never touches the chain.** For a private entry the chain stores a `WnftCommitment` and *nothing else* — not the plaintext, and not the ciphertext either, and not the entry's name (`src/identity/wnft.ts:21-41`). The argument, stated in the code: 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. A passport number, a date of birth and a national ID are still true in twenty years. ### 2.3 Two address spaces | | Addressed by | Name on chain | Value on chain | Inheritable | |---|---|---|---|---| | **public** | a human key (`logo`, `website`) | yes | yes, in the clear | yes, by name | | **private** | a random 32-byte `slotIdHex` | **no** | commitment only | **no** | `src/identity/wnft.ts:43-61`. The private slot's name is bound cryptographically *inside* the commitment and stays in the holder's Lethe vault. The reasoning is explicit: "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 failure this subsystem exists to prevent. **The key IS the leak.** The consequence is stated rather than left to be discovered: **a private slot cannot be inherited by a slave**, because inheritance is by name and there is no name (`src/identity/wnft.ts:59-60`, enforced at `:1165-1171`). The two spaces are kept disjoint by construction: `normalizeAttributeKey` refuses a key that is 64 hex characters, because that shape is a private slot id (`src/identity/wnft.ts:466-471`). ### 2.4 What remains linkable — the honest position `wnftIdForDomain` is a pure function of the domain name, so anyone can compute the wNFT id of `STR.sourceless`. Randomising the id would gain nothing, because `DomainRecord.wnftId` publishes the mapping and the registry is chain state (`src/identity/wnft.ts:62-69`). So, in the code rather than in a document nobody opens: **an STR.domain is pseudonymous at best.** The domain is public, the container is linkable to it, and only the values are private. What leaks either way is the **number of slots** a wNFT holds and the **timing** of its updates (`src/identity/wnft.ts:70-77`). `privateSlotCount()` is published deliberately (`src/identity/wnft.ts:596-607`) because the count is public whether the method exists or not — not offering a reader would hide a leak rather than remove one. ### 2.5 Slots, versions, statuses ```ts WnftVisibility = 'public' | 'private' src/identity/wnft.ts:209 WnftEntryStatus = 'active' | 'superseded' | 'hidden' | 'burned' :218 WnftBurnErasure = 'commitment-withdrawn' | 'published-not-recallable' :236 ``` - `active` — the current version of its slot, and **the only status that is served**. - `superseded` — a newer version took its place. Retained in state, never served. - `hidden` — withdrawn from what the node serves, by the holder. Retained in state. - `burned` — a tombstone. Value or commitment is gone from state; the version number is consumed forever and the slot is closed. Versions are monotonic per slot from 1, **never reused, not even after a burn** (`version` `src/identity/wnft.ts:249`). `checkVersion` (`:914-933`) demands exactly `highest + 1`: 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. A slot holding **any** burned version is closed permanently (`src/identity/wnft.ts:919-924`). 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. ### 2.6 Bounds — every one a refusal, not a truncation | Constant | Value | At the bound | Line | |---|---|---|---| | `MAX_ENTRIES_PER_WNFT` | 512 | no new version of anything | `:131` | | `MAX_PUBLIC_KEYS_PER_WNFT` | 64 | a NEW public key is refused | `:134` | | `MAX_PRIVATE_SLOTS_PER_WNFT` | 64 | a NEW slot id is refused | `:137` | | `MAX_VERSIONS_PER_SLOT` | 64 | that slot is frozen | `:150` | | `MAX_ATTRIBUTE_KEY_LENGTH` | 64 | refused | `:153` | | `MAX_PUBLIC_VALUE_BYTES` | 1024 | record refused | `:163` | | `MAX_COMMITMENTS_PER_RECORD` | 64 (= private slots) | record refused | `:173` | | `MAX_SLAVES_PER_MASTER` | 1024 | `wnft-slave-create` refused | `:180` | | `MAX_INHERITED_KEYS` | 64 | use `'all'` instead | `:183` | | `MAX_WNFT_SEQUENCE` | 1_000_000 | wNFT frozen entirely | `:194` | **Tombstones count against `MAX_ENTRIES_PER_WNFT`** (`src/identity/wnft.ts:121-130`). That 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. The measured storage ceiling is written into the file (`src/identity/wnft.ts:105-118`), with an unusually honest correction attached: ``` 512 public entries, 8-byte values 149 B/entry 74.5 KB 71 GB per 1e6 512 private commitments 272 B/entry 136.0 KB 130 GB per 1e6 512 public entries at the 1 KiB bound 1165 B/entry 582.5 KB 555 GB per 1e6 ``` An empty wNFT is 305 bytes. The comment records that its predecessor said "roughly 200 bytes each, about 100 KB, ~100 GB" and called it measured; it was an estimate and it understated the worst case by about 5.8×. **The third row is the number to plan capacity against.** `MAX_VERSIONS_PER_SLOT = 64` is framed as a feature rather than a limit (`src/identity/wnft.ts:139-149`): a slot carrying 64 versions has a 64-point update history attached to one label, and rotating to a fresh random slot id breaks the linkage a long-lived slot accumulates. A holder rolling quarterly gets sixteen years from one slot. ### 2.7 Records — what a block carries Seven kinds (`src/identity/wnft.ts:402-409`): `wnft-set-public`, `wnft-set-private`, `wnft-hide`, `wnft-unhide`, `wnft-burn`, `wnft-slave-create`, `wnft-slave-revoke`. **None of them changes `holderAddress`.** That is still true of all seven, and the invariants below still rest on it: a wNFT record is authenticated against the holder, so a record kind that could move the holder would be a record kind that could re-point its own authorization. **But "an identity is non-transferable on this chain" is no longer the conclusion, and this paragraph used to draw it.** Corrected after this chapter was written. Since 2026-09-07 an STR.domain's wNFT moves by an **eighth record kind that is not a wNFT record**: `wnft-transfer` (§1.10), applied by `applyWnftTransfer` (`src/core/blockchain.ts:18001`), whose Idunn leg is `IdunnVault.transferMaster` (`src/identity/wnft.ts:812`) — the only thing in the tree that writes `holderAddress` after mint, besides `burnMaster` erasing it. The distinction the original sentence was reaching for survives and is worth stating exactly, because it is what keeps the rest of §2 sound: **nothing a wNFT record can do moves the wNFT.** A sale is not something a holder does *to* their wNFT — it is a chain-level record signed by two parties that moves the wNFT, its domain, its allocation and its lock together, and it is refused outright if the wNFT still holds live slaves. So every promise below that reads "the holder signed this" holds unchanged; what does not hold is any promise that the holder is the same address it was yesterday. Every record carries `wnftId`, `sequence` and a mandatory `authorization` (`src/identity/wnft.ts:327-332`). The authorization is **not optional, unlike Odin's** (`:308-320`): governance records are checked against a roll that says who may act; a wNFT record has no roll — the only thing standing between a stranger and your passport slot is this signature. `wnftRecordPayload` (`src/identity/wnft.ts:419-422`) folds the **whole unsigned record** plus the chain binding under `wnft-record-v1`. Bound to the chain, so a record signed on a testnet does not carry to mainnet; bound to the sequence, so it cannot be replayed; bound to every nested commitment's `slotIdHex`, `version` and `commitmentHex`, so no part of it can be rewritten in flight. `signWnftRecord` (`:425-433`) is the client-side signer. The holder's key, never the node's. #### Apply order, and why sequence comes before signature `applyRecord` (`src/identity/wnft.ts:692-741`): 1. `assertFiniteMs(atMs)` — the block's `producedAtMs`, never a wall clock (`:93-94`). 2. wNFT must exist and not be `revoked`. 3. **Sequence check before signature verification** (`:697-705`). A record whose sequence is wrong is a replay or a race, and there is no point spending an ed25519 verification to discover that. It is also what turns an honestly-replayed block into a refusal rather than a second mutation. 4. `MAX_WNFT_SEQUENCE` bound. 5. `authenticate` (`:753-773`) — the signing key must derive the wNFT's `holderAddress`, and the signature must verify over `wnftRecordPayload(record, chainBinding)`. 6. Dispatch. **Idunn carries no rollback of its own** (`src/identity/wnft.ts:683-691`). A block carrying a refused record is an invalid block and the caller rolls the whole block back — a subsystem that unwinds itself while the block around it unwinds separately is two rollbacks that can disagree. `snapshot()` before, `loadSnapshot()` on failure. #### `wnft-set-private` takes an array, and that is deliberate `WnftSetPrivateRecord.commitments` is an **array** (`src/identity/wnft.ts:348-363`) so that a Lethe `rollForward()` covering every slot lands as one record, one sequence step and one block entry. A design taking a single commitment would force one record per slot, and **a one-slot write is a pointer at which slot changed** (`:75-77`). Each element must satisfy `isWnftCommitment` exactly — five fields, no more (`src/identity/wnft.ts:834-852`). The commitment is nested rather than spread, 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 record's `wnftId` must also match each commitment's internal `wnftId` (`:842-847`), or a commitment made for wNFT A could be written onto wNFT B and would verify for anyone checking the commitment alone. > **A defect that was fixed, worth reading because it explains the shape of the code.** > The entry-count bound used to run *after* the batch had been applied > (`src/identity/wnft.ts:873-885`). An over-bound record was refused having already pushed its > entries and superseded the versions beneath them — measured, a 504-commitment record left the > wNFT holding 513 entries. Worse, the throw happened before the leaf was marked dirty, so > `stateRootHex()` returned the OLD root over changed contents, and every later record failed > the bound too, **wedging that identity permanently**. The check is now in the checking pass. #### Hide — what it achieves and what it does not `applyHide` (`src/identity/wnft.ts:951-973`). Hiding removes the entry from `activeAttributes` and from what this node serves. It does **not** remove it from state — the entry is still in the state root and on every node's disk — and for an entry that was ever `public` it does not remove the value from block history, from archive nodes, or from anyone who already read it. **Hiding a public value is a presentation choice, not a confidentiality mechanism**, and nothing in the file can make it into one. #### Burn — and what a burn honestly achieves `applyBurn` (`src/identity/wnft.ts:986-1010`) names the version explicitly, so a burn cannot land on a version that arrived between the holder signing and the block sealing (`:381-385`). `burnEntry` (`:1418-1435`) `delete`s `value` and `commitmentHex` rather than setting them to `undefined`, because a snapshot round trip and a JSON hop would not agree about which one they held and `'value' in entry` would answer differently on two nodes that agree on the root. The erasure is **recorded on the entry rather than assumed** (`src/identity/wnft.ts:220-236`): - `commitment-withdrawn` (private) — current state holds nothing: no value, no commitment, no opening. The chain never held the payload, the opening or the name. The honest caveat is written down: the commitment string does remain in the block that carried the record. It is an HMAC under a key the chain never saw, and Lethe's `burnEntry` destroys that key — but *"erased everywhere" would be a lie*. - `published-not-recallable` (public) — the value was published. It is in the block, 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 and nothing can.** The tombstone is not sentiment (`src/identity/wnft.ts:986-998`): it makes the version number and the slot unreusable, and it is what a verifier holding an old opening sees instead of silence — "this was withdrawn" rather than "this never happened". ### 2.8 Master and slave Shape rules (`src/identity/wnft.ts:1332-1354`): - master identifier holds **no** dot: `STR.sourceless`. - slave identifier holds **exactly one** dot, both halves non-empty: `STR.sourceless.sales`. `applySlaveCreate` (`src/identity/wnft.ts:1016-1093`): - `record.wnftId` is the **master's**, and `authenticate` has already established that the signer derives the master's holder. That is the whole of "only the master's wallet may create a slave"; there is no second path. - **One level only** (`:1040-1048`). Depth would multiply the cost of a master update by the chain length and turn "which lock backs this identity" from a lookup into a walk — and a walk can loop or dangle halfway. `STR.sourceless.sales.eu` is refused; spell it `STR.sourceless.sales-eu`, or make it its own master and pay its own lock. - The slave's `holderAddress` is **the master's wallet** (`:1074-1075`). `lockedMinor` is `0n` (`:1076-1077`). - A revoked slave keeps its tombstone leaf, so a master cannot revoke a slave and re-create it with a clean history under the same name (`:1065-1069`, `:1095-1101`). **Does a slave confer spend authority? No.** `operatorAddress` exists for attribution and for being paid, and confers nothing else (`src/identity/wnft.ts:1024-1037`). Spend authority is `StrDomainRegistry.isProved(wallet)`, which answers only for a wallet holding a proved *master* domain with a lock behind it, and slaves are kept out of the registry's maps entirely. If a slave could confer spend, one lock would buy 1024 spending identities and the fee-free anti-spam model would be gone. **Releasing a master's lock while slaves are live is refused** (`src/identity/wnft.ts:648-677`). The alternative outcomes are worse: orphaning leaves those identities live and unbacked — the sybil hole reached by waiting instead of paying; cascading destroys state third parties may rely on, at the moment the master has least reason to care. Refusing puts the cost where the decision is: revoke your slaves first, one signed record each, and then burn the domain (`applyDomainBurn`, which carries this same guard). (See §1.6 — `releaseLock` has no wired caller anyway.) ### 2.9 Inheritance `WnftInheritance = 'all' | readonly string[]` (`WnftInheritance` `src/identity/wnft.ts:269`), normalised deduplicated-and-sorted so two masters spelling the same set in different orders fold to the same leaf (`:1497-1507`). `resolveAttribute` (`src/identity/wnft.ts:1126-1157`): a slave **references** its master's attribute rather than holding a copy, so a master that supersedes `logo` supersedes it for every inheriting slave in the same record. 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 explicitly withdrew. That masking is also the intended way to opt out of an inherited key. ### 2.10 Determinism and the state root Idunn is the same shape as the ledgers already in the state root (`src/identity/wnft.ts:79-94`): a `GlasirTree` with one leaf per wNFT, keyed on `SHA-256("idunn:wnft|")` (`:1378-1380`). One leaf per wNFT rather than one per entry, because entries are bounded and a bounded leaf recompute needs no second tree. `wnftLeafHash` (`:1382-1416`) sorts everything and omits every optional field rather than setting it to `undefined`, so two nodes that reached the same state by different routes hash identical bytes. `verify()` (`src/identity/wnft.ts:1287-1306`) checks that the incremental root still equals a root rebuilt from scratch — the difference between finding a missed `dirty` invalidation here and finding it as an unexplained fork. `bindChain` (`:544-558`) refuses to *replace* a binding. A vault whose binding moved under it would start accepting records signed for a chain it is no longer on, and nothing would report it. --- ## 3. Lethe and the vault `src/crypto/wnft-envelope.ts` Named for the river of forgetting, because **the chain cannot forget**. Lethe is the layer that makes forgetting possible by making sure the chain never learned in the first place (`src/crypto/wnft-envelope.ts:23-31`). The division of labour is the whole design (`:33-36`): ``` the chain holds a salted commitment, and nothing else the holder holds the payload, the ciphertext, and the opening that ties them together ``` `LETHE_CHAIN_FIELDS` (`src/crypto/wnft-envelope.ts:130`) is the complete, machine-readable list of what crosses: `scheme`, `wnftId`, `slotIdHex`, `version`, `commitmentHex`. Published as data rather than as prose so the identity layer can assert it and a future sixth field fails a test instead of shipping. ### 3.1 The commitment ``` commitment = HMAC-SHA-256(key = salt, msg = label ‖ wnftId ‖ slotId ‖ version ‖ name ‖ payload) ``` `commitEntry` — `src/crypto/wnft-envelope.ts:316-350`. - **Binding** rests on collision resistance of SHA-256. - **Hiding** rests on HMAC-SHA-256 being a PRF when its key is uniform and secret. The salt is 32 uniformly random bytes derived from the opening, so the output is indistinguishable from random *whatever the payload is*. The code explains why a bare `sha256(payload)` is the wrong primitive (`src/crypto/wnft-envelope.ts:326-329`): with a low-entropy payload — a country, a birth year, a yes/no answer — the digest **is** the value, and two entries holding "Romania" produce the same 32 bytes on a public ledger forever. Everything that must not be swappable is inside the message (`:246-263`). Binding the name means a holder cannot open a `passport` commitment as if it were a `nickname`; binding slot and version means a commitment cannot be lifted out of one entry and presented as another's. Every hashed structure is built from **length-prefixed fields** (`lp`, `:169-181`), never from a `|`-joined string. With a delimiter, a caller controlling one field controls the boundary between two: `(name "a", value "b|c")` and `(name "a|b", value "c")` encode identically, so one commitment opens to two different statements and binding is gone. Commitment comparison is constant-time (`hexEquals`, `:236-240`) — a check that leaks its prefix leaks the search. Hiding is **computational and conditional on the opening staying secret** (`src/crypto/wnft-envelope.ts:334-336`). Once an opening is disclosed, that commitment is open to whoever holds it, forever, because the chain keeps the commitment forever. ### 3.2 `LETHE_ABSENT` — hiding the presence of an entry `src/crypto/wnft-envelope.ts:114-122`. 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. It costs one commitment. ### 3.3 Selective disclosure `discloseEntry` (`src/crypto/wnft-envelope.ts:462-512`), `verifyDisclosure` (`:524-603`). A `WnftDisclosure` (`:398-422`) is one entry, one version, one verifier. It carries `audience`, `issuedAtMs`, `expiresAtMs`, `nonceHex` and optionally a signature. `DEFAULT_DISCLOSURE_TTL_MS` is **10 minutes** (`:441`) — a disclosure is a hand-off, not a credential. `verifyDisclosure` takes the on-chain `record` as a **parameter rather than fetching it** (`:524-530`), 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. What a verifier learns, exactly (`:532-539`): that at this slot and version of this wNFT, the entry named `name` holds `payload`, and that the holder committed to it before the block carrying the commitment was sealed. What they do **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, or the holder's other openings. Each opening is HKDF-separated by slot and version, so **one opening is one statement**. **What the signature is and is not** (`src/crypto/wnft-envelope.ts:462-470`): it does not make the value more true — the commitment already does that, and anyone holding `(payload, opening)` can produce a valid opening. It establishes *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. It is a plain ed25519 wallet signature rather than a hybrid post-quantum one, because a disclosure lives for minutes and is verified immediately: no harvest-now-decrypt-later exposure (`:471-477`). ### 3.4 The envelope Two schemes (`src/crypto/wnft-envelope.ts:70-74`): - `LETHE_ENVELOPE_LOCAL` — `lethe-aes256gcm-v1`, AES-256-GCM under a key derived from the opening, for the holder's own storage. - `LETHE_ENVELOPE_KEM` — `lethe-mlkem768-x25519-aes256gcm-v1`, hybrid ML-KEM-768 + X25519, for handing a payload to a chosen custodian. **This one has no production caller.** `sealEntryForRecipient` / `openEntryAsRecipient` (`src/crypto/wnft-envelope.ts:743,772`) are reached only from `tests/integration/lethe-wnft.integration.test.ts`, so `encapsulateHybrid` never executes on a running node. The scheme is exactly what it says it is — the caveat is about reach, not soundness — but nothing in this tree hands a payload to a custodian today, and the only KEM that actually runs on a node is the *bare* ML-KEM-768 in the Bifrost handshake (`src/network/bifrost.ts:170`). Both weld the ciphertext to one chain record through the AAD (`envelopeBinding`, `:265-282`), so a ciphertext cannot be re-attributed to a different entry, version or wNFT. The AAD **deliberately excludes the entry name** — a custodian must be able to reconstruct it, and putting the name in the AAD would ship it in the clear beside the ciphertext, handing a storage provider the field list of an identity document for free. The name travels *inside* the plaintext, where GCM authenticates it and the commitment binds it. A stated, real leak (`src/crypto/wnft-envelope.ts:609-618`): a sealed envelope carries slot, version and commitment so the holder can find it without a separate index. A custodian who also reads the chain can therefore learn the wNFT's slot layout and update times. It learns no name and no value, and cannot confirm a guess, because it has no opening. A holder who does not want that link stores envelopes under an opaque key. ### 3.5 The two-layer seal `WrappedVault` — `src/crypto/wnft-envelope.ts:829-846`. ``` index ── encrypted under a key derived from the SEED vaultIndexKey(seedHex, wnftId) seed ── wrapped under a key derived from the WALLET KEY deriveVaultWrappingKey(privKey, wnftId) ``` **Two layers on purpose.** A wallet key rotation rewrites 32 bytes and leaves the index — which may be large and replicated across devices — untouched, and leaves every commitment on chain valid. A single-layer design would force a full re-encrypt on every rotation, and a holder who cannot complete one is a holder whose identity becomes unreadable because they changed a key. **That is a data-loss bug, not a security feature** (`:829-837`). `deriveVaultWrappingKey` (`src/crypto/wnft-envelope.ts:848-865`) derives the wrapping key by **signing a fixed statement**, not by hashing the private key. ed25519 signatures are deterministic (RFC 8032), so the same wallet always produces the same 64 bytes, and HKDF turns that into the key. The reason is forward-looking: a signer that never exports its key — a hardware wallet, a remote signer, a future keystore that only offers `sign` — can still produce this. **A derivation that needed the raw private key would silently make those unsupported.** The statement names the wNFT, so one wallet holding several domains does not use one key for all of them. `walletPublicKeyHex` is bound as AAD on the seed box (`seedAad`, `:871-873`), so the key that opens it cannot be swapped. `HolderVault` (`src/crypto/wnft-envelope.ts:809-821`) holds slot labels and openings and **deliberately not payloads**: the index that has to be open while the holder is working is not also the file with the passport in it. ### 3.6 Rotation, and exactly what it does not move `rotateVaultWallet` — `src/crypto/wnft-envelope.ts:940-968`. What it does: unwraps the seed under the old key, rewraps it under the new one. The index ciphertext comes out **byte-identical**, and every commitment already on chain stays valid, because no commitment and no envelope depends on the wallet key — only the 32-byte seed wrapping does. One local rewrap, no chain transaction, nothing re-committed, nothing re-disclosed. What it does **not** do (`:948-952`, and stated again in the wallet's `VaultRotation` type at `src/wallet/skidbladnir.ts:196-225`): - It does not recover a lost wallet key. - **It does not move chain authority.** `VaultRotation.chainAuthorityMoved` is typed the literal `false` (`src/wallet/skidbladnir.ts:213-223`). The verdict is right and **the reason its doc comment gives is now stale**: it says "`StrDomainRegistry` has no transfer" and, above the interface, that "the chain carries no record kind that rebinds a wNFT or an STR.domain to a different wallet" (`src/wallet/skidbladnir.ts:196-203`). It does — `wnft-transfer`, §1.10. What still holds, and is the correct reason: a vault rotation rewrites 32 bytes of seed wrapping and touches no chain state at all. The one record kind that rebinds a wNFT requires **two signatures and consumes two nonces**, so it is not something a rotation could do accidentally or a holder could do alone, and `IdunnVault.authenticate` still checks every wNFT record against the holder of record. Recorded rather than fixed — this volume does not edit `src/` — and it is the second comment on this path that describes the tree as it was before 2026-09-07. After a rotation the **old key remains the only key** that can (`src/wallet/skidbladnir.ts:1077-1081`): - spend from the address on any of the seven ledgers; - write any wNFT record — a new entry, a hide, a burn, a slave; - prove this or any STR.domain as this wallet. **The other half now exists, and it is a different mechanism rather than a flag on this one.** §1.13 is `Hamskipti`: a consensus record that moves an account's authority to the address a new key derives, with the STR.domain, the wNFT, the lock and every balance following it and the old address retired chain-wide. `strblk wallet rotate` does both halves in the one safe order — it submits the record, waits for a block, and then calls `rotateVaultKey` so the retired key opens no document either. Everything in this section stays true OF THIS METHOD: a vault rotation on its own rewrites 32 bytes of wrapping and touches no chain state, which is why `chainAuthorityMoved` is still the literal `false`. **Anyone describing this as "key rotation" without that sentence has described half of it** (`src/wallet/skidbladnir.ts:1039-1043`). ### 3.7 `rollForward` — the cadence leak `src/crypto/wnft-envelope.ts:1020-1050`. The leak is real and is **not fixed by encryption**: a wNFT whose slot 4 is superseded every five years and never otherwise touched tells an observer that slot 4 is a document with a five-year expiry, and there are not many of those. Values stay private; the *cadence* is the disclosure. `rollForward` re-commits **every** slot at once, each with a fresh opening — including slots whose value is byte-identical to before. After a roll, an observer sees only "this wNFT moved forward". A holder who rolls on a fixed schedule as well as on change removes the correlation between a roll and a real-world event entirely. The cost is stated: one chain write per slot per roll, and the holder must supply the current value of **every** slot. Missing a slot throws rather than defaulting (`src/crypto/wnft-envelope.ts:1041-1046`) — committing `LETHE_ABSENT` for an unsupplied slot would silently erase an entry the holder never asked to erase, permanently, the moment the block sealed. What it still leaks: how many slots the wNFT has, and when rolls happen. Both are visible in any design where the chain stores per-entry commitments at all. ### 3.8 Burn, holder side `burnEntry(vault, name)` — `src/crypto/wnft-envelope.ts:1068-1118`. The chain cannot erase the commitment — that is the premise of the whole design — so what a burn *means* is stated as something the holder can complete. **Destroying the 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. `BurnInstruction.steps` (`:1102-1116`) is **returned rather than logged**, because a caller has to be handed it — a burn that clears one process's variables while three backups keep the ciphertext has erased nothing. The six steps cover: every envelope for every version; every replica and every backup snapshot predating the burn; re-wrapping the vault so the openings leave the persisted index; plaintext copies exported while using the entry; **telling every verifier you disclosed the entry to, because a verifier who kept the opening can still open the commitment after your burn and you cannot revoke that**; and recording that the slot is closed. A limit is stated rather than glossed (`src/crypto/wnft-envelope.ts:1082-1085`): this runs in a garbage-collected runtime with immutable strings. 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. Not fixable from inside JavaScript. `burnVersion` (`:1120-1132`) is the narrow operation: one version's opening destroyed, the rest of the entry intact. --- ## 4. Skidbladnir — the wallet `src/wallet/skidbladnir.ts` Freyr's ship carries every god and all their gear and folds into a pouch. The whole of an identity — a name, a lock, seven ledgers, a casket of documents and the openings that prove them — carried by one person, in one object, under one key (`src/wallet/skidbladnir.ts:57-63`). ### 4.1 Keys — one secret, and the second derived from it `src/wallet/skidbladnir.ts:65-78`: - the **ed25519 account key** — derives the address, proves the STR.domain, signs transactions and signs every wNFT record. Sealed at rest by Fafnir (`at-rest.ts`, §6). - the **Lethe vault seed** — wrapped under a key *derived from that same account key* by signing a fixed statement. Not a separate thing to remember, back up or lose. **A wallet that introduced a third secret would have made the user's life worse, so this one does not have one.** The only case where two distinct keys exist at once is after a vault rotation, and that is a transition with a named report rather than a resting state. `vaultWallet` is kept as its own field (`src/wallet/skidbladnir.ts:242-250`) rather than assumed equal to `keys`, because after a rotation the two genuinely differ and a wallet that assumed otherwise would fail to unwrap its own backup. ### 4.2 The journey ``` create/adopt → claim → be funded → prove → transact ``` - `Skidbladnir.create` (`:286-293`) — fresh keys, no domain, no vault. - `adopt(domain)` (`:324-345`) — the returning-holder path. **Checked against the chain rather than taken on trust**, so a wallet cannot be pointed at somebody else's domain and then spend its life building records every node silently drops. A vault is created if there is none and it is **EMPTY** — that is not a recovery; restoring a real one is `restore()`. - `claim(domain)` (`:351-371`) — reserves the NAME. A wallet could always receive, with or without it, since the domainless-recipient change; what an allocation buys is the name and the right to prove it. The vault is created here on the deterministic wNFT id the name implies, so private entries can be prepared before the domain is proved. - `prove()` (`:373-424`): - The **claim must have landed on chain first**, and this is checked *before* the balance (`:390-409`). On an announcing surface, `claim()` applies nothing locally and the allocation arrives with whichever node's block carries it. A proof submitted before then passes the node's door — which checks the proof's signature and nothing else — and is dropped in silence at seal time, then re-offered every turn until the abandonment horizon. The funding is *impossible* until the claim lands, so blaming the balance would name the symptom and hide the cause. - Then the STR available-balance check against `DOMAIN_LOCK_MINOR` (`:411-417`). - **The private key never crosses the RPC surface** (`:379-385`, `:418-421`). The chain also offers `registerDomain(domain, keys)`, which builds the proof internally from key material it is handed — harmless in process and **key exfiltration by API design the moment a wallet speaks to a node somebody else runs**. `proveDomain()` is a pure client-side function, so this wallet signs on the holder's machine and hands `submitRegistration` a proof. *Nothing on this path takes a key, and nothing on it may be changed to.* ### 4.3 Seven ledgers `ALL_TOKENS` (`src/core/tokens.ts:31-39`): `STR`, `CCOS`, `WSTR`, `ARSS`, `STR_USD`, `WNFT`, `ESTR`. All at 13 decimals (`src/core/tokens.ts:42`). `balances()` (`src/wallet/skidbladnir.ts:430-447`) returns all seven, always, in a fixed order — a ledger holding nothing is a zero, not an absence (`ledgers` `src/wallet/reads.ts:96`). Each `LedgerBalance` (`src/wallet/reads.ts:27-71`) separates: - `balanceMinor` — everything credited, locked included; - `availableMinor` — what may actually be spent right now; - `lockedMinor` — on STR this is what the domain cost: 1,000 for a personal domain, 5,000 for a business one (§1.6). **Do not render it against a hardcoded 1,000.** - `inFlightMinor?` — committed on the instant path and not yet settled; - `transferable` and `restriction` — `WNFT` is non-fungible and `transferable: false` (`src/core/tokens.ts:311`), so `LedgerManager.validate` refuses an ordinary WNFT transfer. That flag is unchanged by §1.10 and still means what a wallet needs it to mean: **no holder can send a WNFT token.** A sale does not go through it — `applyWnftTransfer` burns the seller's token and mints the buyer's, which is the same pair every non-native movement on this chain uses, and the `transferable` flag is not consulted on that path. The comment beside the flag (`src/core/tokens.ts:321`) still reads "transferring it would transfer an identity", which is now a description of something the chain deliberately does; - `requiresPurpose?: 'financial'` — the machine-readable half of `restriction`. **Why `requiresPurpose` is a field and not just prose** (`src/wallet/reads.ts:61-70`): `LedgerManager.validate` refuses a CCOS transfer not marked `purpose: 'financial'` (`src/core/ledger-manager.ts:306-308`), so a wallet that only *rendered* the sentence would go on signing transfers every node is certain to reject. A caller matching on the prose instead would be one wording change away from silently not enforcing it. ### 4.4 Balances the wallet actually shows > **This subsection, §4.7 and §4.8 describe a path no node in this tree reaches.** `new GhostLedger` > is constructed once in `src/`, inside the `strblk demo` command, and the shipped CLI wallet passes > no `ghost`, so `sendInstant` refuses (`src/wallet/skidbladnir.ts:598`). Read what follows as the > semantics the code holds, not as something a holder is doing today. See §11, *"The Ghost Ledger is > constructed nowhere on a node path"*. `projected()` (`src/wallet/skidbladnir.ts:449-478`) narrows canonical balances by the Ghost Ledger's **own** projection — `projectedBalance` is exactly what `GhostLedger.admit` checks against, so this is not a second opinion about what is spendable: it is the same one, read *before* signing instead of after. Without it, a wallet reporting `getAvailable` unmodified would show money it had already spent as spendable, happily build a second transfer against it, and have the ghost ledger refuse it *after* the wallet had signed and told the holder it was going out. What the holder saw was a balance true of the chain and false of their own wallet. `inFlightMinor` carries the difference rather than hiding it, **because a number that quietly shrank would read as funds going missing** (`:440-442`). Stated conservatism (`:455-460`): the ghost's in-flight total is per address, not per address and ledger, so the projection for one token is reduced by everything in flight on all of them. Conservative rather than wrong — and it is the number admission uses, which is the number a wallet must not disagree with. ### 4.5 What is bound into a signed transaction `buildTransfer` (`src/wallet/skidbladnir.ts:582-631`) ends at: ```ts signTransaction(unsigned, privateKeyHex, this.reads.chainId(), this.reads.genesisHashHex()) ``` `transactionSigningPayload` (`src/core/transaction.ts:17-37`) folds a **named field list**: ``` chainId, genesisHashHex, from, to, amountMinor, tokenType, purpose, nonce, timestampMs, payloadHashHex, publicKeyHex ``` **Both `chainId` and `genesisHashHex` are bound, and both are needed.** The comment says why (`src/core/transaction.ts:24-26`, restated at `src/wallet/reads.ts:139-145`): **a chain id is a number a genesis file asserts about itself**, and two deployments may carry the same one — a business fork, a copied template, a stale default — so the chain id alone does not separate networks. (Until 2026-09-07 the SourceLess realms did not even differ: 1313 was both the "Mainnet Candidate" label and the development chain. They differ now, and the rule is unchanged.) The genesis hash does — it is the network's identity. A wallet that signed without it would produce transactions valid on a chain it never meant to touch. The transaction id is `sha256` of that same payload (`src/core/transaction.ts:39-45`), so the id binds the contents. `signTransaction` refuses if the declared key does not derive `from`, or if the signing key does not match the declared public key (`:53-58`). > **Closed, and the shape of the hazard is worth keeping.** **Corrected after this chapter was > written** — the text that stood here warned that `signTransaction`, `computeTransactionId` > and `transactionSigningPayload` all defaulted `genesisHashHex` to `''`, so a caller who > omitted it signed for the empty-genesis network. Two more functions had the same default that > this paragraph did not name (`validateTransactionStateless`, `batchVerifyTransactionSignatures`), > which mattered: a signer that binds nothing is only dangerous beside a verifier that binds > nothing, so fixing one side would have left the hole reachable from the other. > > The parameter is now required on all five, **and** `assertNetworkBinding` refuses anything > that is not 64 lowercase hex at runtime — both, because this package ships `dist` with > `.d.ts` and to a JavaScript integrator a required parameter is advice. Making it required cost > two call sites, both in tests; zero in production. > > One instance was live rather than hypothetical: `HestiaNode.validateForSync` used > `this.chain?.genesisHashHex ?? ''`, and a Pulsar or Meteor **keeps no chain** — so exactly the > node classes whose job is to judge a transaction on structure and relay it were checking every > one against the empty string. **Still pass `genesisHashHex` explicitly**; you will now be told > if you do not. ### 4.6 Refusals before signing `buildTransfer` refuses, in this order (`src/wallet/skidbladnir.ts:588-613`): 1. no ledger for the token; 2. `!ledger.transferable` — with the ledger's own restriction sentence; 3. **the CCOS purpose gate** (`:596-604`) — checked *before* the balance, because it is not about whether the holder can afford the transfer. A wallet that signed a CCOS transfer without `purpose: 'financial'` would put a certain-to-be-refused transaction on the wire **under the holder's own key**, and the holder would read the node's rejection as the wallet being broken; 4. insufficient available balance — with locked and in-flight amounts named in the message. ### 4.7 The nonce, and when the wallet refuses to sign at all > **Unreached path — see the note at §4.4 and the entry in §11.** Both projections are real code; > only one of them is maintained by anything a node runs. `projectedNonce` (`src/wallet/skidbladnir.ts:633-669`) is worth reading in full. There are two projections of "what has this address got in flight", maintained by components that do not talk to each other: - `WalletChainReads.balances` reports settled + **mempool**, because that is what `BlockchainCore.addTransaction` compares against (`src/wallet/reads.ts:192-195`); - `GhostLedger.admit` compares against settled + its **own** in-flight counter, which advances only on the ghost path. While one path is used they agree. The moment the two are mixed they cannot: after one plain `send()` the mempool expects settled + 1 and the ghost ledger expects settled + 0, **and there is no nonce that satisfies both**. The ghost path refusing is the dangerous half, because admitting a transaction the mempool will drop leaves a pre-confirmed entry that can only ever end `diverged`. So the wallet **refuses to sign at all** and names both projections. The same error also fires when a node never called `GhostLedger.settle(block)`, leaving settled entries counted as in flight forever. Neither is repairable from inside a wallet, and the error says so. `ghostInFlight()` (`:671-688`) counts from the transaction ids *this wallet* admitted, because the ghost index is deliberately obfuscated — entries are found by a blinded sender index a holder cannot recompute from an address, which is what stops the index being a public list of who paid whom. ### 4.8 Ghost vs settled — `settledForGood` is true only at depth 12 > **Unreached path for the `pre-confirmed` half — see the note at §4.4 and the entry in §11.** Every > other phase in the table below is reached on the ordinary `send()` path; `pre-confirmed` is reached > only through a Ghost Ledger no node constructs. `TransferPhase` (`src/wallet/reads.ts:96-110`): | phase | meaning | |---|---| | `signed` | signed locally, not handed to any node | | `queued` | in the mempool, waiting for a block | | `pre-confirmed` | admitted by the Ghost Ledger. **NOT paid.** | | `settled` | in a sealed block, below the confirmation depth | | `final` | at or beyond confirmation depth, or below the settlement ratchet | | `rejected` | the chain refused it, and said why | | `unknown` | not found. Says nothing about whether it happened. | `TransferStatus.settledForGood` (`src/wallet/reads.ts`) is true only at `final`. It is named `settledForGood` rather than `paid` on purpose: *`paid` is the word a UI reaches for and it is the word that goes wrong*, because a pre-confirmation is one node's opinion about a block that has not been produced yet. > **Amended 2026-11-15 (audit 2026-11-12, finding H1).** `settledForGood` is no longer the boolean a > payee shipping goods acts on. On Asgard (rule version 3) `final` is a depth, 12 blocks, and no > signature quorum backs it, so a private branch from enough seat keys can replace those blocks: the > audit's comparator run had 45 seat keys losing and 50 winning against the real 599-block history. > The field is kept with its meaning unchanged and marked deprecated for value decisions. Beside it, > `finalityBasis` says what the settlement rests on (`depth` or `signatures`), and `safeForValue` is > true only when `settledForGood` is true AND the block is backed by signatures or at least > `valueDepth` (600) blocks deep. The depth, and why it is 600, is `VALUE_SETTLEMENT_DEPTH` in > `src/core/var.ts`. Skirnir recomputes `safeForValue` by the wallet's own depth and never takes a > shallower one from a node. `chainReads.transfer` (`src/wallet/reads.ts`) sets `settledForGood: true` in exactly one branch — `chain.finalityStatus(height) === 'final'`. The `settled` branch sets it false and renders `"in block N with X of Y confirmations — in a block, not yet settled at depth Y"`. The `final` branch no longer renders “settled and final”: it says how many blocks deep, that it is settled by depth with no signature quorum behind it, and whether the value depth is reached (`finalPaymentRender`, `src/core/var.ts`). **The four payment states (2026-11-16).** What a person sees is not the phase but one of four states derived from it by one rule (`paymentStateOf` and `paymentStateOfTransfer`, `src/network/heidrun-payment-state.ts`), the same in the browser wallet, the CLI wallet's `status` and `history`, the explorer's transaction page and the public read API's `payment` member: **Seen** (a node holds it in its queue), **Included** (a block carries it), **12 blocks deep** (`chain.requiredConfirmations`, said as a depth and never as settled: a count of blocks, not a signature quorum) and **Safe for value** (`settlement.valueDepth`, 600). Each says what it promises and what it does not. A contested or shallow `final` is Included. The CLI reads the depth rule from the node's `parameters` (`Skirnir.requiredConfirmations`) and says so when it cannot. `sendInstant` (`src/wallet/skidbladnir.ts:507-549`) returns `settledForGood: false` with `render: 'pre-confirmed — this is not payment, and no block has settled it'`. **There is no option that makes it say otherwise** (`:507-514`). `confirmations` is a `Measured` (`confirmations` `src/wallet/reads.ts:164`) — unknown until the transaction is in a block, **never zero-filled to look complete**. `unknown` is a first-class outcome and not an error (`src/wallet/reads.ts:88-95`, `:239-249`). The scan window is `TRANSFER_SCAN_DEPTH`, Logberg's `rpc.transactionScanDepth`: 1,024 blocks since 2026-11-15 (512 before), so a lookup always reaches the 600-block value depth. Below the window the node's transaction index answers (Messier, `src/core/messier.ts`): bounded at 262,144 transactions, rebuilt from the chain, and every hit checked against its block. The reason is returned with the answer, and a miss says which heights were searched. A payment whose block sits above a recorded settlement conflict that still contests settlement is `contested: true`, on `settled` and `final` alike, and is never settled for good. The node's `transaction` and this port answer it by the same function (`sealedPaymentAnswer`, `src/core/var.ts`), and the CLI wallet prints it as a `contested` row in the API's words. Reporting `rejected` for a transaction the node merely cannot find *is how a wallet tells someone a payment failed that in fact succeeded*. ### 4.9 Identity writes from the wallet Every write goes through `submitRecord` (`src/wallet/skidbladnir.ts:1249-1276`), which: 1. reads the wNFT from the chain and throws if it does not exist; 2. applies the custody rule via `boundary.requireHolder` — **the one place a record is built**, and for a slave the holder *is* the master's wallet, which makes "only the master writes to its slaves" the same single check (`:1262-1265`); 3. signs with `signWnftRecord` over `rpc.identityChainBinding()`; 4. returns an `IdentityReceipt` with `status: 'queued'`. **`queued` is the only honest status** (`src/wallet/skidbladnir.ts:139-153`): what a record *does* is decided when a block is sealed, and a wNFT record the chain refuses is **dropped from the block silently** — there is no `refusedWnftRecords()` on `BlockchainCore` the way there is for contracts. `landed(receipt)` (`:1278-1287`) is the check: a wNFT's sequence advances only on an accepted record, so `wnftSequence(wnftId) >= receipt.sequence` means it applied. Versions are read off the chain, never counted locally (`:706-712`, `:1328-1330`): `checkVersion` demands exactly `highest + 1`, and a wallet keeping its own count would be one refused record away from never being able to write that slot again. #### `putPrivateEntry` — the atomicity that had to be added `src/wallet/skidbladnir.ts:729-792`. Three layers of protection, each for a distinct failure: 1. **Check the version against the chain before `putEntry` runs** (`:757-766`). `putEntry` advances the vault's slot and mints an opening; doing that for a record the chain will refuse leaves the vault permanently a version ahead, and every later write for that slot is then refused too — **which wedges the slot for good**. 2. **Roll the vault back if the record never reached a node** (`:783-789`). `putEntry` has already mutated the vault by the time `submitRecord` runs, so an unreachable node, a throwing RPC or a custody refusal leaves the same wedge. Nothing on chain refers to that version, so putting the vault back is not data loss — *leaving it in place is*. 3. What neither can cover: **the record that reaches the node and is then dropped from the block in silence.** Nothing tells the wallet. That one is `reconcileVault()` to see and `repairVault()` to undo. #### `reconcileVault` and `repairVault` `reconcileVault()` (`src/wallet/skidbladnir.ts:1086-1123`) reports divergences and **does not repair them**: the wallet cannot know which of the two is right, and quietly rewinding a slot would destroy an opening for a commitment that may well have landed. `VaultDivergence.repairable` (`:164-181`) is true only when the **vault ran ahead** of the chain. When the *chain* is ahead, the vault is a stale restore, the missing openings are not recoverable from anywhere, and a wallet offering to "repair" it would be offering to destroy the rest of the slot. `repairVault(names)` (`:1125-1171`) rewinds named slots to the version the chain holds, destroying the openings above it and dropping their envelopes. Everything at or below the chain's version is untouched, which is what separates this from a burn. **Slots are named rather than repaired wholesale, and that is not ceremony** (`:1141-1146`): a vault one version ahead is *also* exactly what a queued-but-unsealed write looks like, and the two are indistinguishable from the wallet. Repairing that one would throw away the opening for a commitment about to land. The holder confirms the slot after producing or waiting for the block and checking `landed()`. `rewindSlot` (`:1289-1322`) is the single shared implementation, deliberately not duplicated, because a rewind in two copies is a rewind where one copy forgets the envelopes. ### 4.10 Disclosure from the wallet `disclose(name, version, audience, ttlMs?)` (`src/wallet/skidbladnir.ts:875-907`). Nothing is submitted and no endpoint is called. The opening handed over opens exactly this `(slot, version)` and no other. `verifyDisclosureOnChain` (`src/wallet/skidbladnir.ts:1390-1445`) is the verifier's whole side. It reads the entry off the chain, refuses when the entry is burned or holds no commitment — *the tombstone is the answer, and a better one than silence* (`:1426-1431`) — and then calls `verifyDisclosure`. > **The TTL default is corrected here, deliberately** (`src/wallet/skidbladnir.ts:1402-1408`). > `verifyDisclosure` only checks the validity window when given a `nowMs`, which is right for a > pure function that must not reach for a clock its caller may be mocking. It is **wrong** for the > function a verifier actually calls: its default is the one every integration copies, and a > default that skips the window makes the disclosure TTL advisory — a hand-off meant to live ten > minutes would verify years later, and the holder's consent would have no expiry at all. > `verifyDisclosureOnChain` therefore passes `options.nowMs ?? Date.now()` and defaults > `expectHolderAddress` to the chain's holder. > > **If you call `verifyDisclosure` directly, you must pass `nowMs` yourself.** ### 4.11 Skirnir — the same wallet, against a node it does not run `src/wallet/skirnir.ts`, 767 lines. **This section was absent until 2026-09-08, in a chapter that cited `skidbladnir.ts` fifty-three times and `skirnir.ts` never** — which left the volume describing a wallet that works only inside a process that also holds a chain. It does not. This is the file that makes it a wallet a person can use, and the difference between "a wallet that exists as a library" and one somebody's money is in. **What it is.** One object (`Skirnir` `src/wallet/skirnir.ts:488`) implementing **both** halves of what `Skidbladnir` is constructed from — `WalletRpc` (the writes and read-throughs of §4.5 and §4.9) and `WalletChainReads` (the four reads a signature depends on, §4.7) — over HTTP, against **Iris** (`src/network/iris.ts`) in another process on another machine. `Skidbladnir` needs no change at all to run against a remote node: the seam is here and nowhere else. The naming says the authority model out loud. Skidbladnir is Freyr's ship; Skirnir is Freyr's messenger, who rides to Jotunheim carrying Freyr's suit and brings the answer back — **and is given Freyr's sword to make the journey with, which is the one thing Freyr never gets back.** A transport told as a warning. What crosses this boundary is what the holder already signed; the key that signed it stays home. **No method in Iris's catalogue takes an `AccountKeypair`, a seed or a private key**, `submitRegistration` takes a finished proof, and `SKIRNIR_METHODS` (`SKIRNIR_METHODS` `src/wallet/skirnir.ts:137`) is the closed list of what this client will ever call. There is no method that is given the sword. **Three things it does that a naive HTTP client would not.** **1. It binds the network before it will sign anything.** `network()` (`src/wallet/skirnir.ts:459`) fetches `genesis` **once**, puts the hash through `assertNetworkBinding`, and pins the hash, the chain id and the identity chain binding for the life of the object. A caller may also state which genesis it **expects** (`SkirnirOptions` `src/wallet/skirnir.ts:469`), and a mismatch is **refused, not reported** — because *"a genesis hash learned from the node it protects you against is not a check"*. That is §4.5's binding rule, enforced at the transport rather than trusted from it. Three separate refusals, each naming the endpoint: no `genesisHashHex`, a non-integer `chainId`, an absent `identityChainBinding` — the last because a wNFT record signed against the wrong chain binding belongs to another chain. **2. It is synchronous, honestly rather than by pretending.** `WalletRpc` and `WalletChainReads` are synchronous interfaces, drawn for a wallet in the same process as a chain. Two alternatives were rejected for reasons worth keeping. Making every `Skidbladnir` method `async` is a change to the wallet, both desks and every test, for a problem that belongs to the transport. **Prefetching a snapshot and serving reads from it quietly breaks the one promise `port.ts` makes — that `submitTransaction` THROWS when the node refuses** — because a buffered write cannot throw at the moment the wallet needs to hear it, and the wallet would report `queued` for a transaction no node ever accepted. So the request genuinely blocks: `BlockingHttpTransport` (`src/wallet/skirnir.ts:362`) posts to a worker thread that performs the `fetch`, and the calling thread waits on `Atomics.wait`. That is correct for a command-line wallet — `strblk wallet send` has nothing else to do while the node answers — and would be wrong inside a server, which this class is not for. > **The one thing it cannot do, stated so nobody spends an afternoon on it.** It cannot talk to > an HTTP server in the same thread: the request is posted, this thread stops, and the event loop > that would have run that server's handler never turns again. The two deadlock and the call > times out. **That is inherent to blocking, not a defect**, and it matters only to tests. The > way around it is `SkirnirTransport` (`src/wallet/skirnir.ts:301`) — drive chain semantics through an > in-process transport using the same codec, and drive this class against a server in a process > of its own. `tests/integration/skirnir.integration.test.ts` is split in two for exactly this. **3. It refuses to misread an answer, in four specific shapes.** Each is a real misread this chapter's rules would otherwise permit: | Answer | What a naive client does | What Skirnir does | |---|---|---| | `domainHolder` → `{ domain, holder }` | reads the envelope as the answer, so **every** name looks held and never `undefined` — `prove()` believes somebody else holds it, `adopt()` accepts a name this wallet does not hold | checks for the `holder` field rather than trusting the shape; an unreadable answer is a refusal, never "nobody holds this name" | | a `bigint` as a JSON **number** | `BigInt(value)` on a rounded double | refuses: a value outside `Number.isSafeInteger` "would move an amount nobody signed for" (`toBigint`) | | a `phase` this build has never heard of | passes it through, and it falls out of every `switch` a wallet UI has — a payment rendered as nothing at all | `normalizePhase` (`src/wallet/skirnir.ts:1090`) maps it into the closed union | | `settledForGood` from the node | trusts it | **recomputes** it: true only at `final`. It is the single boolean a payee acts on, cheap to enforce here, catastrophic to take from a node that is wrong, malicious, or a version ahead | `normalizePhase`'s two interesting mappings are not the same and the difference is money. **`diverged` → `rejected`**: the node accepted the write, revalidated it and found it permanently invalid, which is a refusal with a reason. **`abandoned` → `unknown`, NOT `rejected`**: the node gave up on the clock, not on the transaction, and calling that `rejected` would tell a person their payment failed when the remedy is to submit it again. The node's own reason is carried through so the answer says what happened even where the phase cannot. This is §4.8's `settledForGood` rule and §4.7's honesty about `unknown`, held across a wire. **The codec, and why depth matters.** `encodeForWire` (`src/wallet/skirnir.ts:234`) renders every `bigint` at every depth as a decimal string; `decodeFromWire` (`src/wallet/skirnir.ts:252`) promotes a closed list of field names back. Depth is not incidental: **a nonce appears both at the top level of a transaction and inside a nested authorization, and the two must be the same type or the canonical encoding a signature covers will not reproduce.** A closed list rather than a `{"$bigint":…}` wrapper, because the wrapper is a wire format no other client of this node would produce. **One wire name differs from this client's local key, and a contract test found it rather than a user.** Skirnir was written expecting `submitAllocation`, which is what the record kind and `RecordAnnouncer` call it; the wire name is `allocateDomain`, matching `JsonRpcSurface` and `WalletRpc`. Two components built in parallel held different beliefs about a wire name for some minutes, and `tests/integration/skirnir.integration.test.ts` — which asserts **every method this client calls against `IRIS_METHODS` itself** — turned that into a red build instead of a domain claim that vanished. `SKIRNIR_METHODS` carries the one-line mapping and that is the entire cost of the disagreement. **That test should stay exactly that strict**, and it is the mechanism that keeps this section true as both sides move. **No new dependency.** `node:worker_threads` and the global `fetch` are both in the platform this package already requires. --- ## 5. The authority model `src/wallet/syn.ts`, `src/wallet/vor.ts`, `src/wallet/forseti.ts` ### 5.1 Two questions, and no role answers the second `src/wallet/syn.ts:7-32`: - **Themis** answers *may a role lawfully do this*. It is a table, it is server-side, and it is the one role model this system has. **Nothing in the wallet re-implements it.** - **Syn** answers *are you the person this object belongs to*. A different question, which a role cannot answer, and no role is ever allowed to substitute for it. The distinction is not academic. `ThemisPolicy` gives `operator` the `tx:submit` action, and it must — an operator node relays transactions. If `tx:submit` were the whole check, an operator could submit a transaction drawn on a client's account and the role table would say yes. The reason it cannot is not the table: **it is that a transaction is only valid when it carries a signature by the key that derives `from`, and an operator does not have that key.** Syn is where that stops being an emergent property of the signature scheme and becomes an enforced, audited refusal with a name. ### 5.2 Role → custody → work `SynBoundary.guard` (`src/wallet/syn.ts:141-187`) runs, in order: 1. `policy.assert(principal, action)` — the role check; 2. `input.custody?.()` — the identity check; 3. `work()`. and writes **exactly one** Argus entry per attempt, carrying `allowed`, `denied` or `failed`. One entry per attempt is load-bearing: a guard that records twice, or records an outcome it has not reached, produces a trail where a denial and an approval both appear for the same act and an auditor cannot tell which happened. A **custody failure records `denied`, not `failed`** (`:150-153`). It is a refusal by policy, and grouping it with I/O errors and insufficient balances would bury the one entry an auditor is looking for under the ones they are not. The wallet hoists its custody check out of `submitRecord` for exactly this reason (`src/wallet/skidbladnir.ts:1369-1387`); a wNFT that does not exist yet is deliberately **not** a denial, because recording a missing precondition as a policy refusal would put an accusation in the trail where a state error belongs. `requireHolder` (`src/wallet/syn.ts:189-198`) takes **no role at all**. There is no role that lifts it and no options bag that turns it off. `CustodyError` (`:80-96`) is a separate class from `AuthorizationError` because the two are different conversations with a user: *"your role does not permit this"* is answered by an administrator granting a role; *"you are not the holder of this object"* is answered by nothing, ever — and a surface reporting both the same way would invite someone to try the first remedy on the second problem. ### 5.3 The role vocabulary `WalletRole` (`src/wallet/syn.ts:49-56`) maps onto Themis and adds no authority: ``` client → client admin → operator superadmin → governance auditor → auditor ``` Aliases, not new roles: a second role table would mean two answers to "may this principal do this", **and the one that is not consulted is the one that is wrong** (`:34-41`). **Superadmin is not admin plus more** (`src/wallet/syn.ts:42-48`, `src/wallet/forseti.ts:18-25`, `src/wallet/index.ts:35-41`). Neither role contains the other: | | `operator` (admin) | `governance` (superadmin) | |---|---|---| | `tx:submit`, `ghost:submit` | ✔ | ✘ | | `block:produce` | ✔ | ✘ | | `contract:deploy`, `contract:call` | ✔ | ✘ | | `account:read-any` | ✔ | — | | `params:update`, `endpoints:update` | ✘ | ✔ | | `token:register` | ✘ | ✔ | | `validator:register`, `validator:deactivate` | ✘ | ✔ | | `audit:read` | ✘ | ✔ | The separation is deliberate: **the principal who changes the rules is not the principal who produces the blocks those rules are enforced in**, or a parameter change and its enforcement are signed by the same hand. A consequence worth stating because it surprises people (`src/wallet/forseti.ts:26-31`): **a `governance` principal cannot send its own money.** It has no `tx:submit`. A person who does both holds two principals — a `client` for their own funds and a `governance` for network decisions. One human, two hats, and the audit trail shows which hat was worn. `Skidbladnir` maps every record-queuing operation to `tx:submit` (`src/wallet/skidbladnir.ts:1346-1354`), so a superadmin cannot claim a domain, prove one, send value or write an identity record through the wallet at all. ### 5.4 `MAY_NEVER` — not indexed by role, because no role grants any of it `src/wallet/syn.ts:63-78`: - sign a transaction drawn on an address they do not hold the key for; - construct or submit a wNFT record for a holder they are not; - claim or prove an STR.domain on behalf of another wallet; - read, open or disclose a private wNFT entry without the holder's opening; - move, freeze, unlock or reassign another holder's balance or domain lock; - **rebind a wNFT or an STR.domain to a different wallet — the chain carries no record kind that does this, so it is not merely forbidden, it is unexpressible.** *An administrator who can move a client's funds is not an administrator, it is a custodian* (`src/wallet/syn.ts:28-31`). ### 5.5 Why `VorDesk` is structurally incapable of originating anything `src/wallet/vor.ts:9-38`. Two independent enforcements, either sufficient alone: 1. **Structurally.** The class holds no key material. There is no constructor parameter for a key (`:39-44`), no field that could hold one, and — the part that matters — **no method that builds a transaction or a wNFT record.** `relay` and `relayIdentityRecord` take artifacts that are *already signed*. An admin cannot spend a client's funds for the same reason they cannot spend a stranger's: they would have to produce an ed25519 signature over the sender's address, and there is nothing in the file that could. 2. **By policy.** Every entry point goes through `SynBoundary`. `relay` (`src/wallet/vor.ts:80-107`) verifies the transaction **here**, in the desk's `custody` hook, rather than leaving it to the mempool — *a desk that forwards unverified bytes and lets a node refuse them has audited the wrong event; the trail would show an allowed relay for a forgery*. `SynBoundary.verifyRelay` (`src/wallet/syn.ts:200-223`) runs `validateTransactionStateless(tx, chainId, genesisHashHex)` and then re-checks that the declared key derives `from`, explicitly as belt-and-braces, *because a check that states its own reason survives a refactor of the function it duplicates*. `relayIdentityRecord` (`src/wallet/vor.ts:109-132`) applies the same argument to the record type where getting it wrong would be worst. `assertHolderSigned` (`:158-193`) checks the authorization against the holder **the chain says owns the wNFT** — never against the record's own claim about itself, *which is the forger's field to fill in*. It duplicates what `IdunnVault.authenticate` will do at block time on purpose, because a refused record is dropped from the block in silence and a desk that did not check would record `allowed` for a forgery. ### 5.6 Why no delegated authority can exceed its grant Three independent facts, each checkable: 1. **No record kind expressed delegation — until `Gefjon`, which now does.** Corrected 2026-09-08; the rest of this fact, that a slave domain and `operatorAddress` confer no spend right, still holds and is unrelated. Originally: Seven `WnftRecord` kinds (`src/identity/wnft.ts:402-409`), none of which changes `holderAddress`. So delegation is not forbidden — it is inexpressible. **The second half of this fact was "`StrDomainRegistry` has no transfer method", and that is now false.** `StrDomainRegistry.applyTransfer` (`src/identity/str-domain.ts:1479`) exists and moves a domain between wallets (§1.10). The conclusion survives intact and the reason has to be restated: a sale is not a delegation, it is a **replacement**. Both parties sign, both nonces are consumed, the seller loses the domain, the allocation, the lock and the wNFT entirely, and the sale is refused outright while the wNFT still holds live slaves. There is no state in which two addresses hold authority over one identity, which is what a delegation would be. Corrected here rather than left to be discovered, because "there is no transfer" was load-bearing and is no longer true. 2. **`operatorAddress` confers nothing.** `applySlaveCreate` binds every slave to the master's wallet (`src/identity/wnft.ts:1074-1075`), and the operator address is documented as attribution and a place to be paid (`:1030-1037`). 3. **The signature check is the floor.** `IdunnVault.authenticate` (`src/identity/wnft.ts:747-773`) requires that the record's key derives the holder address the chain minted the wNFT to. `ForsetiDesk` cannot forge an identity by role, because it has no `tx:submit`, and cannot by signature, because nothing there holds the key (`src/wallet/forseti.ts:33-37`). `FriggOffice.authority()` (`src/hostless/frigg.ts:336-357`) states this on **every call**: `delegatedSigners`, as a measured fact rather than an omission - **it read `0`, always, until `Gefjon` shipped, and the word *always* is exactly what stopped being true.** It is now counted from the chain's delegation register (`src/hostless/frigg.ts:110-124`). *"An organisation has exactly one signing key however many people work in it."* The node-local `ThemisPolicy` roll is offered and is declared **off-chain** in the Styx register with the reason written out (`src/hostless/frigg.ts:54-58`): it governs what *this node* will do on an operator's behalf, still signing with the master's key, and confers nothing on any other node. Calling that "multiple operators" would be true of the office and false of the chain, so both halves are stated. `ForsetiDesk.auditTrail` is gated on `audit:read`, which `operator` does **not** hold (`src/wallet/forseti.ts:136-149`): *an administrator who can read and therefore reason about the record of their own denied attempts is halfway to an administrator who can edit it.* `auditIntegrity` (`:151-172`) takes an optional published head, because hash-linking alone cannot detect **tail truncation** — dropping the most recent entries, precisely the ones covering an attack, leaves a perfectly valid chain. --- ## 6. Wallet at rest `src/wallet/at-rest.ts` Sealed by **Fafnir** — which is the node keystore applied to a wallet file, deliberately not a second key store (`src/wallet/at-rest.ts:6-13`). A second implementation means two sets of scrypt parameters, two AAD constructions and two sets of bounds on attacker-supplied KDF values, *and the one that is not being maintained is the one that will be attacked.* ### 6.1 What goes in the file `StoredWallet` — `src/wallet/at-rest.ts:42-61`, with each field justified at `:15-37`: | field | why | |---|---| | `privateKeyHex` | the single secret; everything else is derived from it or opened by it | | `vault` | already ciphertext under a key derived from the account key, so it is doubly sealed here — which means a wrapped vault can also be replicated to places the account key never goes | | `vaultKey?` | **absent** on a wallet that has not rotated; **present** the moment `rotateVaultKey` has run | | `envelopes?` | AES-256-GCM ciphertext bound to their own chain records, useless without an opening. In the file because *a vault without envelopes can prove values it cannot show you* | | `domain?` | public information, so a returning wallet knows which identity these keys belong to | Deliberately **not** in it: any opening in the clear, any payload in the clear, and any third secret of this module's own invention. ### 6.2 A wallet is never written unsealed `saveWallet` (`src/wallet/at-rest.ts:63-90`) **requires** a passphrase, and this is the one place the module is stricter than Fafnir. `writeKeystore` accepts a null passphrase and writes a plaintext file with a banner — the right trade for a *node*, where refusing to seal means refusing to start and a validator that will not start is an outage. It is the wrong trade for a person's wallet, where refusing to save costs one prompt. *A file holding the only key to somebody's identity and their entire balance does not get written in the clear because nobody was asked.* `loadWallet` (`:128-153`) returns `null` for a missing file — that is first run. Every other failure throws, and **none of them falls back to minting fresh keys**: *a wallet that quietly generated new keys over an unreadable file would present a working, empty wallet to somebody whose money is still sitting behind the key it just discarded.* `encrypted` is returned rather than assumed, so a caller can warn on a plaintext file it did not write. ### 6.3 The rotated-vault-key bug, and the guard that now catches it This is the section an integrator must not skip. After `rotateVaultKey`, `backup()` is sealed under the **new** key and the account key opens nothing (`src/wallet/skidbladnir.ts:977-993`). A file carrying the rotated vault **without** the rotated key would reload as: > a wallet with full balances, a working domain, and **not one openable private entry** — funds > intact, every document gone, and no error until the holder tried to disclose something. > (`src/wallet/at-rest.ts:24-29`) That is silent, total and permanent data loss, **and the funds surviving is what makes it silent** (`src/wallet/skidbladnir.ts:986-988`). It used to happen: *"Before that, a rotation followed by a save and a reload destroyed every opening in the wallet while leaving the balances intact — which is the version of this bug nobody notices until the first time they try to disclose something"* (`src/wallet/skidbladnir.ts:1046-1050`). Three things now stand between a holder and it: 1. **`storedWalletOf` takes both together, in one expression** (`src/wallet/at-rest.ts:155-177`). `vaultKey` is read at `:166` and spread at `:174` in the same object literal as `vault` at `:173`, *so there is no path that writes the second without the first.* 2. **`assertVaultRoundTrips` refuses to write a file whose own keys cannot reopen its own vault** (`src/wallet/at-rest.ts:92-126`). It compares `vault.walletPublicKeyHex` against `vaultKeysOf(wallet).publicKeyHex` and then performs an actual `unwrapVault`. *Proved on the spot rather than asserted, because the failure it catches is silent by construction: the vault is ciphertext, and "wrong key" and "no vault" look identical to everything downstream. There is one moment at which this is still repairable, and it is before the bytes are written.* The cost is one AES-GCM open of 32 bytes plus one of the index. 3. **`vaultKeysOf` vs `keysOf`** (`src/wallet/at-rest.ts:179-198`). Two functions rather than a flag, *because the two answer different questions and a caller that conflated them would be right until the day somebody rotated.* `vaultKeysOf` is what `Skidbladnir.restore` must be handed; `keysOf` is what the wallet is constructed with. **After a rotation they are different keys and neither substitutes for the other.** `Skidbladnir.restore` (`src/wallet/skidbladnir.ts:995-1021`) checks the key against `wrapped.walletPublicKeyHex` **before decrypting anything**, so restoring a rotated vault under the account key produces a sentence that says what to do rather than a bare AES-GCM authentication failure from three layers down. `rotateVaultKey` (`src/wallet/skidbladnir.ts:1032-1084`) also **proves the rotation on the spot**: it unwraps with the new key and checks the opening count is unchanged (`:1058-1064`), *because a rotation that silently produced an unopenable backup would be discovered by the holder at the worst moment.* ### 6.4 Agena — a post-quantum wallet at rest A `StoredWallet` is a **classical** identity: one ed25519 secret, an address that derives from it, and a vault sealed under it. A Gemini identity is a different shape at every level that matters — two secrets, an address that derives from neither key alone, and a suite string that decides which derivation applies. **Agena** (`src/wallet/agena.ts`) is that second shape, and it is a separate file rather than four optional fields on `StoredWallet` because bolting them on would have produced a type where `address` sometimes derives from `publicKeyHex` and sometimes does not, with the check that tells you which living at every read site. It is **not** a second implementation of encryption at rest. The sealing is Fafnir's, exactly as §6.2 describes, for the reason recorded there: a second key store means two sets of scrypt parameters, two AAD constructions and two sets of bounds on attacker-supplied KDF values, and the one nobody maintains is the one that gets attacked. Agena adds a shape, an exact-match suite check and a binding proof, and no cryptography of its own. **The one property it is answerable for is that the parts belong to each other**, and it is proved rather than believed — before the bytes are written, and again on every read that is about to sign. `assertGeminiKeystoreBinds` checks five things in the order that makes each impossible to skip: the suite, exactly (an unrecognised value is refused rather than opened as a classical wallet, which would be a downgrade anyone who can edit the file could trigger); the two key shapes; the ed25519 secret against its own public key; the **address against both public keys**; and last a fixed probe, signed and verified, which is the only one of the five that can catch a lattice secret that does not match its lattice public key — ML-DSA-65 as implemented here offers no public-key-from-secret derivation, so nothing shorter will do it. Both failures are silent by construction otherwise: the first signs successfully for an account the file cannot control, and the second produces records every node refuses while the holder is told their own correct signature was wrong. `strblk wallet gemini create | show | book | mint | send` is the command surface, and it takes `--file` pointing at an `agena-gemini-keystore-v1` and never at a `skidbladnir-wallet-v1` — which `loadGeminiWallet` also refuses by format. It is a separate verb group rather than a `--pq` flag because being post-quantum is a property of the **account**: a Gemini address cannot emit a classical record and a classical address cannot emit a hybrid one, so the flag would be mandatory or forbidden depending on which file happened to be open, which is not a flag. **There is no recovery phrase for a Gemini account, and §7 does not apply to one.** Ariadne derives 32 bytes of ed25519 seed; an ML-DSA-65 secret is 4,032 bytes that no phrase in this tree produces. The keystore file and its passphrase are the only things that reach the identity. `gemini create` prints that sentence at creation rather than leaving it to be discovered. ### 6.5 Eski — a wallet remembered on a device, by the holder's choice `src/wallet/eski-crypto.ts`, `src/wallet/eski-shelf.ts`, `src/wallet/eski-store.ts`, `src/wallet/eski-routes.ts`, `src/wallet/gna-eski.ts` Everything above is the CLI wallet's file. The browser wallet (**Gna**) keeps its key in the tab and nothing on disk — unless the holder asks it to remember the wallet on this device. **Eski** is that, and only that: one encrypted copy of the recovery phrase's entropy, made in the page, kept on the device, and opened again by a password. It never holds anything it could open itself, it is never sent to any server, and **it does not replace the 24 words**: on another browser, another device, or after the copy is gone, the words are the way back. There are two forms, and they are not equally strong. **On the Windows wallet (a loopback wallet server started with `--remember-on-device`).** The page seals 24 copies, copy *i* under AES-256-GCM with a key from PBKDF2-SHA256(password, *i*, word *i*; its own salt; 600,000 iterations). The local server keeps the blob wrapped with Windows DPAPI for the current user, and unlocking asks for the password and ONE recovery word at a position the server picks and pins. Every guess at a copied file costs a full derivation per (password, word) pair, so the word multiplies the offline cost by 2,048. **In the browser (every other wallet page, the public web wallet first; owner's decision of 2026-11-17).** In the browser that remembers it, the **password alone** opens the wallet. So the browser copy is ONE seal, in its own format (`sourceless/eski-browser/v1`, which can never be taken for the Windows blob): PBKDF2-SHA256 over the password with its own random salt at 1,000,000 iterations, HKDF into an AES-256-GCM key and a proof, the address and the work factor bound into the authenticated data, and the opened phrase refused unless it derives the remembered address. It is kept in IndexedDB for the wallet's own origin — one database, one object store, one record holding the salt, the work factor, the address, the nonce, the ciphertext, the SHA-256 of the proof and the attempt count — and nowhere else. Nothing is written before the holder chooses and confirms a password: the offer comes ticked after the words are restored or written down, "Don't remember on this browser" skips it, and merely loading the page creates no database. The second password field must be TYPED: two fields filled by a script or a password manager keep nothing. The password fields ask the browser not to fill or save them, and the cards say not to let it: a password the browser saved would open the wallet for anyone using that browser. It is offered only on an https page that is a secure context, and never inside a frame — not on a loopback http page, whose origin moves with its port; where IndexedDB is missing or will not open (a private window, blocked storage) nothing is drawn and the 24 words open the wallet as always. The browser may delete the copy on its own — Safari after 7 days without a visit, others when they clear storage — and the cards say so. **The browser form is weaker against offline guessing than the Windows form**, by the factor of 2,048 the word buys there and by the DPAPI layer it does not have. The password is therefore the whole defence of a copied record, and the browser path asks more of it: at least 12 characters (the Windows path keeps 10), not rated weak, not one of the most common passwords padded with digits, and containing neither a recovery word of this wallet nor its address. **The attempt count, on both.** Every attempt is counted BEFORE it is compared — on the server in a sidecar written first, in the browser in a readwrite IndexedDB transaction that must commit before the proof is compared — and an attempt that cannot be counted is refused uncompared. Wrong attempts wait 1 s, 2 s, 4 s and so on, and the tenth deletes the copy. The count bounds guessing **through the page only**: anyone who copies the browser's files (or, on Windows, reads files as this user) has the sealed copy and can guess offline, where no count applies and the cost is one full derivation per guess. | who | what they can get | what protects against it | what does not | |---|---|---|---| | someone at the unlocked screen | everything the open wallet can do | the idle lock (default 15 minutes) drops the key and the phrase and reloads to the password card | nothing, while the wallet is open and in use | | someone with the locked browser | ten tries at the password through the page | the count before compare, the growing wait (never longer than the delay for the count, however the clock is set), the erase at ten | a guessable password inside ten tries; a password the browser's password manager was allowed to save | | someone who copies the browser's files | the sealed record, to guess at offline | the password, at one 1,000,000-iteration derivation per guess | the page's count: it does not apply offline | | a malicious script running on the wallet's origin | the record, and anything typed into the page | the page's policy: scripts only by hash, Trusted Types, no frames | nothing, once such a script runs: it can read the password as it is typed | **Forget** deletes the copy at once — the IndexedDB record and its database in the browser, the file in the profile folder on Windows (not a secure erase there: an earlier backup or shadow copy may hold the encrypted file). Closing or reloading the tab, and the idle lock, drop the key; the password opens the copy again. --- --- ## 7. Recovery **Read this section as written. Do not soften it in your product copy.** The code's own statement is `Skidbladnir.recovery()` (`src/wallet/skidbladnir.ts:1173-1243`), which is deliberately static: *"there is nothing here to measure and nothing to estimate. It is written down because a wallet that does not say this plainly is a wallet whose users discover it by losing something."* ### 7.1 If the account key is lost `src/wallet/skidbladnir.ts:1182-1193`: - **Every balance on all seven ledgers is unreachable.** Nothing else signs for this address. - **The lock the domain paid — 1,000 STR personal, 5,000 business — stays locked, and stays locked forever.** - **The STR.domain cannot be moved or released.** *Corrected 2026-09-12; the reason given here was false and the conclusion is not.* What stood here said "the chain carries no record kind that rebinds a wNFT or a domain to another wallet". That is true of the `WnftRecord` union (`WnftRecord` `src/identity/wnft.ts:409`, seven kinds, none of which changes a holder) and **false of the chain**: `WnftTransferRecord` is a block-carried record kind that rebinds both legs — `transferMaster` (`src/identity/wnft.ts:812`) moves the wNFT holder, `applyTransfer` (`applyTransfer` `src/identity/str-domain.ts:1479`) moves the `DomainRecord`, and `applyWnftTransfer` (`applyWnftTransfer` `src/core/blockchain.ts:18001`) runs both on all three execution paths. **The conclusion survives for a different reason:** that record requires the *seller's* signature over bytes that derive the seller's address (`assertWnftTransferAuthorized` `src/identity/handsal.ts:290`, and §1.10), and the lost key is the only key that can produce it. A rebinding record kind exists; nobody can sign this one. So the name remains proved to an address nobody can sign for, and **it is not freed for re-registration.** - No further wNFT record can be written: a record is authenticated against the key that derives the holder address, and there is no second key. - The wrapped vault cannot be unwrapped *with the key*, so **every opening is gone and every private commitment on chain becomes permanently unopenable** — unless the 32-byte vault seed was written down separately, which §7.3 now describes as something the code does rather than something it might. Each of those is checkable: the lock at `src/core/blockchain.ts:6524` with no wired release (§1.6); the `WnftRecord` union's seven kinds at `src/identity/wnft.ts:406-414` and the rebinding kind that is **not** in it at `src/identity/handsal.ts:152`; the authentication rule at `src/identity/wnft.ts:747-773`. ### 7.2 If the vault is lost but the account key is held `src/wallet/skidbladnir.ts:1194-1202`: - Balances, the domain, the lock and the ability to transact are **unaffected**. - Public attributes are unaffected: they are in the clear on chain. - **Every private commitment already on chain becomes permanently unopenable, by everyone including this holder.** That is exactly what `burnEntry` does on purpose, applied to everything at once. - New private entries can be written and **must use NEW slot ids**. Reusing an old slot would relink the new entry to the dead one for every chain observer. ### 7.3 If the account key is lost but the vault seed was written down `src/wallet/skidbladnir.ts:1203-1216`. Two paragraphs, and both matter. **In principle**: every past entry is still openable. The openings live in the index, the index is encrypted under a key derived from the seed **alone** (`vaultIndexKey`, `src/crypto/wnft-envelope.ts:867-869`), and no commitment depends on the wallet key. Nothing can be spent or written either way — reading an identity and controlling it are separate capabilities, and only the second dies with the key. **In practice: built, and here is exactly what it does.** This section used to end *"the seed is necessary but not currently sufficient. Do not build a 'restore from seed' flow against this code"*, because `unwrapVault` derives the wrapping key from the wallet key before it can reach the seed, and Lethe exported nothing that took a seed and a `WrappedVault`. It exports one now: ```ts openVaultWithSeed(wrapped: WrappedVault, seedHex: string): HolderVault ``` `src/crypto/wnft-envelope.ts`. It opens the INDEX directly under `vaultIndexKey(seedHex, wnftId)` and **never touches `wrapped.seed`** — the outer box is not decrypted, not verified and not needed, because the caller supplied the seed and the wallet key is the one thing this path is built to do without. **Nothing about the ciphertext changed to make this possible**: the index has always been sealed under the seed alone, so a vault wrapped years before this existed opens under it. The test suite proves the independence the hard way, by opening a vault whose outer seed box has been overwritten with garbage. The recovery, end to end: `openVaultWithSeed(backup, seed)` returns the slots and the openings, and `openEntry(sealedEnvelope, opening)` then decrypts each document you kept. That is the whole of it. **It is a Lethe call and deliberately NOT a method on `Skidbladnir`.** A wallet acts *as* an identity — Syn guards every vault operation against the wNFT this wallet holds — and a holder in §7.3 holds none, so routing this through a wallet would mean loosening the boundary that stops a wallet acting for an identity it does not hold. Possession of the seed is already the whole authorisation, and it is authorisation to READ. **What does not come back is everything in §7.1.** The balances, the domain, the domain lock and the ability to write any further record are all authenticated by the account key, and this recovers documents rather than an identity. `Skidbladnir.recovery()` says so in the same breath as it says the recovery works, and a product built on this must too. **Ariadne (`src/crypto/ariadne.ts`) does not cover this case and never did.** Ariadne derives an ACCOUNT key from a BIP-39 phrase, opt-in at wallet creation; `vault.seedHex` is `randomBytes(SEED_BYTES)` and is derived from nothing. A holder who kept the phrase has the account key, so `unwrapVault` works for them and §7.3 does not arise; a holder in §7.3 has no phrase and no key, and Ariadne has nothing to offer them. The two are different losses and both now have an answer. ### 7.4 What to do beforehand `src/wallet/skidbladnir.ts:1217-1230`: 1. Write down the 32-byte vault seed (`HolderVault.seedHex`) and store it apart from the account key. It is what `openVaultWithSeed` needs, and it is the only thing that survives losing the account key. *Apart* from the key, not beside it: a drawer holding both is one loss, not two. 2. Keep the wrapped vault (`backup()`) on more than one device. It is ciphertext bound to a wallet public key, so replicating it is safe. 3. Keep the sealed envelopes (`exportEnvelopes()`) with it. **The vault holds openings, not payloads, so a vault without envelopes proves values it cannot show you.** 4. If the account key is exposed or merely *suspected*, run `strblk wallet rotate` (§1.13). It moves the whole account — the name, the wNFT, the documents, the lock and every balance — to an address a new key derives, and retires the old address chain-wide, so the exposed key can neither spend nor be paid afterwards. **It is a race against whoever holds the other copy of that key**: they can rotate too, and whichever rotation a block carries first wins. Rotate before you do anything else, and rotate from the machine you trust. **If the wallet was made from a recovery phrase, the rotation ends recovery from that phrase**: the new key is not derived from the words, so afterwards only the sealed wallet file and its passphrase open the account, and the browser wallet cannot. Write a new backup of that file as soon as the rotation is carried (§1.13). 5. Seal the wallet file with a passphrase you can reproduce. **Fafnir has no rotation, no escrow and no recovery for that passphrase either.** **This step 4 is new as of 2026-09-12, and what it replaces is worth keeping.** It used to read *"rotate the vault key and move the funds to a new wallet by an ordinary transfer"*, followed by: *"there is no way to move the identity. A compromised account key means a new domain, a new lock, and a new wNFT with no history."* That was true and it is not any more. What is still true, and is the limit to read before relying on this: a rotation is refused while the account holds STR locked beyond its own domain lock, a Gemini account cannot rotate at all, and anything keyed to the retired address that the record does not carry — a hostless space, an STR.talk inbox key, a delegation you granted — stays behind. §1.13 lists all of it. ### 7.5 What is not offered, and why `src/wallet/skidbladnir.ts:1434-1456`: - **No escrow.** An escrow is a second party who can read the identity: *a service that can restore your openings is a service that can open your commitments.* - **No social recovery of the account key.** There is nothing for guardians to sign. *Narrowed 2026-09-12:* the chain does have a record that rebinds a domain — `WnftTransferRecord`, §1.10 — but it is authorised by the seller's own signature and by nothing else, so there is no threshold, no guardian set and no quorum of friends that could express it. The missing piece is a multi-party authorisation shape, not a transfer. - **No seed phrase for a wallet that was not created with one.** That is decided at creation. A wallet made from a 24-word BIP-39 phrase (Ariadne: `strblk wallet create --words` on the command line, and every wallet the browser makes) derives its account key FROM the words, so the words recover the key, the vault seed and therefore everything, as §7.6 says, unless the account key was rotated (`strblk wallet rotate`): the rotation moves the account to a fresh key the words do not produce, so afterwards they open only the retired address. A wallet created the original way holds 32 bytes never derived from anything; *a mnemonic written afterwards would be a way of writing them down and not a way of recovering them*, which is why the choice cannot be offered later. *Corrected 2026-11-24:* this bullet used to say there is no seed phrase at all and that calling one recovery "would be the lie"; that was true only of a wallet made without words. - **No "reset".** Nothing in this wallet can be reset by anyone — *which is the same sentence as "nobody else can take it from you", read from the other side.* ### 7.6 The plain statement for an integrator This is a product decision, and it will lose real users real money. Stated without hedging: > **On this chain, losing the account key is terminal for the money and the identity.** The funds > are gone, the domain is gone and cannot be re-registered by anyone, and the lock it paid — > 1,000 STR, or 5,000 for a business domain — is gone. There is no escrow, no social recovery and no reset for any of that. The one mitigation > is the private DOCUMENTS: a written-down 32-byte vault seed recovers every opening through > `openVaultWithSeed`, and recovers nothing else. A BIP-39 phrase, if the wallet was created with > one (Ariadne, opt-in at creation), recovers the account key itself and therefore everything — > but a wallet created without one has 32 bytes no phrase produces, and no phrase can be added > afterwards. If you are building a consumer product on this, say that paragraph to the user *before* they fund the wallet, not in a help article. Two backups, two different things recovered: say which is which, or a user who kept the seed will believe they kept the money. ### 7.7 More than one account from one phrase One phrase reaches many independent accounts, numbered from 0. Account `n` is `HKDF-SHA256(seed, salt = "sourceless/ariadne/salt/v1", info)`, and the `info` is set out below (`accountInfoFor`, `src/crypto/ariadne.ts`): | Account | HKDF `info` | |---|---| | 0 | `sourceless/ariadne/account/v1`: the label every phrase has always used | | `n` ≥ 1 | `sourceless/ariadne/account/v1/`, with `n` in plain decimal | **Account 0 is the derivation unchanged, byte for byte.** Every wallet ever made or restored from words opens the same address it always opened, and nothing about an existing phrase moved. This is a published value rather than a promise: `spec/conformance-vectors.json` still carries the original `account` for each phrase, untouched, beside new `accounts` entries for indices 1 to 3. The Node implementation, the browser wallet and both SDKs re-derive all of them. - **The index is bounded to 0 to 4,294,967,295**, for the reason a vault rotation index is. The number is written into `info` as text, and only a 32-bit range is written the same way in every language. - **`strblk wallet create --from-words --account N`** restores account `N` into a new file, and `--words --account N` makes a new phrase and opens account `N` of it. The file records `N` (`recovery.account`), and records it only when `N` is not 0. `show` prints it. **The number is part of what you must keep:** the words alone open account 0, which for `N` ≠ 0 is a different, empty address. - **The browser wallet switches accounts in the open tab and saves nothing.** It keeps the words in memory for as long as it keeps the key, so that it can derive another account. That is a real widening, and the page says so: the key reaches one account, and the words reach all of them. Closing the wallet drops both. - **Vault rotation by phrase is not split by account.** `vaultKeypairFromMnemonic` takes no account index, so it belongs to account 0, and no surface offers it for another account. --- ## 8. Hostless surfaces `src/hostless/` — three read surfaces over what already exists, holding no state of their own, so two of them cannot disagree about the same node (`src/hostless/index.ts:1-17`). ### 8.1 Styx — the on-chain / off-chain boundary `src/hostless/styx.ts` The river that divides one world from the other. This is the crossing itself: the line, stated once, in a form the code can be **asked about** rather than a paragraph in a document (`src/hostless/styx.ts:12-18`). The rule in two sentences (`:28-36`): - **On chain** because two nodes must agree: balances, contract code and storage, identity commitments, governance. Every one folds into `LedgerManager.stateRoot()`, *and that is not a coincidence — it is the definition.* - **Off chain** because only this node needs it: the durable local log, snapshots, indexes, caches, private payloads, operational telemetry. Getting it wrong in one direction costs consensus and in the other costs privacy, **and the privacy direction is the one that cannot be undone** (`:22-26`). **What was actually open** (`src/hostless/styx.ts:48-63`), measured on this tree: `computeRecordsRoot` folds wNFT, governance and collateral records with `canonicalStringify(record)` — the *whole object*, not a named field list — and `wnftRecordPayload` folds the whole unsigned record the same way. So an extra field on one of those three record kinds is signed by its author, committed under the producer's signature, accepted by every follower, and kept in block history forever, while the vault that applies the record reads only the fields it knows and never notices. **That is an unconstrained on-chain payload channel.** The three *closed* record kinds are closed for the opposite reason: they fold named field lists, so nothing unnamed survives. The guard is therefore an **allow-list of shapes, not a deny-list of contents** (`:65-71`). A record is admitted when every field it carries is a field its kind declares — no more, and no fewer than the required ones. *A heuristic that hunts for things that look secret can be walked around by anyone who reads it; a shape that admits seven fields and refuses an eighth cannot.* The deny-list is kept as well, because it catches the honest mistake and **names the field**. Surface: | Export | Purpose | Line | |---|---|---| | `STYX_REGISTER` | the declared rows | `:472` | | `styxSide(state)` | which side a piece of state is on | `:492` | | `verifyStyxRegister()` | the register's own invariants — refuses any row both `holderPrivate` and on-chain (`:111-118`) | `:528` | | `verifyStyxAgainstChain(ledgers)` | the register against a node's **real state root** | `:584` | | `styxScreen(value)` | walk a candidate and refuse holder material | `:688` | | `styxAdmitWnftRecord` / `Governance` / `Collateral` / `Wrap` | shape allow-lists per record kind | `:940`, `:969`, `:994`, `:1068` | | `styxPublishWnft(record, intent)` | **the one function a writer should call** | `:1095` | | `styxAuditChain(blocks)` | screen a chain that already exists | `:1164` | `STYX_FORBIDDEN_FIELDS` (`:631-657`) covers the Lethe half — `opening`, `openinghex`, `plaintext`, `ciphertext`, `iv`, `noncehex`, `envelope`, `sealed`, `vault`, `wrappedvault` — and the key half. `FORBIDDEN_SCHEMES` (`:659-664`) catches sealed containers *by value*, not by field name, using Lethe's own scheme constants. `styxScreen` is bounded three ways — `STYX_MAX_NODES = 4096`, `STYX_MAX_DEPTH = 16`, and cycle detection (`:666-680`, `:688-753`) — because a record is peer input on the apply path and a screen that walked an arbitrary structure would be a way to stop a node with one frame. **Exceeding a bound is a REFUSAL, never a pass**: *"I could not check this" and "this is fine" are different answers and only one of them is safe to conflate with acceptance.* `styxPublishWnft` **throws** rather than returning a verdict, deliberately and nowhere else in the module: *this is the write path, and a verdict on the write path is a verdict somebody forgets to read* (`:1087-1093`). It also forces the caller to declare intent: publishing a `wnft-set-public` requires `'public-forever'`, with the reason spelled out — *a public attribute is published to every node forever and burning it does not un-publish it* (`:1100-1113`). `styxAuditChain` (`:1152-1163`) exists because **the write path can be bypassed**, and a node that followed a chain sealed by somebody else never went through it at all. It is bounded to `STYX_DEFAULT_AUDIT_BLOCKS = 1024` and reports `truncated`, so `clean` is never read as more than it is. Styx deliberately does **not** validate meaning (`:73-79`): sequence numbers, signatures and slave depth already exist in `IdunnVault`, `Odin` and `CollateralBook`, *and a second copy of a rule is a second place for it to be wrong.* ### 8.2 Orrery — the operator's own console `src/hostless/orrery.ts` A clockwork model on a desk: you own it, it is in the room with you, and it tells you what the heavens are doing without your having to ask anybody. **That is the shape of operating a hostless node** — no dashboard somebody else runs, no status page, no support line (`src/hostless/orrery.ts:13-20`). Not a second status surface (`:22-40`). It adds the four things `HestiaStatus` does not have, each a real gap: 1. **Where the disk actually went.** `HestiaStatus.localBytes` measures `/chain` and excludes `/identity.json` — *the one file holding the node's secret keys is absent from the node's own account of its footprint.* Measured here per file, from `stat`. 2. **The footprint against the budget.** `MnemosyneAccount` is byte-accurate but covers memory only; nothing observes the local store into it, so a Pulsar's "under 1 MB" is a claim about RAM and not about disk. Both numbers are reported separately, and the report says which the enforced budget covers. 3. **The boundary, asked rather than assumed** — `OrreryBoundary` (`:272-285`) carries `verifyStyxRegister()` and `verifyStyxAgainstChain()`, the latter as a `Measured<>` because a Pulsar keeps no chain to check against, *which is a fact about the class rather than a failure*. 4. **What cannot be measured, named** — reported `unknown` with the reason rather than derived from something that would look like it. `OrreryCustody` (`:260-270`) reports `keysEncryptedAtRest`, and the comment on that field is the whole point: *"False means anyone who can copy the data directory can become this node."* It also names the passphrase environment variable so an operator can act on it, and carries a `warnings` list that is *"empty only when nothing is [true and unwelcome]"*. `OrreryVerification` (`:287-302`) is the consumer of `verifyPoolState()`, which had none. Signature verification is 82% of the cost of accepting a block; when a verify-pool lane stops answering the pool stands down to single-threaded checking, *"a node that has lost the great majority of its block-acceptance throughput, and which was, from every surface, indistinguishable from a healthy one."* Everything Orrery does is a **read**, including the retention account, which it reads and deliberately does not write to — *a measurement that alters what it measures is a worse measurement than one that admits its scope* (`:42-45`). Every list is capped and every capped list says whether it was capped: *"An operator asking a struggling node for its status must not be the thing that finishes it"* (`:47-50`). ### 8.3 Frigg — the business surface `src/hostless/frigg.ts` Frigg carries the keys to the household stores; Odin holds the decision, Frigg runs the house (`src/hostless/frigg.ts:20-26`). **Almost none of this is new, and that is the finding** (`:28-42`). Master/slave domains, `operatorAddress`, signed create/revoke records in blocks, `LEDGER_OWNERSHIP`, `ArgusJournal`, `ThemisPolicy` — all already built and unconnected. *What was missing was the seam: nothing turned those records into a department list, a collection address, or a statement an accountant could read.* - `master()` / `departments()` (`:280`, `:303`) — the organisation as the chain holds it. - `collectionAddress()` (`:313-334`) — a department with no operator address collects to the master's wallet. *That is not a failure — it is one account for the whole organisation, which is a perfectly ordinary way to run one* — but nothing on chain distinguishes that department's income, so `departments()` reports the operator address as `unknown` **so the consequence is visible before the accountant meets it** (`FriggDepartment.operatorAddress: Measured`, `:96-103`). - `authority()` — see §5.6. `delegatedSigners` is counted from the Gefjon register; it was a hardcoded `0` until 2026-09-08. - `openDepartment()` / `closeDepartment()` (`:363-408`, `:410-...`) — sign a record, screen it with `styxPublishWnft(record, 'commitment-only')`, submit. **Nothing is applied here, and that is the point — a department one node believes in is not a department** (`:366-369`). `assertSigner` (`:585-592`) refuses any signer that is not the master's holder. `nextSequence` (`:594-605`) reads the vault **plus** records already queued for the next block, because reading the vault alone would give two records queued in one block the same sequence and the second would be refused after the caller was told it was accepted. - `statement()` (`:516`) — **every figure is settled or it is not counted** (`:60-70`). Pending transactions are reported in their own section and never added in, *because "we will probably be paid" is not a receipt, and an accountant handed one number covering both has been handed a wrong number.* Each line carries block height, block hash, transaction id and settlement status. Timestamps come from `block.header.producedAtMs`, **never from a wall clock**, which would make two nodes produce two different statements from the same chain. ### 8.4 Network reach — what these surfaces actually call The three hostless surfaces contain **zero** `http://` or `https://` literals and make no network calls of their own. Verified by grep over `src/hostless/`. They are reads over `HestiaNode`, `BlockchainCore` and the registries. The same is true of `src/wallet/`, `src/identity/` and `src/crypto/`: no `http(s)://` literal and no `fetch`/`node:http` import in any of them. > **A claim that does not hold as stated.** The brief for this chapter asserted that there are > "only four `http(s)://` literals in the tree and none is load-bearing." **That is not what the > tree contains.** Measured with `grep -rn "https\?://" src/`, there are **eleven** occurrences > across six files, and one group of them *is* load-bearing: > > | Location | What it is | Load-bearing? | > |---|---|---| > | `src/entropy/gaia.ts:30-32` | the three USGS earthquake feed URLs (`USGS_FEEDS`) | **Yes** — Gaia fetches these. Mitigated by design: the beacon is folded with local CSPRNG bytes and is *never* the sole randomness source (`src/entropy/gaia.ts:18-26`), and an unreachable feed is reported `unavailable` with a reason rather than replaced with zeros. | > | `src/core/config.ts:14-15` | default `rpcUrls` / `explorerUrls` in `CHAIN_CONFIG` | Metadata only; governance-updatable via `ForsetiDesk.updateEndpoints` (`src/wallet/forseti.ts:86-95`). Nothing in `src/` dials them. | > | `src/cli/strblk.ts:673-674`, `:1228` | display and construction of a locally-bound listener address | No — built from the operator's own host/port. | > | `src/cli/strblk.ts:744` | `'https://alice.example'` as a demo attribute value | No. | > | `src/explorer/saga.ts:348` | `new URL(url, 'http://explorer.invalid')` | No — a parse base for a relative request path. Never fetched; `.invalid` is reserved by RFC 2606. | > | `src/ops/astrolabe.ts:256` | the same parse-base pattern, `http://astrolabe.invalid` | No. | > > The **narrower** claim that *is* verifiable: across the four subsystems this chapter documents — > `src/hostless/`, `src/wallet/`, `src/identity/`, `src/crypto/` — there is exactly **one** > `http(s)://` literal (`src/explorer/saga.ts:348`, in the explorer's HTTP surface), and it is a > URL parse base, not a destination. Nothing in identity, the wallet or the hostless surfaces > reaches the network at all. > > Counts outside `src/` (tests, scripts, docs, `dist/`) are **unmeasured** here. --- ## 9. XPlorer — the read-only explorer `src/explorer/` Four named components (`src/explorer/index.ts:1-25`): - **Hlidskjalf** (`hlidskjalf.ts`) — the read model. Odin's high seat: *from the seat you SEE; you do not reach.* - **Saga** (`saga.ts`) — the HTTP surface. `node:http` and hand-written strings, no framework, so the explorer ships inside the node binary. - **Vedrfolnir** (`vedrfolnir.ts`, §9.6) — the reduced read of a node this process does not hold, over that node's operator endpoint. - **Fylgja** (`fylgja.ts`, §9.7) — XPlorer as its own read-only node on the network, holding its own copy of the chain. A caller that already runs a server can skip the socket entirely and call `handleExplorerRequest(view, method, url)`, which is the whole surface as a pure function. The first two are the explorer. The second two are answers to the question **which chain is this**, which the explorer had no answer to at all until recently, and §9.5 is the type that answers it. ### 9.1 Read-only as a property of the type, not a promise `src/explorer/reader.ts:15-40`. An explorer with a write path is *an attack surface bolted to a node*: a public endpoint that can reach `addTransaction`, `produceBlock`, `submitGovernance` or `registerDomain` turns every unauthenticated GET into a potential state transition. *"We will not call those" is a promise; this is the enforcement.* Every reader is a `Pick` over the real class, naming only its read members. The explorer is typed against these and never against `BlockchainCore`, **so a mutator is not something it declines to call — it is not on the object it holds, and reaching for one is a compile error rather than a code review.** `Pick` rather than a hand-written interface, deliberately: *a hand-copied signature goes stale silently; a `Pick` of a member that has been renamed or removed fails to compile.* `BLOCKCHAIN_CORE_IS_A_CHAIN_READER` (`src/explorer/index.ts:41`) is the other half — a live `BlockchainCore` must still satisfy the narrowed shape, so the narrowing cannot drift. Three groups of members are absent and their absence is the point (`src/explorer/reader.ts:33-39`): `validateChain()`/`validateState()` replay the whole chain from genesis, which is **unbounded work reachable from a URL**; `exportSnapshot()` serialises every account of every ledger per call; and everything that mutates. `IdentityReader` (`src/explorer/reader.ts:93-110`) is the wNFT surface the explorer gets — reads only, `resolvePrivateSlot` included, which returns a commitment and never a value. ### 9.2 `Measured` — the honesty type `src/explorer/measured.ts:1-36`: ```ts type Measured = { status: 'known'; value: T } | { status: 'unknown'; reason: string } ``` It mirrors `src/ops/dashboard.ts` **deliberately rather than importing it** (`:5-9`): the operations surface is an *authenticated* admin plane — Themis roles, an Argus journal, a `JsonRpcSurface` that can queue records — and the explorer is a **public** endpoint that must be linkable into a node without dragging any of that onto the public path. Structural typing means the two interoperate anyway. The distinction it keeps is between three things a reader would otherwise see as the same `0` (`:12-21`): - a **measured zero** — the ledger genuinely holds nothing; - an **absent fact** — the chain declares no cap for this token, *which is knowledge, not a gap* (modelled as `SupplyCap` in `types.ts`, because reporting it as unknown *would be its own small lie*); - an **unmeasured value** — nothing has looked, or looking would cost more than a public request is allowed to cost. **Only the third is `unknown`.** Worked examples in the read model: - `chainIntegrity` is **always** `unknown`, and the reason is the design (`src/explorer/hlidskjalf.ts:1178-1184`): *"proving chain integrity means replaying the chain from genesis, which is unbounded work for a public request. The node checks it on the operations surface instead."* - `activeValidators` is `unknown('this explorer was not given a validator registry, so it has not looked')` (`:1173-1175`). - `observedBlockIntervalMs` refuses to report the *target* interval as a measurement (`:1193-1202`): *"Two non-genesis blocks are needed for an interval to exist at all. Reporting the target instead would be reporting an intention as a measurement."* - `lastBlockAgeMs` is unknown at height 0, because the genesis timestamp comes from the spec rather than a clock (`:1186-1188`). - `IdentityOverview.wnftSupplyMatchesProvedDomains` is `Measured` — *"when it was affordable to compute"* (`src/explorer/types.ts:606-607`). The wallet's `TransferStatus.confirmations` uses the same type from `ops/dashboard` (`src/wallet/reads.ts:124`), so the honesty carries into wallet UIs unchanged. ### 9.3 Private entries are structurally undisplayable `PrivateEntryView` (`src/explorer/types.ts:541-554`) **has no value field of any kind**. It carries `commitmentHex | null`, `disclosure: 'commitment-only'` and a `note`. The reason is at `:518-524`: the chain holds a commitment for a private slot and nothing else, and *an explorer that appeared to display the value would be lying about what the chain knows, which is worse than showing nothing.* Displaying a private value is therefore **a compile error rather than a review comment** (`src/explorer/hlidskjalf.ts:99-102`). `PublicEntryView.value` is `string | null` — null once burned, because state holds nothing for it any more (`src/explorer/types.ts:531-532`) — and both variants carry `burnNote`, so the difference between `commitment-withdrawn` and `published-not-recallable` reaches the page. ### 9.4 Bounded Every list is a page with a hard ceiling; per-request work is O(page), never O(chain) (`src/explorer/hlidskjalf.ts:104-107`). The block, transaction and contract indexes are built once and extended by arriving blocks, and the one genuinely O(accounts) query — a ledger's holder list — is cached per height, *so an attacker refreshing it a thousand times pays for it once.* ### 9.5 `ExplorerProvenance` — which of the four chains is on this page The defect this type closes is the sharpest one in this volume, because it did not look like a defect. `strblk explorer` used to do `new BlockchainCore({ genesis })`: it built its **own** chain, optionally seeded it with a demonstration, and served that — with no `--dir`, no `--peers` and no way to point it at a node. So the shipped explorer could not see the running network, and worse, **a made-up chain rendered exactly like a real one**: same masthead, same panels, same confident numbers, same `Measured` honesty about the two or three fields that happened to be unmeasured. Every mechanism in §9.1 to §9.4 worked perfectly, on a chain nothing had ever run `ExplorerProvenance` (`src/explorer/types.ts:2831`). An explorer that cannot be pointed at a node is a mock-up. One that does not say which chain it is showing is a *misleading* mock-up, and the honesty type does not help: `Measured` distinguishes a measured zero from an unmeasured one, and says nothing about whether the thing measured was real. So the answer is a **type with four variants** rather than a flag, because the four differ in what they can show and in what they cost: | Mode | What it is | Panels | Cost | |---|---|---|---| | `following` | XPlorer as its own read-only node, peered with the network, syncing into its **own** directory | every one | a second copy of the chain on disk, a peer slot per node dialled, a catch-up window | | `data-directory` | a **stopped** node's own store, opened under a Cerberus lease | every one | the directory must not have a live writer | | `live-node` | a **running** node, read over its operator endpoint | deliberately reduced — §9.6 | two bounded GETs on the node, no disk here | | `synthetic` | a chain this process made up | every one, of nothing | nothing, and it says so on every page | It is rendered into the **masthead of every page** and published on `/api`, so a reader never has to work out which one they are looking at — `provenanceBanner` (`src/explorer/render.ts:1333`). **A surface mounted without a provenance reports `unstated`, and the wording is the point.** It does not default to a reassuring answer, and it does not default to a scary one either: > This surface was mounted without a provenance. It is not a claim that the chain is real; it is > the absence of a claim either way. (`src/explorer/saga.ts:424-429`.) That sentence exists because the defect it closes was an explorer serving a **synthetic** chain as if real. Any default would have re-created it in one direction or the other: defaulting to `data-directory` would re-assert the false claim, and defaulting to `synthetic` would tell a caller with a real chain and a forgetful embedder that their chain was fabricated. The absence of a claim is the only answer that is true in both cases. `unstated` is the one mode that is not in the type above, because it is not a chain — it is what the JSON index emits when the option was never supplied (`src/explorer/saga.ts:424-429`). The HTML half answers the same question by rendering **no banner at all**, and the field's own docstring says why the two agree: *omitting it renders no banner rather than a reassuring default, because "no claim" and "a real chain" must not look the same* (`src/explorer/render.ts:203-210`). The option is optional only so that a caller mounting the surface inside something else is not forced to answer; `strblk explorer` always answers. `provenance` is first in the `/api` document and not buried at the bottom, because every other value on that surface means something different depending on it: *a caller reading a height from a synthetic chain and a height from a validator must be able to tell them apart in the same field* (`src/explorer/saga.ts:421-423`). For the `following` mode the provenance is a **function** rather than a value, resolved per request. That is an honesty requirement rather than a convenience: a follower's provenance carries how far the sync has got, and a value captured at start-up would tell every reader for the life of the process that the chain is three blocks long (`src/cli/strblk.ts:1040-1043`; `tests/integration/explorer-following.integration.test.ts:388-398` asserts the supplier is called once per request). ### 9.6 Vedrfolnir — looking at a chain this process does not hold `src/explorer/vedrfolnir.ts`. **ACTIVE**: `strblk explorer --node `, and the mode `--dir` falls back to when a live node holds the directory. The choice is made by `decideExplorerSource` (`src/cli/strblk.ts:3879`). Veðrfölnir is the hawk that sits between the eyes of the eagle at the top of Yggdrasil: a watcher perched on a watcher, seeing only as far as the thing it sits on will carry it. That is the whole component. **Hlidskjalf** is the seat from which every world is visible and it works *because the chain is in the same process*; when the chain is a running node somewhere else, XPlorer is not on the seat any more. It is perched on that node's operator endpoint, seeing what the node publishes and nothing else — and the honest thing is to say so rather than render a smaller page that looks like a complete one (`src/explorer/vedrfolnir.ts:8-17`). **Cerberus decides the design.** A running node holds its data directory, and opening a second store on a live one is what used to corrupt the log being read (`GOVERNANCE_AND_OPERATIONS.md` §7.2). So XPlorer makes the same decision `cmdStatus` makes, and makes it the same way rather than inventing a second one: read the lock; if a node holds it and publishes an endpoint, **read the endpoint** and leave the directory alone; if a node holds it and publishes nothing, refuse and say what would make it readable; only when nobody holds it does XPlorer take the lease and open the store. There is no third answer. The consequence is real and is not hidden. A node's operator endpoint publishes its head, peers, depth line and storage, and publishes **no block bodies, no balances, no domains and no contracts**. The two routes that *would* carry blocks and accounts — `/api/ops/blocks` and `/api/ops/account/{address}` — are authenticated against a Themis roster, and XPlorer holds no key and must never hold one, because being unauthenticated is the property that lets it be served publicly. *A public read-only explorer carrying an operator credential would be an operator credential on a public endpoint* `LIVE_PANELS` (`src/explorer/vedrfolnir.ts:236`). So `LIVE_PANELS` names **all twelve panels with a verdict and a reason**: one `served`, two `partial`, nine `absent`. A panel it cannot serve answers **501 with that reason** and a remedy, not 404 — the panel exists and this mode cannot produce it, which is a different fact from "there is nothing at this address" and has a different remedy (`handleLiveRequest` `src/explorer/vedrfolnir.ts:559`, refusing at `:419-437`). Nothing is quietly dropped and nothing is filled with a zero. A precision the table itself does not state: **ten of the twelve rows answer 501 in practice, not nine.** `LIVE_ROUTES` (`src/explorer/vedrfolnir.ts:487`) serves four paths — `/`, `/health`, `/api` and `/api/node` — so `/network`, whose verdict is `partial` and whose reason correctly says height, head, state root, peers and the depth line *are* served, still 501s when asked for by that name, because the data is on `/` and there is no `/network` route in this mode. The row is honest about the data and not about the route. **The remedy printed with those 501s was wrong, and is corrected.** It used to say *stop the node and run `--dir` against its directory*. That asks an operator to take their network down in order to look at it, and ten of the twelve answering 501 is not an explorer either -- nine rows carry the verdict `absent`, and `/network` is `partial` about its data yet unrouted in this mode, so it 501s as well. The limit was true; the conclusion drawn from it was not. The missing thing was never a key — **a chain is public data and anyone may hold a copy** — and §9.7 is the copy. The 501 now points at `--peers` (`src/explorer/vedrfolnir.ts:430-435`). **This component is kept and not deprecated**, and its scope is now stated positively rather than as an apology (`src/explorer/vedrfolnir.ts:56-64`). Three things it answers that a follower cannot: - a node this process **cannot peer with** — a different genesis, a firewall between them, or a node with no listening port; - a **head, depth-line and storage read that costs the node two bounded GETs** and this process no disk at all, where a follower is a second copy of the chain and a peer slot; - the question *what does **this** node believe*, which is different from *what did the network agree*. A follower answers the second; only this answers the first, and the first is the question during an incident. Every field of the reading is `Measured`, and that is not defensiveness. It reads JSON from a process that may be a **different build**: a field that moved or was renamed must render as `unknown — /api/status carried no headHashHex` rather than as `undefined`, and above all must never render as `0` `LiveNodeFacts` (`src/explorer/vedrfolnir.ts:96`). Heights and roots stay **strings exactly as they arrived**; nothing does arithmetic on them, because a bigint past 2^53 parsed back into a number would be wrong in its last digits while looking perfectly ordinary. Two bounds on a read of somebody else's endpoint: five seconds `LIVE_READ_TIMEOUT_MS` (`src/explorer/vedrfolnir.ts:75`) and two megabytes `LIVE_READ_MAX_BYTES` (`src/explorer/vedrfolnir.ts:84`). "The operator typed the URL" is not a reason to read an unbounded body into memory. And the surface makes **no outbound request except those two GETs**, so a reader cannot use XPlorer to drive the node it is watching (`src/explorer/vedrfolnir.ts:66-71`). ### 9.7 Fylgja — following the chain instead of asking permission to see it `src/explorer/fylgja.ts`. **ACTIVE**: `strblk explorer --peers host:port,host:port`, and it is the default whenever peers are given — `serveFollowingExplorer` (`src/cli/strblk.ts:3620`). Old Norse *fylgja*, from the verb *fylgja*, "to follow, to accompany": the attendant spirit bound to a person for their whole life, going where they go and seeing what they see. **The etymology is the specification.** It does not ask a node what it thinks. It joins the network, takes the blocks off the wire, verifies them with the same `HestiaNode` acceptance path a validator uses, and keeps them in a store of its own — `Fylgja` (`src/explorer/fylgja.ts:308`). The design stance that produced §9.6's limit — XPlorer holds no key, so it can be served publicly — is **kept in full**. This holds no key either. It does not need one, because it is not asking anybody's permission to read a chain; it is reading its own copy. It is a `HestiaNode` and not a narrower thing **on purpose**. A hand-rolled sync client would be a second implementation of block acceptance, and an explorer whose verification rules differ from a validator's is an explorer that can show a chain no validator would accept (`src/explorer/fylgja.ts:54-56`). #### Panel parity is a type, not a promise Every panel works for the ordinary reason it works on a validator: **the chain is in this process**. `Hlidskjalf` is constructed over `node.blockchain` exactly as it is in `--dir` mode, over the same `BlockchainCore`, through the same `ChainReader` narrowing (§9.1). So *"every panel that works against a stopped node works against a running network"* is not a claim to be maintained by hand. It is the same reader over the same type, handed over by `Fylgja.chain` (`src/explorer/fylgja.ts:356`), which narrows nothing a second time — a second narrowing is a second thing to drift. The test asserts that directly, and the assertion is chosen rather than convenient. It runs nineteen panels — every route with a real argument where the route takes one — against two `Hlidskjalf` instances: one over the follower's chain, one over the **producer's own chain in the producer's own process**. It asserts the statuses match, that every status is under 400, and that the two response **bodies are byte-identical** (`tests/integration/explorer-following.integration.test.ts:161-223`). Equality is the only assertion that carries the claim. *A test that checked for 200s would pass against a mode that served twelve empty pages* — which is precisely the failure this mode exists to end, and precisely what §9.6's mode looked like from a distance (`tests/integration/explorer-following.integration.test.ts:28-41`). The same test then checks the follower agrees on the **head hash and the state root** and not merely the height, because two nodes at one height on different branches both look caught up on a height alone. #### Three safety properties, all structural **It never seals.** `blockIntervalMs` is fixed at **0 inside the component and is not an option** — it does not appear on `FylgjaOptions` (`src/explorer/fylgja.ts:255`) and is written as a literal in the constructor (`src/explorer/fylgja.ts:147-150`). **No producer key is passed either**, so a cadence reintroduced by accident would have nothing to sign with. Those are two independent guards on one property, which is the right number for a property whose violation is an explorer forking the chain it is displaying. Measured rather than argued: the test follows a chain to height 6, waits, and asserts the height and head are still the producer's (`tests/integration/explorer-following.integration.test.ts:270-283`). **It never opens another process's directory.** It is given its own — `.sourceless/xplorer` by default, never a node's — and the CLI takes a Cerberus lease on it. So Cerberus is not weakened, it is *sidestepped*: one writer per store as always, and this one is ours. Passing a node's directory as `--follow-dir` is refused rather than guessed at, and `--peers` with `--dir` is refused with the reason spelled out, because `--dir` names a **node's** directory and a following explorer does not open one — `cmdExplorer` (`src/cli/strblk.ts:3508`), refusing at `:962-970`. **It never presents a partial chain as a whole one.** `FollowProgress` (`FollowProgress` `src/explorer/types.ts:2770`) carries the follower's height beside a `Measured` target on every page, and `Fylgja.progress` (`src/explorer/fylgja.ts:560`) is synchronous and re-read per request rather than cached — the number that matters is whether the chain on the page is the whole chain, and a cached answer to that is a stale one. The honesty is in `target`. The sync engine reports `bestPeerHeight` as `null` until some peer has advertised a height, and that null becomes **`unknown — no peer has advertised a height yet`** rather than the local height, a zero, or a quiet omission (`src/explorer/fylgja.ts:244-250`). *All three of those render to a reader as "caught up"*, and a follower with no peers is exactly the case where that is most likely to be false — a restarted follower holding seven blocks would otherwise report itself synced to a network it has not spoken to. The render tests pin all three states the banner has to distinguish: caught up, behind, and **unmeasured**, which is neither and must never be drawn as the first (`tests/integration/explorer-following.integration.test.ts:339-387`). #### What it refuses before it serves a page, and what it costs Two constructor refusals, both because an explorer that comes up green and stays at height 0 forever is the failure this mode exists to end (`src/explorer/fylgja.ts:106-128`): **no seeds** is a follower with nobody to follow, and **a pulsar class** keeps no full state, so the follower would hold no blocks, no balances and no identity and every panel would be empty. Both name what would have been empty rather than failing later and quietly. A third refusal is at start rather than in the constructor: if the node comes up with no chain, the follower stops itself and reports that there is nothing to explore, rather than handing a null to `Hlidskjalf` and crashing on the first page load. That check is in `Fylgja.start` (`src/explorer/fylgja.ts:352`). Two things are collected as warnings rather than thrown — not listening for peers, and no peer having answered yet — because both are true, unwelcome, and not reasons to refuse. They ride out on `FylgjaStart` (`src/explorer/fylgja.ts:289`). The costs are named rather than hidden (`src/explorer/fylgja.ts:36-44`): **disk**, a second copy of the chain, which is the price of not touching the first one; **a peer slot** on every node it dials, plus the bandwidth of ordinary sync, because it is a real node on the network and is counted as one by everybody it talks to; and **time**, a catch-up window during which the banner says so. ### 9.1 Thrymgjoll — the holder's door The explorer answers the same chain to everyone. The **door** answers it *as you*. `Thrymgjoll` (`src/identity/thrymgjoll.ts`) is a separate surface a holder signs in to with their STR.domain — and it is deliberately separate from the explorer, which stays GET/HEAD and serves only public state. The door holds **no key**: it shows the holder the exact sentence to sign, the wallet signs it (`Svipdag`, `src/identity/svipdag.ts`), and the door checks the signature against the chain's registry of who holds the name. The session it mints is an in-memory, HttpOnly, SameSite=Strict cookie; a restart signs everyone out, which is correct for a door that is not an identity provider. Signed in, the holder sees their own view, composed from public reads and nothing else: their ledgers, their Gefjon spending authorities on both sides, and their **recent transfers** — each linking out to XPlorer for the whole of it. Signing in decides *whose view* it is and authorises nothing on chain. It is served by `strblk wallet gate`; behind TLS it needs `--public-origin`, because the origin is in the sentence the holder signs and the wallet refuses a mismatch, and it is told the explorer with `--explorer` so the view can link out. The explorer shows the way in with `strblk explorer --door `, a single "Sign in with your STR.domain" anchor and no POST. **The wallet window opens on the tap** (`src/identity/thrymgjoll-ask.ts`), before the challenge exists. A browser lets a page open a window for a few seconds after a tap: measured on 2026-11-22 in Chromium 153, a challenge that took six seconds opened no window, and the page said it was waiting for one. The tap now opens the window by name. A wallet already there is left as it is, not reloaded and not locked, until there is a challenge to take it to; a new window, still empty, goes to the wallet's page. The challenge reaches it by address: the fragment no server is sent, as before. The page posts no message to any window, closes none, and holds only a window whose opener it is. It reads a message only at the wallet's exact origin, only from that window, and only while its own challenge is open; a late, doubled or dropped answer posts nothing. A window the browser refuses is said, and the next tap opens it on the challenge already issued. While it waits the page shows the current step, the minutes left, *Open the wallet again* and *Start over*. A request that gets no reply in twenty seconds is given up on. The wallet holds the request until it is unlocked; the door cannot take one back, so *Start over* says that an older request may still be on the wallet's screen. Amounts are in whole tokens, from the chain's own table (`src/identity/thrymgjoll-amounts.ts`). None of this has been measured on an iPhone or an Android phone. ### 9.2 What an address received Both the wallet and the door now show what an address **received**, not only what a window sent. `addressHistory` (`src/core/rpc.ts`) is a read on the chain's own door: a bounded, newest-first scan of the recent-block window for transfers touching an address, each marked `in` or `out` from that address's side. It is bounded on purpose — the same window `transaction` uses — and carries `reachedGenesis`, so an empty answer means "nothing arrived", not "this read did not look further". There is no per-node address index, because an unbounded index on an open door is exactly the shape a stranger with a socket turns into an amplifier; the explorer, which keeps the full index, is where older history lives, and both surfaces link to it. --- ## 10. What a wallet must do to be safe on this chain A checklist. Each item names the code it follows from. ### Signing 1. **Bind both `chainId` and `genesisHashHex` into every transaction signature.** Never rely on the defaults — `signTransaction` defaults `genesisHashHex` to `''` (`signTransaction` `src/core/transaction.ts:221`), and the chain id is self-declared, so two networks may carry the same one (`src/core/config.ts`). Note that the compiled-in default is the DEVELOPMENT chain id and the mainnet realm's is 1313 — reading the id off a stale document is how a wallet ends up binding the wrong network. Read them from the node you are talking to (`src/wallet/reads.ts:137-145`). *Skipping this produces a transaction valid on a network you never meant to touch.* 2. **Never send a private key over an RPC surface.** `registerDomain(domain, keys)` exists on the surface and takes key material; use client-side `proveDomain()` + `submitRegistration(proof)` instead (`src/wallet/skidbladnir.ts:379-385`, `:418-421`). 3. **Sign every wNFT record over `rpc.identityChainBinding()`**, and never over a locally guessed binding (`src/wallet/skidbladnir.ts:1267`, `src/identity/wnft.ts:419-422`). A record signed for the wrong chain is refused with a signature error that looks like a bug in your code. ### The domain gate 4. **Enforce `claim → funded → prove` in that order, and check the claim has landed on chain before submitting the proof** (`src/wallet/skidbladnir.ts:390-409`). A proof submitted early passes the node's door and is dropped at seal time, silently, and re-offered until the abandonment horizon. 5. **Show the user that an allocated-but-unproved wallet can receive and nothing else** (`src/core/ledger-manager.ts:310-321`). Do not render a Send button on it. 6. **Normalise domains with ASCII `toLowerCase()`, never `toLocaleLowerCase()`** (`src/identity/str-domain.ts:80-83`). Same for public attribute keys (`src/identity/wnft.ts:451-454`). 7. **Submit already-normalised domains.** Both `verifyDomainClaim` and `verifyDomainProof` refuse an un-normalised name rather than folding it (`src/identity/str-domain.ts:215-217`, `:263-265`). A burn and a sale refuse the same way, for the same reason — the signature covers the string as sent (`src/core/blockchain.ts:5470` and `applyWnftTransfer`, `src/core/blockchain.ts:5580`). 7a. **Tell the user what a burn and a sale cost them before they sign either.** §1.9 and §1.10. A burn refunds the lock and then closes the name for **30 days** and bars **that address from that name forever, by any door** — including buying it back (`HelgrindGate.refuseTake` `src/identity/helgrind.ts:572`). A sale moves the lock with the wNFT, so the buyer posts `price + lock` and the seller is released. **Both leave the wallet holding no domain**, which means it can neither spend nor receive until it reserves a new name. And both consume a chain nonce — a sale consumes **two**, one per party, which is also how a seller withdraws an offer. Signing anything else at that nonce kills the pending record, and a wallet that does not say so will kill its user's sale by sending a payment. Note that as of `9220195` this is advice you cannot yet act on: nothing in `src/` outside the integration tests signs either record. See §11. ### Balances and sending 8. **Show `available`, `locked` and `inFlight` separately, on all seven ledgers** (`src/wallet/reads.ts:27-71`, `src/wallet/skidbladnir.ts:430-447`). Never render a single number. 9. **Act on `requiresPurpose`, do not just display `restriction`.** A CCOS transfer without `purpose: 'financial'` is refused by every node (`src/core/ledger-manager.ts:306-308`, `src/wallet/reads.ts:61-70`). 10. **Do not offer a Send button on a non-transferable ledger.** `WNFT` is non-fungible (`src/core/tokens.ts:220`). 11. **Take the nonce from the projection that matches the path you are using**, and refuse to sign when the two projections disagree (`src/wallet/skidbladnir.ts:633-669`). **Do not mix `send()` and `sendInstant()`.** Admitting a ghost transaction the mempool will drop leaves a pre-confirmed entry that can only end `diverged`. 12. **Subtract in-flight value before signing, not after** (`src/wallet/skidbladnir.ts:449-478`). ### Reporting settlement 13. **Render `paid` only on `safeForValue === true`**, which needs `settledForGood` AND either a signature-backed line or the 600-block value depth (`src/core/var.ts`). `settledForGood` alone is 12 blocks on Asgard, and no signature quorum backs it (audit 2026-11-12, H1). 14. **Never render `pre-confirmed` as payment.** Use `TransferStatus.render`, which is provided precisely so no caller invents the words — *and the caller that invents them writes "Paid" next to a pre-confirmation* (`src/wallet/reads.ts:128-132`). 15. **Treat `unknown` as unknown, never as failure** (`src/wallet/reads.ts`). The scan window is 1,024 blocks, and the node's transaction index covers the heights below it. **Read `contested` as an explicit `true`**; never settled while it is. 16. **Never zero-fill a `Measured`** (`src/explorer/measured.ts:1-22`). ### Identity writes 17. **Read the version and sequence off the chain for every record**; do not count locally (`src/wallet/skidbladnir.ts:706-712`, `:1324-1330`). 18. **Check `landed(receipt)` after the block.** A refused wNFT record is dropped from the block in silence — there is no `refusedWnftRecords()` (`src/wallet/skidbladnir.ts:139-153`, `:1278-1287`). 19. **Make private-entry writes atomic on the holder's side**: check the chain version first, roll the vault back if the record never reached a node (`src/wallet/skidbladnir.ts:729-792`). A vault a version ahead of the chain **wedges that slot permanently** until repaired. 20. **Offer `reconcileVault()` and `repairVault(names)`**, and never repair wholesale (`src/wallet/skidbladnir.ts:1086-1171`). A vault one version ahead is indistinguishable from a queued write. 21. **Screen every record with `styxPublishWnft(record, intent)` before submitting** (`src/hostless/styx.ts:1095-1115`). It throws rather than returning a verdict, on purpose. 22. **Never put an opening, a payload, a ciphertext, an entry name or a key into a record.** `LETHE_CHAIN_FIELDS` is the complete list of what may cross (`src/crypto/wnft-envelope.ts:130`). Do not spread a commitment — `{...commitment, entryName}` is exactly the mistake the five-field check exists to catch (`src/identity/wnft.ts:834-841`). ### Privacy 23. **Default new entries to private.** A public value is published to every node forever and burning it does not un-publish it (`src/identity/wnft.ts:220-235`, `src/hostless/styx.ts:1100-1107`). 24. **Use `rollForward` rather than per-slot writes**, and roll on a schedule as well as on change (`src/crypto/wnft-envelope.ts:1020-1050`). A one-slot write points at which slot changed. 25. **Commit `LETHE_ABSENT` into slots from creation**, so the presence of a document is as private as its value (`src/crypto/wnft-envelope.ts:114-122`). 26. **Never reuse a burned slot id.** The chain refuses it, and reusing one would relink the new entry to the burned one for every observer (`src/identity/wnft.ts:919-924`). 27. **Tell the user what a burn does and does not achieve**, per `WnftBurnErasure` (`src/identity/wnft.ts:220-235`), and hand them `BurnInstruction.steps` rather than logging them (`src/crypto/wnft-envelope.ts:1078-1081`). *A burn nobody finishes is not a burn.* 28. **Tell the user an STR.domain is pseudonymous at best**, and that slot count and update timing leak regardless (`src/identity/wnft.ts:62-77`). ### Verifying a disclosure 29. **Pass `nowMs` if you call `verifyDisclosure` directly.** Without it the validity window is not checked and the TTL becomes advisory. Prefer `verifyDisclosureOnChain`, which supplies it (`src/wallet/skidbladnir.ts:1402-1408`). 30. **Fetch the commitment from the chain yourself.** Never trust a commitment supplied alongside the disclosure (`src/crypto/wnft-envelope.ts:524-530`). 31. **Set `expectHolderAddress` to the holder the chain reports** — `verifyDisclosureOnChain` does this by default (`src/wallet/skidbladnir.ts:1443`). 32. **Do not treat the disclosure signature as an anti-forwarding control.** It records consent, not confidentiality (`src/crypto/wnft-envelope.ts:462-470`). ### Storage and keys 33. **Never write a wallet file unsealed.** `saveWallet` requires a passphrase (`src/wallet/at-rest.ts:63-90`). 34. **After a vault rotation, persist the rotated key with the vault, always.** Use `storedWalletOf`, which takes both in one expression (`src/wallet/at-rest.ts:155-177`), and keep the `assertVaultRoundTrips` guard (`:92-126`). A file with the rotated vault and without the rotated key reloads with full balances and **no openable private entry**. 35. **Restore with `vaultKeysOf(stored)`, not `keysOf(stored)`** (`src/wallet/at-rest.ts:179-198`). 36. **Never fall back to generating fresh keys over an unreadable wallet file** (`src/wallet/at-rest.ts:128-139`). 37. **Store envelopes alongside the vault.** *A vault without envelopes proves values it cannot show you* (`src/wallet/skidbladnir.ts:1223-1224`). 38. **Say that vault rotation does not move chain authority**, and list what still needs the old key (`src/wallet/skidbladnir.ts:1039-1043`, `:1077-1081`). ### Authority 39. **Never sign for another address, at any role.** `MAY_NEVER` is not indexed by role because no role grants any of it (`src/wallet/syn.ts:63-78`). 40. **Verify a relayed transaction or record at the relay, not at the mempool** (`src/wallet/vor.ts:80-107`, `src/wallet/syn.ts:200-223`). Otherwise your audit trail records `allowed` for a forgery. 41. **Check an identity record's authorization against the holder the chain reports**, never against the record's own claim (`src/wallet/vor.ts:158-193`). 42. **Do not model an admin as a custodian.** Hold no key material on any admin surface (`src/wallet/vor.ts:20-27`). 43. **Delegated spend IS a record kind now — `Gefjon` — and `operatorAddress` still confers nothing.** Corrected 2026-09-08. This item read *"Do not build a delegated-spend feature. There is no record kind that expresses it"*, and cited a comment in `src/hostless/frigg.ts` that was itself stale by the time anyone read it. Build against `strblk wallet delegate` and the `submitGefjon` RPC. The half of the original instruction that survives is the important half: a slave domain and an `operatorAddress` are **not** signers, and treating either as one is still the mistake this item existed to prevent (`src/identity/wnft.ts`). ### Recovery 44. **Tell the user, before they fund the wallet, that key loss is terminal** — funds, domain, lock and private documents, with no escrow, no social recovery, no BIP-39 and no reset (`src/wallet/skidbladnir.ts:1182-1241`). Surface `recovery()` in the product, not in a help article. 45. **Do not ship a "restore from seed" flow.** It does not work in this code (`src/wallet/skidbladnir.ts:1209-1215`). Have the user write the seed down anyway, and say plainly that it is not yet a recovery path. --- ## 11. What is still missing Verified absences, not aspirations. ### ~~No CLI wallet~~ — closed, and the entry is kept struck rather than deleted **This was the largest absence in the chapter and it is gone.** What stood here: `Skidbladnir` was imported by nothing outside `src/wallet/` and the integration tests; `strblk` had fourteen commands and **none of them was a wallet**; there was no command to claim, prove, send, back up, restore, rotate, disclose or burn; and the consequence for an integrator was that every wallet operation had to be driven programmatically against `Skidbladnir` + `chainReads(core)` + `JsonRpcSurface`, with no reference command-line flow to copy. **`strblk wallet` (`src/cli/wallet.ts`) is that flow**, and it covers the journey this chapter walks: `create`, `show`, `balance`, `claim`, `register`, `prove`, `send`, `status`, `history`, `identity get`/`set`, `backup`, `restore`, `recovery`, `networks`. It reaches a node through **Skirnir** (§4.11) against **Iris**, and its `--node` default is `http://127.0.0.1:8083` **derived from `IRIS_DEFAULT_PORT` rather than written down a second time** — it was a literal `8545` that nothing in this tree has ever listened on, which is the class of defect a derived default removes rather than fixes. `--genesis HASH` is the wallet-side half of §4.11's binding rule: the wallet **refuses** a node that says otherwise. Two limits are unchanged and are stated here rather than left to be inferred. The passphrase is read from the keystore environment variable or asked for on a terminal, and **there is no recovery for it** — §7 is the section that matters and this command's help says so in the same words. And there is still no CLI path to burn or sell a domain; see "No surface can burn or sell a domain" below, which this entry closing does not close. ### No hardware / cold-key `Signer` interface There is no `Signer` abstraction anywhere in `src/`. Verified by grep for `interface Signer`, `hardware wallet`, `cold key`. Every signing path takes raw private key material: - `Skidbladnir` holds `AccountKeypair` including `privateKeyHex` (`src/wallet/skidbladnir.ts:271-282`); - `signTransaction(unsigned, privateKeyHex, ...)` (`src/core/transaction.ts:47-52`); - `signWnftRecord(unsigned, {publicKeyHex, privateKeyHex}, binding)` (`src/identity/wnft.ts:425-429`); - `FriggSigner` is `{publicKeyHex, privateKeyHex, address}` (`src/hostless/frigg.ts:244-248`). **The one piece of groundwork that was laid deliberately:** `deriveVaultWrappingKey` (`src/crypto/wnft-envelope.ts:848-865`) derives the vault key by *signing a fixed statement* rather than hashing the private key, explicitly so that "a hardware wallet, a remote signer, a future keystore that only offers `sign`" can produce it. The rest of the stack has not followed. Introducing a `Signer` interface is a change to every call site above, not a wrapper. ### No multisig No multisig anywhere. Verified by grep; the only hits are incidental prose in `src/core/contract-state.ts:1611` (listing payout templates) and `src/governance/parameters.ts:32` (a narrative about an external incident). Structurally, multisig is not currently expressible for identity: `IdunnVault.authenticate` (`src/identity/wnft.ts:747-773`) checks **one** ed25519 signature against **one** derived holder address, and `WnftAuthorization` (`:321-325`) carries one key and one signature. `transactionSigningPayload` binds one `publicKeyHex` and `signTransaction` refuses a key that does not derive `from` (`src/core/transaction.ts:53-55`). A threshold scheme would need either a new record shape or an aggregated-signature primitive; neither exists. A contract-level multisig over *value* may be reachable through AresLang, since a contract is a valid transfer recipient (`src/core/ledger-manager.ts:322-343`) — but it cannot hold a domain, because nothing signs for a contract, so it cannot hold an identity. **Unmeasured:** whether any shipped contract template implements a workable value-multisig. ### No watch-only mode No watch-only anywhere. `Skidbladnir`'s constructor requires an `AccountKeypair` (`src/wallet/skidbladnir.ts:271-276`), and `Skidbladnir.create` generates one (`:286-293`). There is no address-only construction and no read-only wallet type. The parts a watch-only wallet would be built from **do** exist and are already read-only: `WalletChainReads` is four methods, all reads (`src/wallet/reads.ts:135-149`); `VorDesk.account()` reads any address (`src/wallet/vor.ts:54-70`); and the explorer's `AddressView` is a complete public position. What is missing is the wallet type that composes them without a key — and the guard rails that would have to come with it, since `Skidbladnir.balances()` narrows by ghost in-flight state that a watch-only observer cannot see. ### The Ghost Ledger is constructed nowhere on a node path **Added 2026-09-12, and it should have been in this register from the first version.** This volume spends four passages on the Ghost Ledger — §3's `pre-confirmed` phase, §4.4, §4.7 and §4.8 — and every one of them describes a component **no node in this tree builds**. Verified by grep: `new GhostLedger` appears **once** in `src/`, at `src/cli/strblk.ts:3245`, inside `cmdDemo` (`src/cli/strblk.ts:6857`), under the printed heading `'\n3. Ghost Ledger — near-instant admission'`. The only other constructions anywhere in the tree are `scripts/scenario.mjs:92` and `scripts/soak.mjs:54` — two harnesses. **`src/node/` contains no reference to the class at all**, and the three modules outside `src/ledger/` that name the type hold it optionally and are never given one: `SkidbladnirOptions.ghost` is `ghost?: GhostLedger` (`src/wallet/skidbladnir.ts:119`), held as `private readonly ghost?: GhostLedger` (`:268`); `OpsDashboard` carries the same optional field (`src/ops/dashboard.ts:123`, `:226`) behind `reconcileGhostLedger` (`:442`), which Gungnir's `ghost:reconcile` action reaches (`src/gungnir/actions.ts:764`); and the shipped CLI wallet (`src/cli/wallet.ts`), which the first entry in this register celebrates, passes no `ghost` — the word does not appear in the file. **The node's own telemetry says this in the tree, which is the strongest form of the evidence.** `src/cli/strblk.ts:2194` reports ghost status as `unknown` rather than a confident zero, with the reason written out: *"this node runs no Ghost Ledger: `HestiaNode` does not construct one, so the near-instant pre-confirmation path is not offered and nothing can be reconciled against a block here."* What a node *does* run is the **wire shape check** — `PROTOCOLS.ghost` (`PROTOCOLS.ghost` `src/network/protocol.ts:127`) is handled at `src/network/starw-node.ts:1840`, where all three receipt fields are required to be SHA-256 digests and the protocol is deliberately not relayed because *"a receipt has no signature on it, so nothing here can decide whether it is TRUE."* So the chain will **carry** a ghost receipt between peers and no node will **produce** one. So the live path through `sendInstant` is the refusal at `src/wallet/skidbladnir.ts:598`: ```ts if (!this.ghost) throw new Error('this wallet was built without a ghost ledger; use send()'); ``` **What that does and does not invalidate.** The code in §4.4, §4.7 and §4.8 exists, is tested, and says what those sections say it says; `projected()` really does narrow by the ghost's own `projectedBalance`, and `projectedNonce` really does refuse to sign when the two projections disagree. What is false is the implicature — that a holder on this chain is reconciling two in-flight projections today. They are not, because nothing they can run maintains the second one. Those three sections now open by saying so. **Why it belongs here rather than being left implied.** This section is titled *"Verified absences, not aspirations"*, and the two absences beside it — no watch-only mode, no multisig — are recorded with grep evidence for features that were never built. A 780-line admission path (`src/ledger/ghost.ts`, measured 2026-09-12) that *is* built, *is* described at length, and is reached only by a demo is the harder case and the one a register exists for. Grepping this book for a ghost-ledger absence returned nothing until now. **Unmeasured:** whether admitting the Ghost Ledger to a node path is wanted at all. §4.7's two-projection argument is a reason to think a node that ran both paths at once would need a reconciliation neither component currently has, and that is a design decision, not a wiring one. ### No surface can burn or sell a domain **Added after this chapter was written, and it is the sharpest gap in the volume.** The consensus half of §1.9 and §1.10 is complete: both record kinds exist, `Styx` screens both (`styxAdmitDomainBurnRecord` `src/hostless/styx.ts:1777`; `styxAdmitWnftTransferRecord` `src/hostless/styx.ts:1882`), `BlockchainCore` has a door for each (`submitDomainBurn` `src/core/blockchain.ts:4266`; `submitWnftTransfer` `src/core/blockchain.ts:4412`), and all three execution paths run one implementation. **Narrowed 2026-09-08 — the submission half closed, the signing half did not.** What stood here said "nothing a user can reach produces one", and gave three reasons: `Skidbladnir` has no method, `strblk` has no command, **and `JsonRpcSurface` exposes neither `submitDomainBurn` nor `submitWnftTransfer`**. That third reason is **no longer true and was the one that made this an architecture gap rather than a UI gap.** `JsonRpcSurface` has both (`submitDomainBurn` `src/core/rpc.ts:2335`; `submitWnftTransfer` `src/core/rpc.ts:2511`), and **Iris publishes both as public write methods** (`IRIS_METHODS` `src/network/iris.ts:1137`), so a client that can build the record can submit it over the network today. **The two reasons that remain are the ones about producing the record.** Verified by grep on 2026-09-08: the only callers of `signDomainBurn`, `signWnftTransfer`, `signWnftTransferAsSeller` and `signWnftTransferAsBuyer` in `src/` are Gungnir's own descriptive text — the owner's console *names* them (`src/gungnir/actions.ts:237`) — and the two integration tests. `Skidbladnir` still has no method for either (§4.9 lists the identity writes it does have, and neither is among them), and `strblk wallet` still has no `burn` or `sell` command. So the honest statement for an integrator is now narrower and more actionable: **a domain lock is recoverable in the protocol, submittable over the network, and not producible by any wallet this tree ships.** What is left to build is a signing method on `Skidbladnir` and a CLI command in front of it. Not a consensus change, not an RPC change, and no longer a missing door — a missing hand to open it with. ### `reconcileLocks` has no production caller, and neither has `reconcileDomains` The only callers of `StrDomainRegistry.reconcileLocks` (`src/identity/str-domain.ts:1933`) anywhere in the tree are `scripts/a1.mjs` and four assertions in `tests/integration/verify-identity.integration.test.ts`. Nothing in `src/` calls it. **Corrected 2026-09-12, in both directions.** What stood here said the method's own docstring claimed it "asserts on every checkpoint", and that **`strblk verify` does not call it — it calls `ledgers.reconcileDomains()`, which is a different and weaker check**. Both halves were wrong by the time they were read back: - The docstring was fixed. `reconcileLocks`'s comment now says **"It runs at no checkpoint. Nothing in `src/` calls this method"**, names `scripts/a1.mjs` and the integration tests as the callers, and states that the comments elsewhere in this file and in `handsal.ts` describing it as a standing assertion "mean exactly that much, and no more". - **`strblk verify` calls neither.** `cmdVerify` (`src/cli/strblk.ts:2217`) calls `chain.validateChain()` and nothing named `reconcile`. The only caller of `reconcileDomains` (`reconcileDomains` `src/core/ledger-manager.ts:1235`) in `src/` is one line inside `cmdDemo` (`cmdDemo` `src/cli/strblk.ts:6857`) — `line('domains reconciled', …)` at `src/cli/strblk.ts:6231`, under the demonstration command's printed headings. **There is no weaker check; there is no check.** The standing caller of all three whole-ledger sweeps is `scripts/a1.mjs`, which runs `reconcileDomains`, `reconcileLocks` and `reconcileRefunds` together under step 11, *"Everything still reconciles"* (`scripts/a1.mjs:333-351`) — a release exercise, not a node. The half-true version was worse than the plain absence: an auditor told that `strblk verify` runs a weaker check runs `strblk verify` and believes a weaker check ran. `ECONOMICS.md`'s whole-ledger invariants I7, I26 and I27 rest on this same reading and carry the same correction. The invariant it names is the one §1.10 rests on, and it does hold — by construction, because `applyDomainBurn` and `applyWnftTransfer` are its only writers and both refuse before moving anything if the two halves already disagree. But a comment asserting that a check runs is not the check running, and this is the second such comment on this path. ### ~~`reconcileRefunds` is named in the code and does not exist~~ — built The entry read: *"`BurnedDomain.lastRefundMinor` documents itself as read by `reconcileRefunds` … there is no `reconcileRefunds` in this tree."* It is `HelgrindGate.reconcileRefunds` now, and it is a **whole-ledger sweep** of the shape `StrDomainRegistry.reconcileLocks` set. **What it compares.** For every address that has burned at least one domain: the STR it holds locked on the native ledger must equal the sum of the locks its still-proved domains require. `YggdrasilLedger.lock` has exactly two writers (`applyRegistration` and `LedgerManager.registerDomain`) and two releasers (`applyDomainBurn` and `applyWnftTransfer`, which release and re-post in one statement), so an address's lock is a running total of the domains it holds and the registry is the record of which those are. **A burn that erased the registry leg and did not release the ledger leg leaves the first number larger than the second by exactly the refund that was not paid.** Both directions are refused and say different things: locked *more* is the holder's money being kept by the chain; locked *less* is a domain proved on a sybil cost that was given back. **What it deliberately still does not do.** It does not read `lastRefundMinor` back, and it cannot: a ledger lock is one number per address and not one per domain, so there is no line item to compare against. The field's own comment now says that rather than naming an assertion that never ran. It also sweeps only the addresses that have burned, which is the population where an unreleased refund can hide. **Where it runs.** `MEASURED`: nowhere on the block path, and nothing should put it there — it is O(burned addresses × proved domains) and the block path holds the invariant by construction. `scripts/a1.mjs` calls it beside `reconcileDomains` and `reconcileLocks`, which is the same standing the other two whole-ledger sweeps have. Whether a sweep belongs at a settlement checkpoint is a cost decision about every node on the network, and this closes the missing check rather than making that decision. The claim that justifies it existing at all is asserted by a test rather than by this paragraph: with a stranded lock in place, `reconcileDomains()` and `reconcileLocks()` both still accept, because from their side the burned entry is simply gone. ### `Hlidskjalf.search` answered "nothing on this chain matches" for a burned domain **Closed on 2026-09-07, and it is kept here because of what the false answer was.** One `Hlidskjalf`, one chain, two routes, and they contradicted each other. **Measured on the running Polaris testnet**: `/domain/STR.plbeta` answered 200 with the whole burn — the burner, height 4, the 1000 STR refunded, the cooldown ending at 1791363098283, the burner's address barred forever — while `/search?q=STR.plbeta` answered *nothing on this chain matches*. The reader is `Hlidskjalf.search` (`src/explorer/hlidskjalf.ts:5300`) and the branch that was missing is now at `:1723-1749`. The direction of the error is the whole entry. A search that misses a record is a gap; a search that answers **"the chain holds no record of that name"** is a *claim*, and the claim was false — the chain held a great deal of record of it, all of it folded into the state root under `BURNED-DOMAINS`. The not-found reply is the one reply on this surface that asserts an absence, so it is the one that has to be right (`:1755-1764`). It is also the name a person is most likely to type. Search is where somebody enters a name they remember, and a name you remember and cannot find is *precisely* a burned one. The `/domain/{name}` route already handled burns correctly — `Hlidskjalf.domain` (`src/explorer/hlidskjalf.ts:2109`) reads it through the `BurnedDomainsReader` the read model is given for exactly that purpose (`DomainsReader` `src/explorer/reader.ts:155`) — §1.9 is built on it — so this was that same defect one route further along. The fix reuses it: the hit carries `kind: 'domain'`, so it links to the page that already renders the burn rather than needing a route of its own. Two facts can be true at once and both are shown, in that order: a name can be burned **and** held again once the cooldown lifts, by somebody who is not the barred burner, so a name with both a current holder and a burn history returns two hits. ### `countRecords` and `recordPage` covered seven of the ten record kinds **Closed on 2026-09-07.** `BlockRecordKind` said seven, and the three it omitted were the three that had just landed: `Block` carries `domainBurnRecords`, `wnftTransferRecords` and `wrapRecords`, `countRecords` did not count them, and `recordPage` had no branch for them. The three sites are `BLOCK_RECORD_KINDS` (`src/explorer/types.ts:140`), `countRecords` (`countRecords` `src/explorer/hlidskjalf.ts:5548`) and `recordPage` (`src/explorer/hlidskjalf.ts:1848`). So **a block that burned an identity reported `recordCount: 0`** and rendered as an empty block. That is not a missing panel. It is the explorer asserting that nothing happened in a block where the most consequential thing on this chain did — a domain destroyed, a lock refunded, an address barred from a name forever (§1.9) — and a sale and a wrap rendered the same way (§1.10 and `ECONOMICS.md` §5). The fix is a list derived from `Block`'s own shape, checked against it by `tests/integration/explorer-record-kinds.integration.test.ts`, so the next record kind added to a block cannot be silently absent from `BlockRecordKind` (`src/explorer/types.ts:121`). The `recordCount` on a block summary now sums all ten (`blockSummary` `src/explorer/hlidskjalf.ts:1764`), and `SUB_RECORD_KINDS` in the HTTP surface is derived from the same constant minus `transactions` rather than written out again (`src/explorer/saga.ts:150-156`) — which is the shape of the fix that matters, because the original defect was two hand-written lists that had to be kept in step and were not. ### Also worth naming - ~~**`IdunnVault.releaseLock` has no wired caller** and desynchronises state if called directly.~~ **Corrected.** It throws unconditionally rather than corrupting state, and the cited test asserts the refusal. It still has no wired caller and should not have one: a bare release is not an operation. Since 2026-09-07 `burnMaster` is the wired one, called by `applyDomainBurn` — a domain lock is not refundable, it is recoverable only by destroying the domain. See the call-out in §1. - ~~**Lethe exports no seed-only vault open**, so §7.3 recovery is described and not implemented.~~ **Built.** `openVaultWithSeed(wrapped, seedHex)` opens the index with no wallet key anywhere and never touches the outer seed box; §7.3 records what it does and what it pointedly does not recover. Checked while building it: **Ariadne does not cover this case** — it derives the ACCOUNT key from a BIP-39 phrase and never touches `vault.seedHex`, which is `randomBytes(SEED_BYTES)`. Two different losses, two different answers. - ~~**`styxAdmitWrapRecord` is not re-exported from `src/hostless/index.ts`**, unlike the other three `styxAdmit*` functions.~~ **Corrected — and it was already fixed in commit `99ac0a6`, one commit BEFORE this chapter was last edited.** It is re-exported at `src/hostless/index.ts:37`. Kept in the register rather than deleted, because a book that records a defect the tree had already closed is its own kind of defect, and this one is the example. - ~~**`JsonRpcSurface` still has no `balance`, `nonce` or `transaction` method**, which is why `WalletChainReads` exists as a declared port rather than a scattered reach into `BlockchainCore` (`src/wallet/reads.ts:5-24`). An HTTP wallet must implement those four methods itself against the same semantics.~~ **Wrong as stated, and corrected here.** All three landed on 2026-09-07: `balances` (`src/core/rpc.ts:3952`) reports every ledger with its transferability and restriction, `nonce` (`src/core/rpc.ts:3994`) reports settled, next and queued, and `transaction` (`src/core/rpc.ts:4030`) reports `queued`, `settled`, `final` or `unknown`. **The docstring this entry was taken from said otherwise until it was corrected** — `src/wallet/reads.ts:5-24` read "`JsonRpcSurface` … has no `balance`, no `nonce` and no `transaction` at all", and it was the comment that was stale rather than the port, which is still the right shape for an HTTP implementation. It now opens *"the port that outlived the gap it was named for"* and states the correction in place, with the reason: *"a port that describes a hole the tree has since filled is the same defect as a comment that promises a check nobody runs — it sends the next reader looking for an absence."* Recorded here rather than deleted, because this is the second time in this book a comment asserting an absence outlived the absence, and the pattern is worth more than the one-line fix. - **`JsonRpcSurface.transaction()` reports `unknown` for a node's own accepted writes.** *Open.* It reads the last N sealed blocks and `BlockchainCore.mempool`, and on an **announcing** node a submitted transfer is in Rhea and in neither, so the RPC answers `unknown` about a write the node accepted seconds ago and is actively broadcasting. `unknown` is correctly documented as *not* a rejection, and that is the right answer about a stranger's transaction and a misleading one about your own. A wallet built on this surface must treat `unknown` as *this node has not looked where the write is*, never as evidence of anything; the failure mode is a user sending a payment twice. `GOVERNANCE_AND_OPERATIONS.md` Part XII carries the full entry and the cross-check Gungnir makes that the RPC cannot.