# How it works *Created by Alex M Stratulat and the SourceLess team.* This is the document to read first. It explains the whole system end to end, in the order the pieces actually depend on each other, and it introduces every house name in plain words before using it. Nothing here assumes you have read anything else. Where a claim has been measured, this says what measured it. Where something is built but not wired into a running path, this says that instead of describing it as working. The [book of names](../docs/NAMING.md) is the full register; the Codex site serves a searchable version of it at `/glossary`. --- ## 1. The one rule that makes this chain different **You cannot spend money until you have a name.** On most chains an account is an address and nothing else — a string of hex that appeared out of a hash. Here an address is where value sits, and the *identity* is a separate thing: an **STR.domain**, a human-readable name like `STR.sourceless`, held by exactly one account at a time and proved by an object on the chain called a **wNFT**. The ledger refuses a transfer from an account with no proved name. Not by convention — the check is in the code path every transaction crosses, and the refusal says so: ``` sender has no proved STR.domain; SourceLess requires one to spend ``` A name costs 1,000 STR, and that 1,000 is **locked, not spent**. Burn the name later and the lock comes back. A business domain locks 5,000 instead and carries a business's identity; a paid hostless space is meant to be owned by one. Any proved name, personal or business, may publish a free public hostless site (see `docs/HOSTLESS.md`). ### Why bother Three things fall out of it that are hard to get any other way. **An address is not a person, and a name is.** A counterparty who names your domain in an escrow has named exactly one holder. A counterparty who names your address has named a 13-character string, and §3 explains why that is weaker than it looks. **Spam has a floor.** Making a million accounts is free everywhere. Making a million *named* accounts costs a billion STR, locked. **Revocation is possible.** A domain can lapse, be burned, be sold, or be taken by governance with evidence. An address can do none of those things — it simply exists, for ever. --- ## 2. You are named the moment you first spend The rule in §1 has an obvious hole: a brand-new account has no name, so it cannot spend, so it cannot buy a name. Somebody has to pay you first, and then you still need two manual steps — claim the name, prove it — before you can move anything. **Nafnfestr** (Norse: *the fastening of a name*) closes it. When an account with no name tries to spend and can afford the lock, the block names it first, takes the lock, mints the wNFT, and then applies the transaction. One block, no second step. The name it gets is not chosen by anybody. It is **derived**: ``` identifier = base32( sha256( 'nafnfestr-v1' | genesisHash | address | settleHeight ) ) name = 'STR.' + identifier ``` That produces something like `STR.uj7la4jy5urn6vdxekrdeeogmeycofgwar66donind2daz3dziwq` — 52 characters, inside the 64-character limit. You can take a readable name later; the derived one stays underneath as the thing that binds. Three properties matter and each is deliberate: - **Every node computes the same name.** It is a digest over committed state, not a random draw. A random draw here would fork the chain over a string. - **Nobody can predict it in advance.** It depends on the height you settle at, which you do not control while you are grinding keys. - **It belongs to this chain only.** The genesis hash is folded in, so a name from one realm is not a name on another. **If you had already claimed a name and not yet proved it, the chain leaves you alone.** Intent is the one thing it cannot derive, so a booked name always wins. **An account that only ever receives is never named and never charged.** The toll falls where value leaves, which is where this chain has always put it. --- ## 3. Why the identity is the name and not the address An Asgard address is `zk13str_` followed by 40 hex characters, an underscore and a 4-hex checksum: a **160-bit** body, the SHA-256 of the public key truncated (`src/crypto/signing.ts`). Every address in Asgard's genesis has that form. Two different attacks live at that size and they cost very different things: | Attack | What it needs | Work | Verdict | |---|---|---|---| | Steal from a named victim | a second key deriving *their* address | 2¹⁶⁰ | infeasible | | Open one commitment two ways | *any* two keys deriving *one* address | 2⁸⁰, the birthday bound | above anything publicly known to have been done, and not a comfortable margin for a value that lives forever (CRYPTOGRAPHY book §1.3) | The second is not a theft. It is an attacker who commits to an address now and can later reveal either of two keys behind it — which breaks escrow, hash-locks, commit-reveal auctions and address-keyed vouchers. The software also has a shorter v2 format: `zk13str` followed by 13 base58 characters, which after the checksum is **68 bits**. There the second attack costs about 2³⁴ work, **about 2.9 GPU-minutes**. A chain fixes its format once, at genesis; nothing in this tree builds a v2 chain, and the only v2 switch is a Hostless keeper option (`strblk hostless keep --address-version 2`). Asgard is v1. On either format **the address is not the identity**. An attacker who grinds two keys onto one address still cannot make the chain issue one domain to two holders, and cannot pre-grind a name that does not exist until the moment it settles. There is also a plainer reason to use the name: it is readable and hard to mistype, and an address is a 53-character string. > **The part that must not be softened:** a name you *chose* is not a binding component. If you > pick `STR.sourceless`, so can an attacker. Anything that must not be opened twice binds the derived > component from §2, or it binds nothing. The full argument, including what it does not fix, is in [the design record](design/NAFNFESTR_IDENTITY.md). --- ## 4. There are no transaction fees Not "low fees". None. A transfer costs the sender nothing. Contract execution still costs something real, so it is paid for differently. **Post-mining** credits the execution cost to a pool rather than charging it to the sender: ``` postMined = min(executionCost, ceilingPercent% of the transaction amount) ``` That newly-minted amount goes to the **Feeless Pool**, whose address is a hash — no private key exists for it, and none can. Two of its three exits are sealed in code. The third is a governance burn that names no beneficiary and cannot be made to. **What this buys and what it costs.** It buys a chain where a small payment is not eaten by its own fee, and where nobody bids against you for block space with money. It costs the usual thing fees are for: there is no price signal throttling demand, so the protections against flooding are structural instead — you need a name to spend, names cost 1,000 STR locked, and the network layer meters every peer in three separate cost classes. --- ## 5. Seven ledgers, not one balance An account holds a balance on each of seven ledgers independently. Each has its own mint authority and its own rule. | Token | What it is | |---|---| | **STR** | The native unit. What you pay with and what a domain lock is denominated in. | | **CCOS** | The financial ledger. A transfer must be marked `purpose: 'financial'` or it is refused. | | **WSTR** | Wrapped STR. One WSTR exists because one STR was locked in the Echo vault. | | **ARSS** | Paid per block to the machines that run the network, by node class. | | **STR_USD** (`$TR`) | The stable unit. Only the Stable STR Pool may mint it, gated by a quorum of declared attestors. | | **WNFT** | The object that proves a domain. Held, transferable, one per name. | | **ESTR** | Energy STR, the energy token. | Two fixed relationships are protocol, not markets: **1,000 STR = 1 CCOS**, and the medium price. Both live in one definition that everything else reads from. The ledger holds `lock` and `release` beside `transfer`, which is how a domain lock and a validator bond are held without leaving the ledger. There is also a rule that a **retired address can never be credited again** — see key rotation in §8. --- ## 6. What happens when you send money 1. **You sign it.** The signature covers the whole payload *and* the genesis hash, so a transaction signed for one chain is invalid on every other chain — including a fork of this one. 2. **A node accepts it into the mempool** (**Charon**), which orders deterministically: each sender's earliest timestamp, then sender, then nonce. Two nodes given the same set produce the same order. 3. **It is gossiped.** **Ratatoskr** carries it, metered per peer by **Gleipnir** in three cost classes — traffic, handshakes, and raw bytes charged *before* a frame is even decoded. 4. **A producer seals it.** Whose turn it is comes from **Tyr**: `slot = floor((now − epochStart) / slotMs)`, `leader = roster[slot mod n]`. A block from a non-leader is refused, and a leader sealing twice in its own slot is refused. 5. **Everybody else validates it** by executing the same transactions in the same order against the same state and checking they arrive at the same state root. **An idle chain seals an empty block about once a minute.** With nothing held anywhere, the slot's leader seals a **heartbeat** — a block that carries no record — once the head is 60 seconds old (`heartbeatDue` `src/node/hestia.ts:4690`), so an idle chain is not indistinguishable from a broken one. It is a floor and not a cadence: only a reachable leader can seal, so the gap is often longer. Measured on Asgard on 2026-10-29 over 506 blocks (heights 16609 to 17114, read with `blockByHeight`): 505 were heartbeats, and the gap had a median of 64 s and a maximum of 1,390 s. *This paragraph said "a node does not seal empty blocks" until 2026-10-29; that stopped being true when the heartbeat shipped on 2026-10-11.* A chain at height 0 still sits there: a heartbeat needs a head to be old. ### When is it settled Nothing here is settled the instant it is sent, and the documentation does not pretend otherwise. A transaction is carried when a block holds it, and **settled at depth 12**: 12 confirmations by default, governable. The API names the in-a-block state `settled` and the depth-12 state `final`; before value moves, act on `safeForValue` (API_GUIDE §1.5). Underneath, **Norn** decides which of several candidate chains is the real one by the slots it fills: the most distinct slots filled after the fork point wins, and a reorg is a full replay from genesis into a throwaway chain that must validate completely before anything is swapped in. A reorg that half-applies is worse than the fork it was meant to heal. **The `final` status is a depth, and since 2026-10-10 it is not a promise that the block cannot be reorganised** (`finalityStatus` `src/core/blockchain.ts:14803`). The line that actually refuses a reorganisation is a second one, the **irreversible line**, and it rises only at a height where the node measured a quorum of **Valkyrie** attestations — a seated validator's signed judgement that a block is good (`irreversibleHeight` `src/core/blockchain.ts:13372`; fork choice reads it as `irreversible` `src/core/skuld.ts:1452`). On Asgard that quorum is 876 of 1,313 seats and has never been reached, so the line is **-1** and protects no height; a branch forking below the depth line is judged by fork choice on its merits, and every node ranks branches in the same order, so they converge rather than refuse each other. Live `getStatus` on 2026-10-29 at height 17109 answered `finalityBacking: { depthLine: 17098, irreversibleLine: -1, backed: false }`. **Read `finalityBacking.backed` before treating a payment as irreversible.** At the gaps measured above, the twelve-block depth itself took a median of about **14 minutes** after the block carrying a payment (11 to 36 minutes). *Until 2026-10-29 this section said attestations do not yet gate settlement and depth does. Depth still decides what is reported `final`; it stopped deciding what is refused on 2026-10-10.* --- ## 7. Who is allowed to seal **Einherjar** is chain state: the genesis node set plus every change a block has carried since. It answers "who may seal at height *h*". **Gladsheim** derives this epoch's actual seating from it, binding at 128-block boundaries so the roster cannot shift underneath a block being judged. Two consequences an operator meets: - A node holding a **seat key** seals when its slot comes round. A node without one validates and relays and never proposes. - Sealing two different blocks in the same slot produces **Gjallarhorn** evidence, which carries both signed headers. **Nidingr** turns that evidence into an ejection record — and it carries no vote, because the evidence *is* the decision. **Fenrir** burns the bond. Separately, **Ragnarok** halts the chain: either a governance action at a future height, or one operator's local decision to stop. A halt only ever moves *earlier*, and there is deliberately no resume action. --- ## 8. Keys, and what happens when you lose one An account can be a **Gemini** pair: a classical key and a post-quantum key (ML-DSA-65), with the address being a hash over **both** public keys. The pair is what the address commits to, so a future break of one does not silently become a break of the account. The browser wallet makes a classical ed25519 account; the command-line wallet can make either. **Key rotation** (`Hamskipti`) moves an account's authority to a new key. The name survives and the address changes; the domain, the wNFT, the lock and every balance follow. It takes two signatures, old key and new, and the retired address can never be credited again. At rest, keys are sealed by **Fafnir** — scrypt and AES-256-GCM. **Horkos** refuses to start a production node claiming a validator seat while either keystore is in the clear. > **There is no escrow and nobody to ask.** Lose the file, lose the money. Lose the passphrase, > the same. A wallet created with `--words` has a 24-word recovery phrase; one created without has > nothing but the file. Read `strblk wallet recovery` before you need it. The keys that run the network itself are a different matter. Asgard's were produced outside this repository and cannot be derived from it (**Fulla** is the code that keeps a genesis public-only), and treasury movements require several independent signers. A seat key lives on exactly one machine, and **Hofvarpnir** is the check that a node claiming a seat can prove it holds that seat's key; one that cannot refuses to start. --- ## 9. Smart contracts Contracts are written in **AresLang**, compiled to **ARES** bytecode and run on the **STARW VM**, gas-bounded. ``` contract Tally { state count: uint = 0; event Bumped(by: address, total: uint); fn bump(step: uint) -> uint { require(step > 0, "step must be positive"); count = count + step; emit Bumped(caller, count); return count; } view fn total() -> uint { return count; } } ``` Two things are unusual and both are deliberate: **A deploy record carries the SOURCE, and every node recompiles it.** That makes the compiler a consensus rule — which is why its version is registered in **Logretta**, the register of rule versions and the heights they take effect at. A node on a build that does not implement a rule version refuses by name rather than guessing. **A deploy and a call are inputs that go in a block, not things the RPC does on the spot.** Both must be signed. `simulateCall` runs against current state and commits nothing — it is the honest way to ask "what would this return" — while `callContract` returns a *receipt*, not a result. [Deploying a smart contract](DEPLOYING_CONTRACTS.md) is the worked example, end to end, with commands that were run rather than commands that ought to work. --- ## 10. Hostless: your own dedicated hosting space **Hostless** is your own dedicated hosting space: encrypted by the chain, distributed by the network. One of them is a *hostless space*. In plain terms, its content is encrypted on your own device, before it leaves it, the chain records who may read it and holds none of it, and the nodes that keep it get only the encrypted pieces. **Today one machine holds public content; more keepers are being added.** **Oort** is the record of each hostless space. The chain holds *who may read*, the price, and a commitment to the content — never a byte of it. - Content is split into fixed-size **Accretion** chunks, each Merkle-committed and sealed with a hybrid post-quantum key wrap. The key is never in the swarm. - **Roche** moves the chunks between nodes. It takes no key, imports no cipher and decrypts nothing: it verifies before it stores, and re-verifies against the root the chain holds *now* before sending. - Access is a **signed grant**, never a password, and grants expire at a **height**. Revocation is not deletion — anyone who already holds the bytes still holds them; what changes is what the chain will vouch for. - **Lagrange** is a light station you run yourself: it derives the anchored root from its *own* replay rather than taking a node's word, and says out loud whether you are `empty`, `unconfirmed` or `confirmed`. **STR.talk** (**Occultation**) is the same idea for messages. The chain records that a message passed and never what it said. Membership change is always a rekey. --- ## 11. Three kinds of node | Class | Keeps | Seals | |---|---|---| | **Pulsar** | a constant-size checkpoint, no chain | never — its class policy says so | | **Quasar** | full state | in turn | | **Supernova** | full archive | in turn | The budget is about the **retention account** — the serialised bytes a node *chooses* to keep — and not process memory. A measured pulsar holds about 94 MB resident while its accounted retention is 25 KB. Both numbers are real and they answer different questions. What holds a default node inside its budget is four structural caps: the accounting (**Mnemosyne**) observes, it does not refuse. Its enforcing half is **live, opt-in** with `strblk node --mnemosyne-enforce` or `SOURCELESS_MNEMOSYNE_ENFORCE=true`: a node over its budget then sheds the cheapest-to-rebuild items it holds (expired peer and space records, then the oldest gossip seen-cache ids) and reports each pass. It never sheds chain, ledger, checkpoint, mempool or sessions, and it still refuses nothing. At a class's own ceiling the caps already hold every node inside, so it is a backstop that sheds nothing. It acts when `--mnemosyne-budget BYTES` sets a tighter budget for a smaller device. --- ## 12. What you can look at | Surface | What it is | |---|---| | **XPlorer** | The block explorer, covering every ledger. Can follow the chain as its own read-only node. Can show a "Sign in with your STR.domain" link to the holder's door, and stays GET/HEAD either way. | | **Thrymgjoll — the holder's door** | Sign in with your STR.domain to watch the chain as yourself: your holdings, your spending authorities and your **recent transfers**, each linking out to XPlorer. It holds no key — your wallet signs a sentence it shows, and it checks the signature against the chain. Signing in decides *whose view* it is and authorises nothing. | | **Gungnir** | The operator console. Every act is signed by a named principal, decided by **Themis**, and written into **Argus** whether allowed, denied or failed. | | **IgniteHeX** | The operations dashboard. | | **Browser wallet** | The tab makes the key, holds it and signs with it. The serving process never sees a key. Its Activity now shows what an address **received**, not only what this window sent, read from the chain's own `addressHistory`. | | **Astrolabe** | The read-only operator endpoint: GET and HEAD only, loopback by default, `/metrics` beside it. | | **Codex** | This documentation, searchable: `node docs/site/codex.mjs --open`. | | **Observatory** | Everything running on your machine, on one page: `node deploy/local/observatory.mjs --open`. | A convention worth knowing because it runs through all of them: **an unmeasured value is reported as `unknown` with a reason, never zero-filled.** A metric that could not be measured is *omitted* from `/metrics` rather than exported as `0`, so absence is answerable by the same primitive as a dead process. --- ## 13. What is not finished Stated here rather than left for you to discover. - ~~**Mainnet has not launched.**~~ *Corrected 2026-10-29:* **Asgard (chain 1313) launched on 2026-10-05**. The genesis is a file dated 2026-09-24, not compiled in; the build pins its hash and refuses any other file. What did not come with the launch is in [MAINNET.md](MAINNET.md) §1. - **The ZK13 reference provider is a reference implementation.** Prover-chosen statement, no anonymity set, no nullifier ledger — and nothing on any path produces or verifies a proof from it. **Talos** exists to keep it out of production. The ZK13 ring is a different construction: a block may carry a ring attestation, and a node refuses a block with one that does not verify. - **Quorum gates nothing yet, on Asgard.** Valkyrie attestations are collected and the irreversible line waits for a quorum that has never been reached, so no height is protected from a reorg (§6). - **Post-quantum is declared in more places than it is enforced.** The gap is measured in [PQ_ENFORCEMENT_GAP](design/PQ_ENFORCEMENT_GAP.md). - **Retention budgets are observed, not enforced** (§11). - **Several components are built and unreached**: Arecibo's offer path. Sleipnir's lookup runs only when an operator opts in with `--peer-lookup`. Hvergelmir (a faster state store) is no longer one of them: it backs the node's chain snapshot, opt-in with `SOURCELESS_HVERGELMIR=true` or `strblk node --hvergelmir`, and is off by default. - **The published site is a static front end** with no chain behind it. Each volume of the [technical book](book/README.md) states the limits of its own layer in full, with a file and a line for every claim. --- ## 14. Where to go next - **Run it:** [Run it yourself](RUNNING.md) — clone to a three-node network with an explorer. - **Build on it:** [Deploy a smart contract](DEPLOYING_CONTRACTS.md), then the [JSON-RPC reference](JSON_RPC.md). - **Go deeper:** the book — [Consensus](book/CONSENSUS.md), [Ledger and state](book/LEDGER_AND_STATE.md), [Cryptography](book/CRYPTOGRAPHY.md). - **Look up a name:** the Codex at `/glossary`, or [NAMING.md](NAMING.md). A line nobody published.