Keep it light: a small Manifest V3 extension, the Seedelf crypto and transaction building we already have in Rust (compiled to WebAssembly), and Koios for chain data (on mainnet, the wallet’s own data layer first). Nothing else unless it earns its place.
flowchart LR
UI["UI<br/>(full tab or side panel)"] -- "typed RPC (a port per request)" --> SW
subgraph SW["Service worker"]
Vault["Vault + lock"]
Wallet["Wallet state"]
Crypto["seedelf-crypto (WASM)"]
Tx["Tx building + signing"]
end
SW -- "fetch" --> Koios["Koios<br/>(mainnet: the data layer first)"]
SW -- "fetch" --> Collat["giveme.my collateral"]
SW -. "fetch, only when used" .-> Others["CoinGecko (mainnet), Minswap's aggregator,<br/>the IPFS gateway"]
Page["dApp page"] -. "CIP-30 via content scripts<br/>(only when the user turns it on)" .-> SW
status request), then refreshes whenever the worker broadcasts state-changed, for example on auto-lock. This is Lace’s model, minus its framework.
UI_PORT, ui/background.ts), which only the worker listens for (ui-port.ts: this extension’s own pages only). runtime.sendMessage would also hand it, and a password or the phrase in it, to every other open wallet page. The broadcasts carry nothing a page could misuse, so they stay messages: state-changed and dapp-changed nothing at all, and messaging-changed a network’s name alone.no-wallet, locked and unlocked (extension/src/background/wallet.ts).withKeys, withAccount and withStoreKey each run their task in the wallet’s one queue (serial in wallet.ts), so calling any of them from inside such a task waits on itself, and every request behind it waits too. Pass the task what it needs from the enclosing call instead: balances.ts’s held takes activeAccount as an argument for exactly this.chrome.alarms.
await, or the event that woke the worker is lost.chrome.runtime.getPlatformInfo between its slices, at most every 10 s, and only while the work is still wanted, so the work isn’t lost partway; a certificate’s or a withdrawal’s post makes no such call (solve’s keep, chunk 55’s 55e), and one a stop cuts short waits, queued, for the next lane. There’s no timer: the solve’s own loop makes the call (solve in messaging.ts, keepAlive in sw.ts), so every way out of the loop ends it (a nonce found, the crate’s refusal, a throw, the relay’s stop), and a lock or the wallet removed gives the work up within 10 s and a slice. What “wanted” asks differs by the work: a first message’s stamp asks only that a wallet is still unlocked (unlockedNow), so Messages’ switch turned off doesn’t end it; a post’s work asks whether the post may still go (mayAsk), so its switch turned off, or another phrase unlocked, ends it too. Nothing caps the attempts: a post’s work is 26 bits at most, about 30 s on average, a first message’s 24, about 7 s, and a run solves every waiting envelope (tests/messaging-solve-keep-alive.test.ts). And the connector’s bridge pings every 20 s while one of a page’s calls waits (content/bridge.ts): a site’s prompt left open keeps the worker up for as long as it’s open, through a lock, and an answer, its window closed or the page gone ends it. tests/worker-messaging-wiring.test.ts fails if a timer-driven trivial API call, an interval or a kept port comes back to the worker.
keep-warm.ts, 1.10.0’s second review): one extension API call every 20 s while the wallet was unlocked with a Messages switch on, so that every wallet’s reads came from a running worker. Chrome’s migration guide (“Keep a service worker alive continuously”) allows that only on managed enterprise or education devices: “It is not allowed in other cases and the Chrome extension team reserves the right to take action against those extensions in the future.” The owner: “I do not want any issues with the chrome extension because of this. If solving that issue is removing it then so be it.”"type": "module" in the manifest).
sw.js plus a shared chunk.import() and top-level await are not allowed in service workers, so WASM initializes lazily: loadWasm() in extension/src/background/wasm.ts.importScripts preloading isn’t needed.action has no default_popup. With the wallet set to open in a tab (the default), a click reaches the worker’s action.onClicked, which brings back the wallet’s open tab (runtime.getContexts) or opens one. Set to the side panel, Chrome opens the panel itself (sidePanel.setPanelBehavior), and the worker isn’t asked. The choice is seedelf.openIn in chrome.storage.local (shared/open-in.ts), and it’s applied again whenever the extension installs or starts.chrome.storage.session (seedelf.entropy), along with the time of the last activity (seedelf.lastActivity) and of the unlock itself (seedelf.unlockedAt, also written at create and restore, for the unlock’s fresh draws: see Lovejoin). That storage is in memory only, never written to disk, cleared when the browser closes, and not readable by content scripts.chrome.storage.onChanged: its events carry session storage’s changes, the entropy among them at every unlock and lock. The UI follows chrome.storage.local.onChanged alone.TRUSTED_CONTEXTS at every start (chrome.storage.<area>.setAccessLevel; Chrome’s default leaves local storage open to content scripts). The connector’s bridge runs in every site’s renderer and never reads storage, so a renderer a site took over can’t take the sealed vault through it to guess the password offline, or change the unsealed settings. A Chrome that won’t set it on local storage keeps the connector off: its scripts are never registered, and the status says why (connectorBlocked: "storage", storage-access.ts).seedelf.sends (and, on a lock, the declined sites: below): when the wallet last sent something (its own sends and sites’ through the connector), and when session storage began. Two times, nothing of what was sent, kept so Lovejoin’s quiet rule holds across a lock (independent review M10). A trap and Remove wallet keep it too; a closed browser or an update clears it. A lock and a trap keep seedelf.dapp.refused too, the sites the user declined and their waits (no title, nothing about money), so a lock doesn’t let one ask at once, even a lock made by a worker that hasn’t read them yet; Remove wallet doesn’t (the blind test’s cross-area review).try: a WebAssembly instance that trapped refuses free(), and nothing it does can keep the wallet unlocked (the launch review, #17).isTrap in wasm.ts) locks the wallet and replaces the instance with a fresh one in place (freshWasm, wasm-bindgen’s reset function, which wasm/build.sh asks for). The old instance’s key objects stop working, so the user unlocks again. A stack overflow inside WebAssembly counts as a trap too: V8 throws a RangeError for it, as for JavaScript’s own, but it leaves Rust’s stack pointer behind, so the next calls would trap. It’s told from JavaScript’s own by a WebAssembly frame on its stack (1.6.0’s release review, 314-wasm#0).runs.ts) lock the wallet on a trap from any step, stop the alarm and end the run, so nothing more runs on the broken instance; a refusal still lets the other network go on. Discovery’s pool read (readSet), Bring every box back now’s pool read and withdraws, a box’s own withdraw, watchOf’s and mixBoxes’ pool reads, Activity’s read of the pools’ mix boxes, the Lovejoin page’s progress (sending a public mix, lookFor), the 5 ₳ pool’s read (collateralPool’s split), a review’s one read of every pool (rooms(), which its price, its token’s pools, its card’s mark and collateralRoom read: 1.8.0’s review of its fixes, r2-worker#1) and a funding’s look for it (tailReserve) all rethrow a trap, and never keep it as a run’s reason. A withdraw’s bookkeeping after its submit, and Home’s watch of a public mix just sent, run first, then the trap is rethrown. So do the three runs a page’s request starts and doesn’t wait for (unawaited in handlers.ts): a restore’s scan, the pump Home’s pending-tx poll starts, and Bring every box back now’s first run. Any other failure of theirs is their own, but a trap locks the wallet, as under answerUi, rather than leave it unlocked on the broken instance (1.6.0’s release review, the docs check’s finding 1). The alarm’s sending of a session’s chain, and its look for a return nothing steps, rethrow a trap too (runAll’s unlessTrap), and a chain’s sending (a session’s pump, a public mix’s pumpPublic) rethrows one before it records anything, so a chain a trap stopped reads as cut by the lock (CHAIN_CUT), never stopped for the trap’s raw word (1.7.0’s release review, x-merge#1; its review of the fixes, worker#1). So does Bring everything back’s Send (claimSubmit), as its build does: no other session’s return goes out on the broken instance (worker#0).answerSite) or as the user approves a site’s request (DappService.answer). The site hears only “Seedelf Wallet couldn’t answer this request.” (independent review M15). A trap inside the wallet’s queue, while a site’s transaction is read or signed, locks it there (Wallet.serial), as for any request.wasm-bindgen.
seedelf-crypto/src/lovejoin.rs).seedelf-wasm), a Cargo workspace member.
build.sh produces an ES module with the wasm-release cargo profile: about 3.2 MB, 982 KB gzipped (see Transaction building).getrandom 0.2 with the js feature, set in the wasm crate: crypto.getRandomValues. If it ever fails, the draw panics and the call throws; nothing goes on with zeros.zeroize (volatile writes the compiler can’t drop), as far as the wallet’s own code reaches:
free(): the Seedelf scalar, a Cardano account’s keys and the one-time accounts’ sit in an allocation of their own that’s overwritten in place before it’s released (Wiped in wasm/src/lib.rs). wasm-bindgen’s free() moves an object out of its cell before it’s dropped, so a wipe in the object’s own Drop ran on a copy and the cell kept the key after a lock (1.10.0’s second review; “wipe themselves” was the claim here, and it didn’t hold for the cell). bip39’s zeroize feature wipes its mnemonics.scrubStack, the module’s scrub_stack): calls leave copies there of the keys they worked with and of what the keys came from (after an unlock and a lock with nothing between: a one-time key, the BIP39 seed and the master key, whole). It overwrites the top 512 KiB of the module’s 1 MiB stack, and the worker calls it once after a lock’s free()s and once after each derivation of keys, an unlock’s or a second account’s (wallet.ts free, derive, stackScrub): the next call that builds something can copy stale stack bytes into the heap, where no scrub reaches (found: 8 bytes of the BIP39 seed on the heap after a private transfer built straight after an unlock; with the scrub after the derivation, none). A module without the export locks as before.seedelf-crypto makes, the BIP39 seed, the HKDF key and output, and the Cardano master key. The HKDF expand has its own HMAC for this: cryptoxide’s keeps its key in vectors it frees unwiped.wasm.ts renewWasm, replace; 1.10.0’s second review): a later call can copy bytes an earlier call left on the stack into the heap, where neither free() nor the scrub reaches (the review found, after a lock, 16 bytes of the stake key’s signing scalar, 16 of payment key 0/0’s extended key, and 6 then 4 more bytes of the Seedelf key). So a lock’s last step, after the free()s and the scrub, puts a fresh instance in the old one’s place with the glue’s reset function and overwrites the old one’s whole memory with zeros (wallet.ts free, the renew the worker wires). The old memory is all zero after a lock, and the new instance holds no run of any key. A trap’s replacement zeroes the old memory too (freshWasm). A glue built without the reset function isn’t replaced at a lock, and the scrub is what there is then.wasm/tests/free_wipes_key.test.mjs, tests/wallet-lock-scrub.test.ts, tests/lock-renews-wasm.test.ts and tests/wasm-renew-glue.test.ts hold what is.CC_wasm32_unknown_unknown=clang, because blst is C code.AR_wasm32_unknown_unknown=llvm-ar, which is llvm-ar-18 on Ubuntu.wasm-bindgen-cli pinned to the crate’s wasm-bindgen version.seedelf-platform/Cargo.lock is tracked, and build.sh and CI build and test with --locked, so the crates are the ones it records. seedelf-platform/rust-toolchain.toml pins Rust (1.98.1, with the wasm32 target), and CI installs the same. build.sh remaps the workspace, the target folder, Cargo’s registry and Rust’s sysroot (--remap-path-prefix), so no path on the builder’s disk goes into the module, and it refuses a module that still carries one. Nothing pins the C compiler: blst’s C goes through whatever clang is on PATH, and another major version gives other code, so build.sh ends by printing it (C compiler: …) for the release record (development.md).script-src 'self' 'wasm-unsafe-eval' to load WebAssembly.@noble/hashes (Argon2id, BLAKE2b, HKDF-SHA-256)@noble/ciphers (ChaCha20-Poly1305, and XChaCha20-Poly1305 for the private records)Decided: Rust (Pallas 0.35), compiled to WebAssembly.
TransactionBuilder has no reference inputs, so we would have had to port the Seedelf logic by hand.What’s built on it: move-in, creating a Seedelf, transfer, withdraw, removing a Seedelf, a send from the Cardano account, staking (delegate, vote, withdraw rewards, stop), a private session’s funding and return (Minswap builds the swap, and the wallet only signs it), Lovejoin’s deposits, mixes and withdraws, the account’s own DRep’s registration, update, retirement and votes, and a session’s cancel of its DEX orders (seedelf-core/src/orders.rs).
seedelf-core compiles to WebAssembly. seedelf-koios sets connect_timeout (and timeout) on its HTTP client, and reqwest’s browser build has neither, so both are gated with #[cfg(not(target_arch = "wasm32"))].Cargo.toml’s wasm-release comments. Most of its growth is the script evaluator (Aiken’s uplc), which Lovejoin’s chains and the local measure need: with only the payment and staking builders it was 1.3 MB (439 KB), and the evaluator is most of the step to 2.6 MB (797 KB, 2026-10-04), the transaction decoder 15 KB of it. It’s loaded from the extension itself, so this only costs a moment on the worker’s first start.
build.sh uses the workspace’s wasm-release profile: opt-level = "z", LTO, one codegen unit, stripped. Against the plain release profile it cuts the module by almost two-thirds (7.1 MB to 2.6 MB, 1,474 KB to 797 KB gzipped, 2026-10-04) at the same speed. The BLS arithmetic is blst’s C, and a proof takes about 1.8 ms either way.checked_* and refused in words: the workspace’s CLAUDE.md says where the line falls (1.7.0’s release review, pr332#0).wasm-opt was measured on top and left out: it made the file 9 % smaller but its gzipped size 6 % larger, and the Web Store’s download is a zip.wasm/bench.mjs measures the size and the speed of a build.seedelf-core/src/build.rs. A builder takes chain data the caller already has (protocol parameters, UTxOs as Koios returns them, deserialized into the same seedelf-koios types) and returns an unsigned transaction.
external_sweep: the CLI’s external sweep, a thin run() around it.move_in and account_send: the web wallet’s move-in and a send from the Cardano account to one address (see flows.md). Each is one account payment to a Payee: into Seedelf (deposits, tokens 20 to an output, under your register or someone else’s, which must pass is_payable) or to an address on this network (is_payable_address, one output). They share the UTxO choice and the change, and may spend any UTxO they’re given: the web wallet leaves out its collateral and the UTxOs the user locked (coin control). A pure 5 ₳ UTxO is spent like any other, unlike the CLI’s collect_address_utxos, which never spends one.
account_send_many pays several recipients at once, each an AccountPay: a Payee, an amount and its tokens, in order before the change. Their tokens are checked together against what’s held. Max pays a single recipient. The web wallet builds every send with it, to addresses and to Seedelfs; account_send is its one-address case.mint: the CLI’s util mint, a thin run() around it, and the web wallet’s stealth Create a Seedelf.transfer and transfer_from: the CLI’s transfer, a thin run() around them, and the web wallet’s Send to a Seedelf.
is_payable refuses a register that a payment would be lost under: points that don’t decode, torsion points, or the identity. is_valid alone lets the identity through, and anyone can prove the zero key behind it. Both mints use it too.transfer_most is private Send’s Max (blind test §9.6): one Seedelf is paid everything the given inputs hold but the fee, with the tokens given, and the tokens it doesn’t send stay as change with exactly their minimum (ScriptSpend::pay_rest). max_inputs picks those inputs, as one transaction’s Max does: the ones holding the tokens sent, then the largest, at most 20, never one whose tokens wouldn’t fit or the evaluator can’t take, and says how many it left. The web wallet’s Max goes in parts over every UTxO (A payment in parts, below).sweep, sweep_from, sweep_many, sweep_many_from, sweep_all and sweep_most: the CLI’s sweep, a thin run() around them, and the web wallet’s Withdraw. sweep_many pays several addresses, each an AddressPayment, from one selection of inputs; sweep is its one-address case, and sweep_many_from spends exactly the inputs given. sweep_all sends everything, every token too (Make public’s Max); sweep_most the most a payment of some tokens can be, the others staying, which Make public’s shortfall says (blind test §4.4). is_payable_address accepts any Shelley address on this network, as the ledger does: never a stake address, a Byron one or another network’s. Only the payment part says whose an address is (address::is_key_address): a key address staked by a script (addr1y…) is an ordinary payee. A script’s address (address::is_script_address, its payment part a script) is paid too, with no datum, which some scripts can never spend and some let anyone take: the extension flags it (destination.ts script) for a warning on the form and the review, and the CLI’s sweep and remove print one. Until chunk 51 (r2a#1) it refused any address with a script in either part (Pallas’s has_script), and so did the CLI’s payer checks (create, fund, util extract), which now ask only for a key’s payment part. WebAssembly’s payable_address refuses a Byron address in words of its own.remove: the CLI’s remove and the web wallet’s Remove a Seedelf. It spends the UTxO holding exactly one Seedelf and burns it (ScriptSpend::mint with −1).account_mint: a Seedelf paid by the Cardano account (the CLI’s create, which still builds inline in the CLI).
account_staking: a staking transaction from the Cardano account, an account payment to Payee::Nobody: its inputs pay the fee and any deposit, and everything else is change to 0/0.seedelf-core/src/staking.rs). pallas-txbuilder can stage neither (0.33, 0.35 and 1.4 all write None for them), so the transaction is built as usual, then Staking::patch decodes the body, sets them, encodes it again, and puts the new body hash into the BuiltTransaction. Signing always comes after the patch, so BuiltTransaction::sign signs the right hash; a patch after signing is refused. Pricing patches each draft too, and counts the stake key’s witness.
Staking::of(key, action, state, key_deposit) gives the certificates an action needs: StakeRegDeleg or VoteRegDeleg (register and delegate in one certificate) for an unregistered key, StakeDelegation or VoteDeleg for a registered one, UnReg with the deposit paid to stop. A withdrawal takes the whole reward balance; it’s refused while the vote isn’t delegated (Conway’s rule since its second phase).Staking::withdraw rides along with move_in, account_send and account_mint: the rewards count towards what the inputs pay, value being inputs + withdrawal + refund = outputs + fee + deposit.drep1… and drep_script1…) are read there too, and written back the way Koios names them.tests/fixtures/probe-staking.mjs): every kind of staking transaction decodes on the node’s Conway decoder, and an account-paid mint with a withdrawal passes the real Seedelf policy at the same budget as without (72,835 memory, 21.4M steps).Staking::drep(stake, stake_state, drep, drep_state, action, params) gives RegDRepCert with drep_deposit (and the stake key’s VoteDeleg or VoteRegDeleg to it after, when the account’s own vote goes with it), UpdateDRepCert, UnRegDRepCert with the deposit paid (and VoteDeleg to always abstain after, when the account’s vote was the DRep’s), or votes. Staking carries votes beside its certificates, and patch sets the body’s voting_procedures (Voter::DRepKey to each GovActionId’s Yes, No or Abstain, no anchor) too. signers() counts keys, not “any”: the stake key for a stake certificate or a withdrawal (stake_signs), the DRep key for a DRep certificate or a vote (drep_signs), so a registration with the account’s own vote is priced and signed with both. ProtocolParameters::from_koios reads drep_deposit as an Option, since only a registration needs it, and that refuses without it. Checked on preprod without spending anything (tests/fixtures/probe-governance.mjs): a registration with and without the account’s own vote and with a profile, an update, a retirement and a vote on every live action each decode on the node’s Conway decoder, at 0.17–0.18 ₳ of fee.seedelf-core/src/note.rs): Pallas can’t stage metadata either. Note::new takes one line of at most 500 characters (MAX_NOTE_CHARS, what Activity keeps of a note; 64, Lace’s one line, until chunk 51, gap-g8#3), refusing control characters, and splits it into CIP-20 lines of at most 64 bytes, at a space when it can: the ledger’s limit is each line’s 64 bytes and the transaction’s 16 KiB, not a count of lines. Note::patch sets the auxiliary data (a plain metadata map, {674: {"msg": [lines]}}) and its hash in the body, after the staking patch and before signing; pricing patches each draft too, so the fee pays for its bytes. account_send_many takes an optional note; nothing else does. Checked on preprod without spending (tests/fixtures/probe-note.mjs): a send with a note, with one of two lines, and with the rewards too, each decodes on the node.deposit_outputs (contract outputs under fresh re-randomizations, tokens 20 to an output), and settle_fee, which signs each draft with one throwaway key per signer and reprices until the fee covers the signed size.settle, which prices every draft, refuses one whose signed size is over MAX_TX_SIZE (the ledger’s max_tx_size, 16,384 bytes on mainnet and preprod), or with an output whose value is over MAX_VALUE_SIZE (the ledger’s max_val_size, 5,000 bytes on both, measured by value_size), in words, rather than letting the node refuse it at submit. Many recipients or tokens are how a payment gets there. Both are a typed TooLarge, and a spend over a transaction’s computation a typed TooMany (is_too_large, is_too_many), so a payment can go in parts (A payment in parts, below).minimum_deposit (a move-in), minimum_address_payment (a withdrawal or a send) and minimum_seedelf_payment (a transfer), each the same sum the builder checks. The builders still refuse less, as the CLI expects; the web wallet’s WebAssembly raises a smaller amount to it (so “0” with tokens sends only that) and reports the least as minimum.ScriptSpend. Mint, transfer, sweep and remove are all built on it.
change_to(addr), to an address on this network (is_payable_address): that’s how sweep_all sends everything, and how a removal pays an address.pay_rest(to, tokens) pays what’s left instead, to a Seedelf (under a fresh re-randomization of its register, is_payable) or an address on this network (is_payable_address), with tokens: the tokens it doesn’t send stay as change with exactly the least ADA they need, and no other ADA stays (transfer_most, sweep_most). FinalSpend::rest_lovelace is what it paid, worked out in settle with the measured fee, so a Max review is exact.draft() gives every redeemer the transaction’s maximum budget, for Ogmios to evaluate. finalize(budgets) puts in the measured budgets and settles an even fee. The fee covers the size with both signatures, the budgets at the protocol’s prices, and the reference scripts’ bytes at the protocol’s price a byte (15 lovelace), in Conway’s tiers (reference_script_fee).Budgets::from_ogmios), never by their order in the answer. Ogmios happens to list spends by index, then the mint, but nothing should rely on that.select_script_inputs): first the UTxOs holding the tokens being sent, so every order below is for what pays beside them. Where histories are known, by the box rule (holding_by_rule, chunk 52, l6words#1’s code option): for each token in turn, those that are no box and that the purpose takes before a box marked mixed first (Histories::before_boxes: a payment’s every one, a funding’s own session’s and received money), the biggest holdings first; where they don’t hold enough, as few boxes of unknown making as hold the rest, then as few boxes, of as many the most marked mixed, the largest first, beside as few of those first as then hold enough, and only then the purpose’s later money (1.9.3’s review, r3#2); then each holder the others make needless goes, one of unknown making first (needless_dropped, r3#4). The spend from holding’s (the biggest holdings of each first, until there’s enough, whatever made them) is built too, and goes only where the rule’s is refused, does worse by the box rule over all its boxes (box_key: fewer of unknown making, then fewer boxes, then more marked mixed), or does as well and merges more histories (r3#3; Histories::ties, which counts a top-up’s own session among them, F4), so nothing that built before is refused. With nothing known, holding’s alone. A payment’s parts by history take first the holders the rule takes for everything still owed, then the rest by Worth::holder (token_group, r3#1), each part’s own by the rule (max_inputs_apart), and by what each adds, as before. Then, when the caller knows nothing of the UTxOs’ histories (the CLI, Histories::default), pure-ADA UTxOs, largest first, then other token UTxOs, one at a time, until the fee and valid change fit. The web wallet passes each UTxO’s history class and the spend’s purpose (build::Histories, privacy review §2.3) through mint_apart, transfer_apart and sweep_many_apart, and selection keeps different classes apart where it can: one UTxO that pays alone, the smallest first (at most 12 token-bearing boxes back from Lovejoin tried alone, and 12 other token-bearing UTxOs, MAX_TOKEN_SINGLES, one that can’t pay what the spend pays out counting against neither; chunk 51, l5merge#1); then UTxOs of one class, largest first; only then merging, the purpose’s last resorts after the rest, and boxes back from Lovejoin last of all, by the box rule (below). It returns the classes it merged (classesMixed) for the review’s note. Purpose::Pay (Send, Make public) takes money made private first, then a session’s money or a spend’s change, received money, Unknown money, and boxes last; of boxes that pay alone, one marked mixed, then any other, then one of unknown making, before size (box_rank within the rank; chunk 51, l3rank#3, l5still#3); Mint (a stealth mint, a pool’s start from the private balance) a box marked mixed (Origin::Mixed), which no payer knows but one who put it in under the wallet’s key and mixed it themselves (own#3), then received money, then any other box (Origin::Lovejoin), Unknown money, an earlier spend’s change (Origin::Change), money made private, and a session’s money last (chunk 51, gap-g1#1 (b), the owner’s answers 2 and 4 and of 2026-11-18); Fund (a session’s funding or top-up) its own session’s, then received money, a box marked mixed, any other box, one of unknown making after the other boxes (l3rank#3, l5still#3: where one box pays alone, no box someone else put in is picked over a mixed or a plain one on size), then Unknown money, change, money made private, and another session’s last. For a session brought back by hand, what its fundings, its top-ups and the transactions its key signed left in the private balance count as its own, whatever the history says, so after a restore too. With every class Unknown, it picks as the CLI does.
Merging (independent review M6, L39): a token send first tries the UTxOs holding its tokens with one UTxO of another class, never a last resort, a box, or a UTxO that adds less than nothing (by rank, the smallest first, under the same 12-try cap; 1.9.3’s review, F3). Then by the box rule (below).
With at most 12 boxes (EXACT_BOXES), every set of them (Exact, chunk 52): first the other money alone, as 1, 2 and 3 take it at k = 0, without a UTxO that adds less than nothing (1.9.3’s release review, r2#4); then the sets in levels, as few of unknown making, then as few boxes (before the first of unknown making, 4’s first pass, as below). At a level, the plain choice is the set that adds the most that builds beside all the other money where one transaction takes that, else beside the fewest of one of 3’s orders: where all of it came up short beside every set and holds no token, from where each first holds a UTxO 1’s leave out, and where any build so far was too large, from none (r2#1; the last look’s F2: a too-large build at one level can pass over a later one’s sets unbuilt); then, of as many, a set with more marked mixed beside that other money, and where that was all of it and fewer of it can pay more (it holds tokens, or any build so far was too large), beside the first k of each of 3’s orders too, fewer than all of it, the most first (r2#3). Each set is costed without a build (change_cost, Around, Laid): its ADA, beside the other money’s and the tokens’ own UTxOs’, less the least its change needs, 20 kinds of token to an output, in the order the inputs bring them, its boxes in 1’s weighed order (of unknown making, then those whose making the wallet knows, each the largest by its weight beside what 1’s change keeps, as 1.9.2’s 1 took them; r2#2), and less the fee of the bytes that change and its outpoints take. Every other part of a fee is the same for every choice of as many inputs and change outputs, so a build that comes up short bounds the rest: of as many change outputs, no set worth less pays at that count, nor at a larger count by more than the computation its inputs add (Exact::bound_at), and of other outputs none worth less by more than the bytes an output’s address and lovelace may differ by (Exact::bound; r1#2). Nor does a set pay whose worth, its change’s outputs at the size their addresses take, is under the fee every transaction pays (min_fee_b) and its inputs’ computation. A build too large for one transaction rules out only sets of as many inputs or more whose change and outpoints take 6 bytes more or past it (LARGER; r1#1). Only a set those bounds can’t rule out is built. A change’s tokens are laid out once around a set’s, so a set costs only the output where its tokens meet the rest (Laid::cost; a set that moves a kind, one after its own or one sent whole, is costed in full: a_sets_change_costed_from_its_layout_is_its_change_costed_in_full), and its sets’ costs are those the ledger’s least gives (a_changes_least_worked_out_from_its_tokens_is_the_ledgers). Twelve boxes beside 400 payments plan in about 10 ms in release, every box holding another policy’s token beside 400 kinds of the other money’s in about 35 ms, and twelve boxes of ADA alone, each set worth its own, beside 20 UTxOs of 20 kinds that each add a little less than an input costs, in about 0.1 s (0.5 s in the WebAssembly on two cores, where the reviewed search took 135 s; twelve_boxes_beside_hundreds_of_payments_plan_in_a_fraction_of_a_second and twelve_boxes_beside_money_that_adds_less_than_its_input_costs_plan_in_a_fraction_of_a_second, each held to a bound; r1#3). Where none builds, 4’s second pass, then 5.
With more, the weighed orders: for u = 0, 1, 2 … boxes of unknown making, the largest u, whole orders, each grown one UTxO at a time and passed over at a failure more inputs can’t fix (the computation estimate guesses, about 22 Seedelf inputs, past which a choice fails by its count alone, never made, GUESSED_MOST_INPUTS, chunk 51, l7merge#3; or 16 KiB):
old_orders_built): the token-bearing UTxOs its step 1 asked alone that step 1 here passes by for its cap; its 1 and 2 over the other money and the boxes together, by tier, a token pool’s way back among the boxes; then, for j = 0, 1, 2 …, the largest j boxes of ADA alone (those of the base’s class first), then the other money with the token boxes back in it, by tier and the largest first, then pure ADA before tokens, stopping at the fewest j whose boxes failed alone. It runs twice, each time with the orders it grew whole kept apart: once u = 0’s 1 to 3 built nothing and a box of unknown making exists, over the UTxOs without any (OldOrders::without), so a set it builds, holding none, goes before anything u ≥ 1 would build (the rule’s second step; chunk 51, l7merge#1, l7still#1); and once no u is left and none of those built, over them all, which makes the rule’s first step hold by construction: the weights are a guess (below; a token’s bytes of fee and a spend with no change too), so 3’s starts needn’t hold 1e1b0647’s sets, as with round six’s weight they didn’t (l6still#1, l6words#3). Neither changes what 1 to 3 build at u = 0, and what either builds goes as 1e1b0647 took it, the rule’s steps 3 to 5 aside;The box rule (box_rank, whose doc states it; box_weight, known_largest_first, unknown_largest_first, more_mixed; for a payment’s parts boxes_to_merge, through WebAssembly’s Worth::apart) is one for every order but 4’s and the CLI’s, and for the parts, whatever the purpose, so they can’t drift apart (chunk 51, l4code#1, l4docs#3, l4still#2, and round six’s rule). Its boxes are every box back from Lovejoin that adds something, a token pool’s way back holding its token among them, each weighed by what it pays (box_weight, as Weighed says): one of ADA alone by its ADA; one holding tokens, in one transaction’s orders (Weighed::InOne), by what it pays beside the change its order makes anyway (Kept, worked out once a selection): its ADA less what its tokens add to that change’s least, 20 kinds of token to an output, none below nothing. 1 and 2, which take all the other money before any box, weigh it beside a change keeping the tokens holding’s UTxOs keep and all the other money’s, and try fewer boxes by the weight beside a change of ADA alone (Kept::nothing, round seven’s weight) before taking more than one (l8merge#2); 3, which takes as few of that money as pay after its boxes, weighs those whose making the wallet knows beside both, and its boxes of unknown making beside a change of ADA alone (l6still#1, l6reference#2, l7merge#2, l7merge#4, l8words#6). In a payment’s parts (Weighed::InParts) by adds, its ADA less its tokens’ whole least, since a part leaves the tokens it keeps with just that (l5merge#1). They come after all the other money, also past what one transaction spends, where a funding takes another session’s money before a box where that pays (3). With tokens sent, they’re beside holding’s UTxOs, which every choice spends: the rule orders what pays beside them (l6words#1). In one strict order: nothing 1e1b0647 sent as one transaction is refused or sent in parts, by construction (4; l5merge#2, l6still#1, l6words#3); as few boxes of unknown making (a part other than box:, such as an unplacedBox’s unknown:<tx>) as pay, even where that merges more boxes (l5still#4, l7merge#1, l7still#1); then as few boxes as pay; of as many, the most marked mixed, with no more of the other inputs than the plain choice’s build takes (l5merge#3, l5still#2); then the purpose’s order and size. With at most 12 boxes that holds over every set of them, each with its boxes in 1’s weighed order beside the other money as 1 and 3 take it (chunk 52; box_rule_reference_test holds it to a brute force, strictly, and mint_test pins the shapes chunk 51’s last looks found: l8merge#1, l8still#2 and l8still#1’s F, each failing on 1.9.2, and those 1.9.3’s release review found). One margin is left there: a set is built in that one order of its boxes, so where its change’s tokens pass 20 kinds another order could pay where that one doesn’t (1.9.2’s 3 built some sets in another), which no test or sweep has found. With more, among the choices the weighed orders try: none of unknown making where 1 to 3 at u = 0 or 4’s first pass build without one; of as many, the most marked mixed by more_mixed_built. Each box is weighed by itself there, beside the change its order foresees, which leaves a margin: beside another box holding its token, or one of its policy, a box pays up to that token’s share of the change’s least more than it weighs, about 0.2 ₳ where the token joins an output with room (about 0.33 ₳ for a 32-byte name and a quantity past 2³², l8words#7); where the change’s last output is full (20 kinds of token, 40, …), each box whose token is new to it is weighed as opening another, so boxes whose tokens share that output, whatever their policies, pay up to its whole least, about 1.6 ₳, more than they weigh (l8still#1, l8merge#2); boxes whose tokens each fit the change’s last output can open another together, and pay about 1.6 ₳ less than they weigh; in 3, whose change keeps only some of the other money’s tokens, what a box pays can be off both its weights by up to those amounts (l8words#6, l8merge#3); and in a payment’s parts, at any count of boxes, where boxes’ tokens share an output of a part’s change, a box adds up to that output’s least, about 1.6 ₳, more than adds. Within that, a merge can take more boxes than pay, fewer marked mixed than a choice of as many that pays, and where it takes one of unknown making, more of them than pay; near the input limit, beside token boxes, one of unknown making where a set without any pays that neither 1 to 3 at u = 0 nor 4’s first pass tries (two ways back of one pool beside a box that outweighs either, say, or a token that shares an output of change or opens one: chunk 51, l7words#1, l7merge#1, l7merge#2, l7still#1, l8merge#1, l8words#1, l8still#2); and in parts at any count, whose plan goes by adds, one where none must, beside boxes whose tokens share an output. With tokens sent, a box of their UTxOs’ own class counts as mixed: it adds no history. One box that pays alone is step 1’s, by the purpose’s rank, its boxes by box_rank before size: one marked mixed, then a plain one, then one of unknown making (l3rank#3, l5still#3); Mint keeps its own order there.
An order already tried, or the start of a whole order that failed, is skipped. One that takes every UTxO and still comes up short doesn’t end the search, since fewer may pay (chunk 51, r2a#2), but short with everything is the refusal, whatever another order ran into. So it never refuses what the CLI’s order pays; when nothing pays, the refusal can be the computation or size limit, not only “not enough”.
build::adds, with its sign), such as a stranger’s pile of tokens at their least on chain. In every step and order above that takes it (merging’s 1 and 2 leave it out; chunk 51, l6still#2), and in the CLI’s order (a restored wallet’s too), it comes after all the other money, the rest keeping their order. So it’s spent only for a token it holds that’s being sent, when nothing else pays beside as few boxes (beside a set’s boxes it can go in before one more box, as 3 takes it, as in 1.9.2, but with at most 12 boxes never with none where a box pays beside the other money; 1.9.3’s release review, r2#1, r2#4), or by Max, and nothing is refused. This is plan_return’s rule for a session’s return (What one return takes is planned by cost), ranked rather than left out. Before, a received pile came ahead of the boxes: its tokens went back as change on the user’s ADA (about 14.5 ₳ for 200 tokens), and the payment merged boxes it didn’t need.activity.ts classes): every funding, top-up and return of one session is one class, all of their histories merged, and it ranks as that session’s money (independent review L41). While none of the UTxOs being classed has a known history, the extension sends no classes, and selection is the CLI’s; once one has, each Unknown UTxO is a class of its own, unknown:<tx> (independent review L40). Three rules keep the wallet’s own money from reading as a payment received, which a stealth mint or a funding takes before the wallet’s own (chunk 51):
dapp.ts notePrivate, ActivityService.signedInto), in the sealed history (signed): its outputs there, but one carrying a reference script, as public:<n> for the account that signed or session:<i> for a private session, read from the summary of the bytes signed (Paid::register, tx_index; sign#1). arrived lists it from the note once a reading finds it (Made private, or Back from a private session; the account’s Activity reads the transaction from the chain, bySend), and classes reads the note meanwhile. A note that never lands goes after 30 days (SIGNED_KEEP_MS), the newest 50 kept (gap-g1#2).since’s by) until a read moves its cursor past that spend: the balance reading hands arrived those of the wallet’s own rows its answer names (ContractView.spentBy), and the read that folds such a spend in, whichever it is (a review’s, Lovejoin’s due withdraw’s), calls arrived itself first, so nothing about the spenders is kept and a lock loses none (own#5). What such a transaction left is listed Already in your private balance, its history the spent rows’ merged with elsewhere:<tx>, which ranks as another session’s money and is tagged Unknown. Koios names no spender, so read through Koios it’s received (gap-g9#1).chain.ts byRegister, by the points registerOf reads), Seedelf rows included (readContract passes the whole view), is never Received: it takes that row’s history with its own unknown:<tx> in place of any box it names (withoutBoxes, whatever the class’s origin), so it ranks as the tie it carries, a box-paid mint’s change say, and never as a box, which its writer knows; only unknown:<tx> where that row is Received too, or a box alone (money#1, own#2, l2rank#4). It catches a payment under a register copied as found (d = 1), never another d (gap-g1#1).Purpose::Mint and Purpose::Fund take money others paid, and a box marked mixed, before them where one pays alone:
change:<tx> (a stealth mint’s and a private pool start’s, a Send’s, a Make public’s to anyone else, a removal into the private balance), tagged Change; or public:<n> for a Make public to one of the user’s own accounts (withdraw.ts tiedBy). A funding’s already names its session. A class with a change: part reads origin change (merged): core’s Origin::Change, which Mint and Fund rank after money others paid, any box but a deposit’s, and Unknown money, and before money made private, and merge in the first tier, before any box (tier(); the owner’s call of 2026-11-18, l2rank#6); one that also names a public account, a session or a spend made elsewhere reads session, ranked after money made private. Change kept before the part was, of a spend that leaves change in the private balance (a private Send, a Make public, a stealth mint, a removal, a private pool start: activity.ts LEAVES_CHANGE), gets its change:<tx> as the history is read (classOf, spendLeft), asking nothing and keeping nothing new, but where that history names a public account (l2time#2). An earlier version’s Make public kept its inputs’ history alone, whoever it paid (the payee only in its entry’s detail), so what it left reads change:<tx>, origin change, even where it paid one of the user’s own accounts: ahead of money made private, which ties a new Seedelf to a public account only where that Make public paid one, where taking money made private first would every time (l3rank#1: the owner’s call of 2026-11-18 for change, read as it stands).lovejoin.ts withdrawOne) is classed by what the wallet’s records and the answers it already holds say of the box, asking nothing more for it (chunk 51, round three: the owner’s calls of 2026-11-18). A box the records or answers say is mixed (a leaf one of a recorded chain’s mixes made, one kept once its record went where that record said so, mixedLeaves, or, with no record, one Koios said a mix made) is marked origin mixed (mixedBoxOf, mixedBox), its way back alone: core’s Origin::Mixed, which Purpose::Mint ranks first. A deposit’s own box never is, a Bootstrap’s or a seed’s included, however its mix’s count closed and whatever records went (l2rank#3, l2still#2). A box a private session’s deposit put there, no mix since (its chain’s deposit, its collateral’s, or a private Bootstrap’s, whose deposit depositors keeps once its record goes; depositSessionOf; after a restore, the session whose one-time key paid the deposit), merges session:<n>, as a public account’s deposit merges public:<n> (PRIV-3). A box one of the wallet’s own chains made short of its last mixes is a plain box:<tx>. Anything else (a deposit someone else made under the wallet’s key, a register copied as found included; a box Koios hasn’t said of, as Bring one back anyway takes one first; one nobody asked about, as Bring every box back now and the retired pools’ run take them; a 1.9.1 answer kept without its inputs that says a deposit made the box; a leaf kept before mixedLeaves was) is box:<tx>+unknown:<tx>, origin lovejoin (unplacedBox): still a box to selection, which every purpose takes after money others paid and a box marked mixed (l3rank#3), tagged Back from Lovejoin and Unknown, and one box to the review’s note (e1a#1’s design, l2rank#1, l2time#1, l2time#3, l2still#1). Merged with other money, a box is named by the furthest tie it carries (merged): beside Unknown money or other boxes it reads lovejoin, as every box:<tx> written before the mark was kept does, which Mint ranks after received money, and tier() merges a lovejoin or mixed class last, by the box rule (one beside Unknown money as a box of unknown making: box_rank); a spend’s change of it reads change, and a way back the private balance paid with anything but Unknown money or another box reads as what paid (received, change, own, session), as any spend’s output carries its inputs’ history, so one a payment received paid ranks as that payment (l3rank#2), and both merge as that money does, before any box (l3docs#5).POST /ogmios with evaluateTransaction. A failed evaluation comes back as HTTP 400 with a JSON-RPC error. The extension’s client and seedelf-koios’s evaluate_transaction pass that answer on, not a bare status.ProtocolParameters::from_koios, so the extension passes Koios’s epoch_params row through WebAssembly unchanged.buildMoveIn(account, key, requestJson) and buildAccountSend(account, requestJson) check that every UTxO sits at the address its role/index derives, build with move_in or account_send_many, and sign once per distinct payment key. A send whose to is a Seedelf’s name takes the contract UTxO holding it as recipient, checked as a transfer’s is (recipient_register).buildAccountSend, buildTransfer and buildWithdraw take payments, a list of one to MAX_RECIPIENTS (100; 20 until chunk 51, gap-g8#4), and answer with what each received, in order. The ledger has no count: what bounds them is the transaction’s 16 KiB, core’s TooLarge, which the worker says in the user’s words (short.ts tooMany, worker.parts.tooLarge).buildStaking(account, requestJson) builds with account_staking from the action and the stake key’s standing (account_info, fresh from the worker), and signs with the payment keys and the stake key (2/0). A move-in, a send or an account-paid mint given a withdrawal (the reward balance) signs with the stake key too. poolId and drepId read and normalize IDs for the worker. buildStaking also builds the account’s own DRep’s registration, update, retirement and votes, from its standing (drep_info, fresh from the worker), and signs those with the DRep key (3/0) too; drepProfile writes a DRep’s CIP-119 profile and its hash, asking no one.draftAccountMint for Ogmios, then finishAccountMint with its measure, which signs with the account’s keys at review.buildMint, buildTransfer, buildWithdraw or buildRemove, which prove and measure in one call (below), then signScriptSpend at Send. signScriptSpend checks giveme.my’s signature against its public key over the transaction id before adding it. giveme.my checks a transaction against the chain before it signs, and refuses one whose inputs it can’t find (“Transaction Fails Validation”).seedelf-one-time-key-v1, and a random 32-byte seed as the info.
chrome.storage.session, and Send re-derives the key inside WebAssembly, even in a restarted worker.script-spend.ts holds the flow every Seedelf spend shares: read the whole contract and the protocol parameters, build in WebAssembly, keep the unsigned transaction and its seed in session storage until Send, then giveme.my → signScriptSpend → submit → the pending watch. mint.ts, transfer.ts and withdraw.ts use it, and so does a session’s funding.
buildMint, buildTransfer, buildWithdraw and buildRemove prove the spend and measure its scripts with ScriptSpend::measure_locally (Aiken’s uplc, as a Lovejoin chain is), in one call. Not Ogmios: a draft sent there would carry valid proofs, so Koios would learn which contract UTxOs are the wallet’s even for a review never sent, and it would cost a request. The local measure matches Ogmios’s: the recorded preprod transfer’s fee comes out the same to the lovelace, or 602 lovelace less. The scripts see a transaction’s signers sorted by hash, and the wallet script looks for the one-time key’s among them, so a random one-time key hash that sorts before giveme.my’s (1108…, about 7% of them) is found a step sooner. Each is exactly what that transaction uses.
SPEND_BUDGET_GUESS, about 1.3× what the scripts use), which would refuse amounts the review’s own fee could pay. So when nothing pays by the guess (build::is_short), buildTransfer and buildWithdraw (as each part of buildTransferParts and buildWithdrawParts is built) measure the largest UTxOs together (max_inputs_by) before refusing, first without any that adds less than nothing unless it holds a token sent, then with it, and measure_locally drafts a spend the guess calls short with the most fee it can pay, since the scripts read neither the fee nor the outputs. A session’s funding keeps its picking. A refusal then says about how much can go: the worker builds the payment again as Max would, on the UTxOs already read, but over those an amount takes, never one that adds less than nothing (most, lib.rs adding; transfer.ts, withdraw.ts, short.ts privateShortOf; for Make public, most is also the most a payment of some tokens can be), and what has to stay (changeMinimum). Max over every UTxO would count a stranger’s pile, whose tokens’ least is more than it holds, and say less than an amount can pay (chunk 51, r2a#3).lovelace null, blind test §9.6) goes in parts over every UTxO (buildTransferParts, max_in_parts: A payment in parts, below), Make public’s the same way (buildWithdrawParts). Each part is built as one transaction’s Max is, transfer_most on max_inputs, and answers max, left and leftWhy (the last part’s say how many Max left, and why: tokens, fee or limit, lib.rs LeftWhy, absent when it left none; 1.6.0’s release review, 321-parts-worker#6), and the change it kept for the tokens that stay. Max in parts over no UTxOs is refused as one transaction’s Max is, in its words (321-parts-rust#2), and so is Max to a Seedelf asked for more of a token than its UTxOs hold, in core’s words (“holds only … of the token”): its parts sent what they held and left the rest put down to tokens, or refused it as short of ADA (chunk 51, w1a#1). A part that finds nothing to spend has an error of its own, never read as tokens or the fee. The worker never calls buildTransfer itself.measure): its draft holds only the public account’s UTxOs, and one of those may carry a reference script, which the wallet’s evaluator doesn’t take yet. The CLI keeps Ogmios for everything.account.ts reads the Cardano account for them and for a move-in: four requests (account_addresses, then credential_utxos for its payment keys, with epoch_params and tip alongside, the tip for its slot), and account_info alongside too when the user spends rewards or it’s a staking build. destination.ts reads a withdrawal’s or a send’s destination. staking.ts holds the staking reads and builds.buildTransferParts, buildWithdrawParts; core’s typed TooMany and TooLarge). Several recipients at once still go as one.
in_parts, max_in_parts): the tokens sent first, then ADA, each part paying all its UTxOs hold but its fee, the rest tried as the last after each. A part that can pay more than is owed leaves the parts of tokens after it what one output of the tokens still owed needs. Where those tokens go in two parts or more, that overpays: the first of them pays that least and each after it one least too many (1.9.1’s release review, shapes#1: 90 Lovejoin boxes of a token and 50 ₳ paid 54.88 ₳). So a plan that pays more than was asked and its token parts’ leasts is planned again, each part leaving the leasts of the parts of tokens after it as the first plan made them, and goes where that takes less from the Seedelf balance in no more parts or carries (reserving). Where a part’s smaller payment would leave its change under an output’s least, the second plan splits the tokens otherwise, chains or is refused, and unless that split goes in as many parts and carries, the first plan’s overpayment stays (the backlog). Where histories are known, an amount’s parts take UTxOs by history first (Worth::apart, by_history_first, core Histories::tier_of and rank_of): one history alone where its money pays; then every UTxO, those adding something before those adding nothing (a part of those pays no fee), and within each, each history’s together, boxes and a funding’s other sessions’ money last; and by what each UTxO adds (its ADA less its own tokens’ least), a funding’s by its purpose’s order first (Worth::of), only where those are refused, or would chain where that doesn’t. A chained part takes the tokens’ holders in that same order, those holding the most first among equals, and an unchained one those holding the most first (token_group; chunk 51, l8words#2). Max takes every UTxO by what it adds. What each adds keeps its sign, so in either order one that adds less than nothing comes after one that adds exactly nothing (a move-in’s bundle at its least), and a history’s money counts none of it (chunk 51, r2a#3). What max_in_parts leaves, it says why: limit once 25 parts went; fee where a part couldn’t pay its fee and no chain went, a chain that would pass 25 parts included; tokens otherwise.ScriptSpend::carry, an output of ADA alone to the wallet’s own register; core carried reads it back as a row, measured locally as one not on chain yet), and every part after it chains the same way. An amount’s chained part takes, beside the holders of the tokens it sends, only the free UTxOs its fee needs (Fill::Lean); Max’s fills its room. The part that sends an amount’s last tokens is its last, paying what’s still owed with them, and carries only where it can’t; a chain its carries paid in full ends there, rather than go on to one more part that pays the recipient an output of ADA alone and a fee, neither asked for. A carry no later part spends is its part’s change (carry_kept): a chain’s last part, over the carry and what’s left, spends as few of them as pay, and a chain its carries paid ends on one. Its part’s figures count that carry as change, a funding’s privacy note included, or the note would name less private change tied to the one-time account than there is (1.9.1’s release review, chain-rust#1, ts-parts#1). A carry’s history is the merged history of the inputs of the part that made it (Carried in WebAssembly, carried in script-spend.ts), so the next part’s picks, its review and the change sealed in the Seedelf history never call it Unknown.keepParts), and the review adds them up (whole): its histories are those of every part’s inputs, two or more of them, and each token kept counts once. Its least, the minimum note’s, is the parts’ leasts added up only where every part sends tokens: a part of ADA alone’s least is an output’s, never the tokens’ (1.9.1’s release review, ts-parts#2). parts.ts sends them: the parts before the first that spends a carry go at Send, one after another, the review’s age checked once, as the first goes (waited for the rest). The parts after them are held before any part goes (splitParts: each under seedelf.waitingPart.<hash>, what they spend reserved as parts.<first hash>, and the payment’s Waiting record in seedelf.waiting.<network>), so a worker stopped mid-Send leaves them to the pump; a Send it lost before any part went is undone at the next pump (unsplit). Other spends leave what’s reserved out and say so in their own words (worker.spend.waitsForParts, partsConflict.*). The first part’s send checks every later part (laterParts): spent since, and held by a chain being sent (every reservation but the payment’s own parts.<first>), so one that can’t go refuses the whole payment, nothing sent; a missing one is a stale review (1.6.0’s release review, 321-parts-worker#3). Send again, once the pump holds the rest (pumpHolds), sends only the first again, as it was, and answers how far the payment went (321-parts-worker#1).pumpParts, one run a network at a time: the sessions alarm, and Home’s and Collateral’s pending-tx poll, not waited for) sends each waiting part once its parent shows (chainStatus, looked for at most every 15 s, LOOK_EVERY_MS), through send, never in the unlock’s run, and not while another payment may still go through (MaybeSentWait). giveme.my witnesses only what’s on the ledger (Collateral-Provider’s WALLET_INTEGRATION.md, Chained transactions), so its refusal, or Koios too busy to have taken it (a 429), within 3 minutes of the parent showing (GIVEME_BEHIND_MS) is tried again; a part that went already counts as went. After that, a parent not shown in 20 minutes, or a session that says no (mayGo), the rest stop (refused, unseen, cancelled): their copies and reservation go, and a funding is told (stopped). A pump that fails keeps the alarm on. A lock, a closed browser or an update wipes session storage, and with it what waits: the rest never go, and only a lock is warned of first. Each part sent with more to go carries parts: {sent, total} on its watch record, written ahead and sealed while that part may still go through (Sending.parts: sendParts, the pump’s step, and a session’s funding’s last part that goes at Send, sendFunding; nameParts seals a maybe-sent watch again, and holdWaiting names a funding’s), so pending-tx turns a chain-named watch with no parts’ record, whose own parts say more were to go, into parts.stopped: "locked": Home’s banner says it went only partly, never confirmed or funded (1.6.0’s release review, 321-parts-worker#0). A watch Koios took is sealed no longer (pending.ts), so after a wipe nothing says the rest didn’t go (1.7.0’s release review, x-upgrade#1).In the CLI, every script spend ends in seedelf-cli/src/commands/spend.rs: prove, evaluate, finish, giveme.my, sign, submit. Only create, fund and util extract still build inside their run()s; the web wallet doesn’t need them.
Tests guard it. The CLI’s offline integration tests (seedelf-cli/tests/cli/) check value conservation, min-UTxO and valid change registers for each command, and seedelf-core/tests/build_test.rs checks the builders directly.
Decided: in WebAssembly, with Pallas, as a function of its bytes alone (wasm/src/decode.rs). decodeTx(network, txCbor) answers a TxDetail: CBOR in, structure out. It takes no account, no keys and no UTxOs, so it makes no network call, a fixture file is a whole test of it, and it cannot be wrong about the account because it never sees one. The network only names Seedelf Wallet’s own contract; every address is read from its own bytes.
Three readers, three jobs. None of them is the others.
cip30::inspect_tx answers what does this do to my account, which is what the approval decision turns on, and it reduces most of the body to tallies (reference_inputs: usize, votes: usize, metadata: bool). It also gives the sign window’s checks from the bytes it signs: whether the metadata is what the body’s hash commits to (metadata_mismatch), and the register each payment into the contract is under (Paid::register), so no second decode a site can make fail silences them (chunk 51, sign#1). It is load-bearing for a signature, so nothing the view needs goes into it.decode::decode_tx answers what is in these bytes. It emits structure where the summary emits counts, and nothing it says is load-bearing for anything: it is a view.background/cbor.ts is the hardened pre-check, not a decoder. Its own header sets the boundary: just enough CBOR to find an item’s end, list the inputs and compute the id, with bounds and depth checks because a dApp hands the worker bytes of its choosing. It reads a transaction’s list, its body’s map and each input’s pair in either length, definite or indefinite, as the ledger and WebAssembly do, so a site’s transaction written either way reaches the sign window, and one a site sends has its inputs and record kept (chunk 51, gap-g8#5, sign#2; attachWitnesses and Minswap’s readers in minswap.ts too). Conway’s types live in Pallas, and reimplementing them in TypeScript would be a second ledger model to keep right.Both Rust readers decode Conway’s format alone (conway::MintedTx in decode.rs, conway::Tx in cip30.rs). That was partly for size: Pallas’s all-era MultiEraTx costs about 540 KB of module. But seedelf-core’s evaluator (eval.rs) and Lovejoin’s withdraw context (lovejoin/mod.rs) decode with MultiEraTx, so the module carries it anyway, and size is no longer a reason to keep the two readers on Conway alone.
What the decoder does that matters:
MintedTx keeps each item’s original CBOR (KeepRaw), so a datum’s hash is the hash of the bytes as written rather than of a re-encoding, an inline datum’s hex is what is in the output, and a redeemer’s argument is a verbatim slice of the transaction (the redeemers are walked raw for exactly that). The body’s own bytes give the size and the id.MAX_TX_BYTES (64 KiB, four times the ledger’s limit), the non-recursive nesting walk (core’s cbor::check_nesting, MAX_DEPTH 128 levels, the one walk in WebAssembly — Pallas decodes plutus data recursively, and a few thousand levels kill the WebAssembly instance), and exactly one transaction with nothing after it, so the hex the view shows is the transaction: cip30::one_transaction, which the connector’s read and attachWitnesses share, as the node reads no bytes after a transaction’s end (chunk 51, sign#1). ogmiosUtxos (a transaction’s outputs for Ogmios) decodes without that walk, so a site’s transaction reaches it only once the connector’s read has walked it, or the worker’s own pre-check, nestsWithin in cbor.ts, has passed it.-1 - n, as CBOR has it). There is no schema to read a datum against — a contract’s datum means whatever that contract says it means — so the shape is what can honestly be shown, and the shape is what it shows.
PlutusTree.tsx collapses the tree and draws only the branches that have been opened, so the size of the data costs nothing until someone asks for that part of it. Expand all opens the lot; Copy JSON gives it in Plutus data’s detailed schema ({"constructor": n, "fields": […]}), the form cardano-cli, Blockfrost and Koios all speak.cbor::MAX_DEPTH (128 levels) refuses the whole transaction before anything decodes it, because Pallas reads plutus data by recursion and a few thousand levels end the WebAssembly instance for good. A constructor is two levels (a tag around an array), so a datum nests about sixty constructors deep. That guard is the connector’s too, so a datum the view can’t reach is one no part of the wallet can read.constructorIndex, not constructor: every object in JavaScript has one of those already (Object.prototype.constructor), so that field gone missing would read as a function rather than as nothing.register_detail runs for an output at Seedelf Wallet’s own contract and nowhere else — and not at all for a datum in the witness set, which belongs to whichever output names its hash and could be any contract’s. Where it does run, build::is_payable adds the one thing the shape can’t say: whether a payment under it could be spent.
cip30::register_fields and spender, chunk 51’s d1#3), and the sign window reads it the same way: constructor 0 holding two byte strings, in either spelling (tag 121, or 102([0, fields])) and whatever their length. The contract then decompresses both points and checks the proof, so it says who can spend what’s under it: only its key’s holder (payable); anyone, for a public value that’s the identity (anyone), as for no register at all; or no one, ever, for a point that isn’t one of G1’s (not 48 bytes, off the curve, outside the subgroup) or an identity generator, which the window warns is locked for good. Every reader of a payment’s register takes every spelling the ledger takes, the general form’s pair indefinite too (seedelf-koios register_of_datum, chain.ts registerOf; one shared set of vectors, extension/tests/fixtures/register-spellings.json, pins all of them). A datum kept by hash is no Seedelf payment, carried in the witness set or not: the window reads it hash, neither a Seedelf payment nor anyone’s, since no Seedelf Wallet finds or spends such a payment, and the transaction may go on chain without the datum, whose preimage then decides who can take it (chunk 51, r2sign#1). A payable register on an output that carries a reference script reads script-ref, never a Seedelf payment: it’s its owner’s, but no Seedelf Wallet spend takes it yet (core’s eval::refusal) and the balance leaves it out, so the window warns in the UTxOs page’s words and Transaction details tags the user’s own as one Seedelf Wallet can’t spend yet (TxYours unspendable; chunk 51, l3sign#1; the same vectors carry two reference scripts). The register is the site’s to write, so the window never says a Seedelf payment hides whose it is: the worker matches each payable register, as the connector’s read of the bytes signed gives it (Paid::register; chunk 51, sign#1), against the kept contract view, every Seedelf’s and the wallet’s own rows, by its points (registerKey, the lookup Activity’s classes share), asking no one, and warns where it’s already on chain (registerOnChain; chunk 51, x1a#2). That catches a register copied as found, not one re-randomized by a small d, nor a copy of a stranger’s row with no token, which the view doesn’t keep. The witness set’s datums still name the key of a contract input they release (datum_names_key): a spent input’s datum must be there.Three rules come from reading Conway’s CDDL against what JavaScript and a screen can hold. Each is a way the bytes could have been shown wrongly:
coin, slot, epoch and metadatum_label are uint up to 2^64-1 there and ex_units is 0 .. 2^63-1, while JSON.parse rounds anything past 2^53: a ttl of 2^60+1 would show as 1152921504606846800, off by 177. Only counts the decoder works out itself — the size, an output’s position, how many witnesses — are numbers. A Plutus integer past 128 bytes (about 300 digits) is the one number shown in hex (0x…): its decimal costs a pass over its bytes for every digit, and a site chooses its length, so one filling a transaction kept the worker busy for minutes (chunk 51, w2#3).address and a withdrawal’s reward_account as plain bytes, so a transaction can carry bytes that are no address at all. They show as hex, with the kind unreadable, and every other field still reads, rather than one such output hiding the whole transaction.\u{...} (decode::shown, the same set as ui/tokens.ts’s HIDDEN), and unicode-bidi: isolate in the stylesheet keeps a right-to-left script, which is nobody’s trick, inside its own element.It also checks the metadata against the body’s hash (metadataHashMatches). Metadata whose hash the body doesn’t carry can’t reach the chain with that body, and the view would otherwise show a note that never could. The metadata the body does commit to still can: a signature covers the body alone, so a site can submit it with the body and the witnesses the wallet hands back. A transaction whose two disagree gets a warning and is still shown in full. A site’s sign window says so too, above its note, from the connector’s own read of the bytes it signs (cip30::inspect’s metadata_mismatch, a hash with no metadata included, and metadata it couldn’t read for the hash; chunk 51, G5’s notes, sign#1), so no decode a site can make fail silences it.
What it refuses, in words, rather than showing partly: a certificate from before Conway (a genesis key delegation or a move of instantaneous rewards, variants 5 and 6, which Conway dropped and no node accepts today) — Pallas can’t decode one, and showing a transaction with a certificate missing would be worse than saying so. A body field from an older era, such as Shelley’s update (key 6), is only a field: it’s reported with its hex and the rest reads.
In the worker, tx-view.ts is the cheapest handler there is: no Koios request, no storage write, nothing kept. Every flow parks its built transaction in session storage under its own key and script-spend.ts strips the CBOR out of the summary the screen gets, so the view is asked by transaction hash — which every review already has — and the worker looks the bytes up where they live, walking the kept record rather than knowing each key’s shape (a session’s return keeps its chain inside it; Bring everything back keeps a list). A chain through Lovejoin still being sent is looked for where it’s sent from (SESSION_LOVEJOIN_SENDING, and each session’s SESSION_CHAIN_PREFIX key, by the indices the device knows), since its transactions move there from the key they were kept for Send under; the Lovejoin page’s row for the chain opens each (O3). It’s looked for there first, before what’s kept for Send (a session’s return keeps the same bytes there until its first submit), and the answer says so (TxView.chain): Transaction details then says its signatures were made when the chain was prepared, never that they wait for a confirm (1.3.0’s release review, C17). A hash it no longer holds that a recorded chain names (inChain in lovejoin.ts: the sealed schedule’s deposit, mixes and last, no Koios) gets “The wallet no longer holds that transaction: its chain through Lovejoin was all sent, or stopped partway.” rather than “Review it again” (C28). A site’s are in the connector’s own queue (Waiting.txCbor), held only while the request waits. It shows sentCbor where there is one, so a payment Koios didn’t answer shows the bytes that will be sent again. It also marks each output that pays the user (TxOutput.yours, blind test §9.9): the public accounts’ payment keys (the active one’s from its keys and the last reading, others’ derived on the device), the user’s own register in the wallet contract, and the private sessions’ one-time keys. A reward address has only a stake key, so a withdrawal’s and a proposal’s deposit back (TxWithdrawal.yours, TxProposal.yours) are marked by that: the active account’s, a session’s, then each other account the wallet knows. A certificate’s stake key isn’t, since a site’s sign window already says whose it is. Still no request; locked, nothing is marked.
The bytes never reach the screen until it asks. That is what makes opening or closing the view safe: Send reads the transaction back out of its session key, not out of a component, so the signed bytes were never in the view’s hands. A test pins it, and so does an end-to-end one in the browser.
One build, both networks: mainnet by default, preprod for testing. Every build has both (enabledNetworks in networks.ts), the dev build included:
VITE_ENABLE_MAINNET=false makes a preprod-only build, with no switch and only the preprod hosts, for tests: npm run build:store:preprod is a store package of one.NetworkChoice), and an update never moves a test wallet to mainnet. A new wallet keeps the network it’s created or restored on before its vault is written. Removing a wallet (Remove wallet, or Forgot password) keeps the network in use first, so removing one from before the switch leaves preprod chosen for the restore, never mainnet (independent review L42).The switch:
seedelf.network in chrome.storage.local (NetworkChoice in background/preferences.ts): a network the build doesn’t have, or nothing, is the build’s first. It’s kept on its own, not with the settings, so it’s read locked or unlocked, and removing the wallet keeps it, as it keeps where the wallet opens.answerUi in sw.ts puts it on the request’s context) and every site’s call (DappService), so a switch needs no restart. Every service takes the network it’s asked about; none holds one.components/NetworkPicker.tsx), above Create and Restore, and moves at once: nothing is on either network yet. Create and Restore say which network they’re on, on their first step, with a way back to change it.state-changed (it listens for the key’s changes in local storage), and every open page starts afresh on the new network (App keys its screen by network), so nothing read or reviewed on the other stays on screen.components/NetworkBadge.tsx), in the connector’s window too, where it’s in the top bar itself, which has no buttons there (blind test T18: a row of its own would push a signature’s privacy note below the fold). Test ADA is never taken for real.That payment isn't ready to send. Review it again.).getNetworkId answers the network the wallet is on as each call comes in; a site connected on one network isn’t connected on the other (the dapps record is per network). What sites were asking on the network the wallet left is declined when it moves (networkChanged), a signature still being read then is refused so, never shown (sameNetwork; 1.7.1’s release review), and an approval shown for it signs nothing. A private session’s funding already sent still connects its site on the network it was sent on.runs.ts, at unlock and on the sessions alarm): a swap that runs itself, a chain being sent, Lovejoin’s boxes due back, a payment that may still go through and a payment’s parts that wait for the one before (parts.ts) carry on on their own network while the wallet shows the other. A network with nothing of the wallet’s asks Koios nothing; one network’s failure never stops the other’s, but a WebAssembly trap from any step ends the run and locks the wallet (Service worker; 1.6.0’s release review, 314-wasm#0). A run is long, and the wallet can lock and unlock while it goes on: from the next network on, the rest of it is the unlock’s run, which sends nothing by itself (independent review L11).What’s kept per network, checked for the switch:
| What | Where |
|---|---|
| Balances, the contract scan, the account’s UTxOs, addresses and Activity pages | seedelf.balances.<network>, seedelf.contract.<network>, seedelf.accountUtxos.<network>, seedelf.accountAddresses.<network>, seedelf.accountActivity.<network> |
| The Seedelf history, coin control, private sessions, Lovejoin’s schedule and chains, a payment that may still go through, a mix from the public account kept by Remove wallet, who paid for each Seedelf minted here | sealed history.<network>, coins.<network>, sessions.<network>, lovejoin.<network>, maybeSent.<network>, lovejoinMaybe.<network>, mintedBy.<network> |
| Contacts, connected sites | one sealed record each, every entry with its network |
| Seedelf Messaging: the inbox, each conversation, the requests, where the next read goes on from, what waits to be posted, what the reads found that isn’t taken yet, its steps’ marks, the certificate list’s copy with the wallet’s own certificates and withdrawals waiting, the register each Seedelf minted here went under, and its switch | sealed messaging.<network>, conversation.<network>.<id>, messagingRequests.<network>, messagingRead.<network>, messagingOutbox.<network>, messagingTake.<network>, messagingMark.<network>, messagingTakeMark.<network>, messagingList.<network> and mintedAt.<network>, with the unsealed messagingTrap.<network> and messagingWithdraw.<network>; messaging.<network> in the settings; its holds and its posting runs’ waits in session storage, by network (Seedelf Messaging) |
| The payment the pending watch follows, maybe sent or not | seedelf.pendingTx.<network>, one per network: a Send on one never drops the other’s watch |
| A chain being sent, and what chains reserve | seedelf.session.chain.<network>.<index>, seedelf.lovejoin.sending.<network>, seedelf.reserved.<network> |
| A payment’s parts still to go | seedelf.waiting.<network>, and each part under seedelf.waitingPart.<hash>, recording its network |
| Transactions kept for Send | one slot each, recording its network; the submit checks it |
| The pool list, the live governance actions, the dApp connector’s reading | seedelf.pools.<network>, seedelf.govActions.<network>, seedelf.dapp.view.<network>, seedelf.dapp.signed.<network> |
| ADA’s price | mainnet only; nothing is asked on preprod |
What isn’t per network: the vault (keys don’t depend on the network), the settings, the active account (seedelf.account) and the language (seedelf.language), and the spent outpoints (seedelf.spent), which no two networks share. What sites’ submits spent is kept apart from the wallet’s own (seedelf.spent.sites, the newest 5,000, never in the list of sent transactions), so a site can’t push out what the wallet spent; spentSet and lastSpentAt read both (independent review L7).
One network value drives everything network-specific. The Rust side already takes a network_flag everywhere (true = preprod), and the WebAssembly API passes it through. This is how the CLI’s --preprod works.
| Preprod | Mainnet | |
|---|---|---|
| Koios | https://preprod.koios.rest/api/v1 |
https://api.koios.rest/api/v1 |
| Collateral service | https://www.giveme.my/preprod/collateral/ |
https://www.giveme.my/mainnet/collateral/ |
| Contract config | get_config(variant, true) |
get_config(variant, false) |
| Addresses | addr_test… |
addr… |
| Minswap’s aggregator | aggr.monorepo-testnet-preprod.minswap.org |
agg-api.minswap.org |
Lovejoin’s mix_box |
67ffe4ed…ecc5 |
c145c10f…1fad |
| Lovejoin’s pool floor | none | 30 others’ boxes |
| Seedelf Messaging | open, off until its switch is turned on | not right now |
| ADA’s price | none | CoinGecko |
| An NFT’s image | ipfs.blockfrost.dev |
ipfs.blockfrost.dev |
lovejoin in networks.ts): its mix_box and the pool’s floor. lovejoinOn(network) is the gate the worker (LovejoinService.available, pool) and the UI (the dApps tile, Settings) share. The core’s Protocol::of holds each network’s deployment.MESSAGING_NETWORKS in networks.ts; the owner, 2026-11-24). messagingOpen(network) is the gate the settings (a closed network’s switch reads as off), the worker (it refuses to turn one on) and the Messages page (one line in the switch’s place) share: Seedelf Messaging. Mainnet opens by adding it to that list.is_on_correct_network.data in networks.ts): https://mainnet.seedelf.logicalmechanism.io, in every build. A dev or e2e build can name another with VITE_DATA_ORIGIN (dataOrigin), which a store build refuses (vite.config.ts, buildManifest, package.mjs). Preprod never has one. See Chain data.Mainnet through the wallet’s own data layer, at https://mainnet.seedelf.logicalmechanism.io. The API is seedelf-data/, on a DigitalOcean droplet that reads home’s node, db-sync and Kupo through WireGuard (its runbook); the records of its design are the archived plans for the wallet’s side and the server. Preprod, and mainnet with the Koios-only switch on, read Koios as the rest of this section describes, and so does each part while it’s held on Koios. The data layer:
data-layer.ts): the public routes (Koios’s own paths and JSON, under <origin>/api/v1), the private index (private-index.ts), and submits with ogmios.
koios(network) is chainClient: plain Koios on preprod, and on mainnet a DataLayerKoios, whose every method runs on the data layer first and, on a failure, again from its start on Koios, so a paged read never mixes the two. The data client is the same Koios class with its own Backend (10 s reads, 35 s submits, no retries, DATA_LIMIT weighed per route as the edge charges, and the cache mode default), so the API sees exactly koios.ts’s requests. default, not no-store, for a POST (postCache): no-store makes Chrome send a CORS preflight before every POST; with default it reuses one for up to 2 hours (the API allows 24), in memory, keyed by the POST’s URL, query included. A POST’s answer is never cached, and the API marks every answer Cache-Control: no-store besides. A GET needs no preflight, so it stays no-store, which keeps an ADA Handle’s or a DRep ID’s address off the disk whatever the server sends.Retry-After, if longer), kept in session storage: no answer, a timeout, any 5xx, a 429, a 403, a 400 for a request the API doesn’t take, an answer that isn’t the data. “Too large for this server” (a 503 with no Retry-After: a listing past 20,000 unspent outputs, transactions under more than 200,000 outputs, or a page of them more than 10,000 in; 1.5.0’s release review, C23) sends that call alone, with no hold.DataParts.held(), the data-layer request), asked every 10 s while Settings is open, so it asks no server and says where the next request goes, not whether the server is up this moment.contract-scan.ts): a restore takes the index’s snapshot; every read after asks since the sealed cursor and checks only the new rows. The record contract.mainnet (private-store.ts) holds the cursor, the wallet’s own rows as of it, and the newer rows already checked, tied to the Seedelf key, across a lock, with the rule those rows were judged under (v, SETTLED_RULE): settled rows are never checked again, so a record sealed under an older rule is read again from a snapshot, as a restore is, and every row judged by today’s (chunk 51, gap-g6#1). Entries above an answer’s cursor are never folded in; a reset starts again from a snapshot. Seedelf names come from the shared names route, so another device’s spends and removed names show at once. Koios’s scan below stays the fallback, and never moves the cursor. Rows become Koios’s UtxoResponse in utxoOf (credential, epoch from the slot, created.time, CIP-14 fingerprints, the registry’s decimals, height 0), so private coins sort by time and the UTxOs screen says when one was made.lovejoin.ts): the pool is lovejoin/pool and what changed since its cursor (the pool at the tip, not ten blocks back), and what made each box comes with its row (made_by), so tx_info isn’t asked about the wallet’s boxes. A box Kupo answered for has no inputs, and is asked of again at the next look.
lovejoin/tokens and what changed since its cursor: every shown pool’s boxes in one answer, which names the pools it covers, each box’s mixed saying whether a mix in its own pool made it. db-sync alone indexes them, so while it can’t answer they say 503 (TokensDown), the part stays up, and the token pools come from Koios. So does any other refusal of these routes, or an answer the wallet can’t read (a 404 from a server older than them, deployed back): only a 429, the shared limit’s, holds the part. A shown pool the feed doesn’t cover yet comes from Koios too. lovejoin/pools is the shown pools’ list (lovejoin-pools.ts), kept as it comes (Which pools are shown, below).feed.ts): a transaction that spends or pays a Seedelf or a box is looked for in the contract’s or the pool’s feed since a cursor from before it went out, instead of tx_status naming it; Home asks every 5 s while one is. The cursors the index hands out are kept in session storage, one every 5 minutes for 6 hours, with when the wallet had each, and the sealed record’s counts too: a watch reads from the newest the wallet had before its first try, stamped before the submit. What touches only key addresses still asks tx_status, on the public side, and so does a private one while the feed can’t say. The classic pool’s feed lists no token pool’s box, so a chain’s deposits and mixes are looked for on the feeds of the pools their chain’s record names (watchOf): a token pool’s on the token pools’ feed (lovejoin/tokens/since, its cursors kept from each pool read), which says one isn’t there only while it covers each of its pools, and a chain across pools on both; a token pool’s box brought back is looked for on the contract’s (1.6.0’s release review, DATA-1).readStake): an unknown pool is its ID, and pool_info is asked behind it.Koios, same as the CLI. Balances come from extension/src/background/koios.ts (the client), chain.ts (pure helpers) and balances.ts (the service).
What one balance reading asks Koios (four requests: the contract’s and the stake key’s alongside the account’s two, which run one after the other):
| Request | For |
|---|---|
credential_utxos with the wallet contract’s script hash |
Every UTxO in the contract, or only those after the last block seen (below), to find the owned ones |
account_addresses with the Cardano account’s stake address (_empty: true) |
Every address that has used the stake key, including empty ones, for discovery |
credential_utxos with the account’s payment key hashes in range |
Every UTxO under those keys, whatever the address’s staking part. At most 75 keys a request (Koios’s public tier refuses bodies over 5,120 bytes), so an account with more than about 35 used addresses takes more than one. |
account_info with the stake address |
Whether it’s registered, its pool, its vote delegation, its rewards and its deposit. No row means never registered. The pool’s ticker comes from what the session has read, the pool list on the device, or one pool_info a session. |
order=tx_hash.asc,tx_index.asc), until a short page. Each page starts after the last row of the one before (or=(tx_hash.gt.…,and(tx_hash.eq.…,tx_index.gt.…))), not at an offset: a UTxO spent between two requests would shift an offset’s rows and skip one. Each UTxO is kept once, by outpoint.credential_utxos over an account with real history runs past it there.KOIOS_LIMIT in koios.ts): 40 every 10 s, not half the tier’s 100, because Chrome stops the worker after about 30 seconds idle and a fresh one starts with an empty window. Two workers either side of a stop can each spend theirs inside the same 10 seconds, so the pair has to fit as well.hold stops every request until the cooldown is over, for as long as Retry-After asks (seconds or an HTTP date, capped at a minute) or 10 s when it names nothing. Retrying alone would keep the limit tripped, since the other requests in flight would go on at full rate. The cooldown is kept in chrome.storage.session, so a worker Chrome restarted mid-cooldown still honours it.KoiosBusyError, since the transaction may or may not have gone through (maybeSent; not for a 429, which Koios’s gateway answers before passing anything on; independent review L2). A Lovejoin chain sends it again later, a few times, which is safe: the ledger takes it once. A mix from the public account whose transaction may have gone through stops there instead, and is settled before another is built (see Lovejoin, independent review L5).
pending.ts, launch review #10), not as an error: its inputs are remembered as spent, the signed transaction stays kept, and Home’s pending entry is flagged maybeSent. Send again sends the very same bytes, however old, and asks giveme.my nothing; the watch sends them again every 2 minutes too. Until the chain shows it, or it can’t land, every other build and Send on that network (Make private, Send, Make public, a mint, a removal, staking, the collateral, a session’s funding or top-up) refuses (“Your last payment may still go through…”): otherwise another payment could go out beside it and pay twice. Lovejoin’s Bring one back now and its mix from the public account refuse too (final review lovejoin-2). (A session’s own steps and chains, and sites’ submits, don’t wait for it yet.) Nothing takes its place in the watch meanwhile: every write of pendingTx goes through one helper (take), which leaves a maybe-sent transaction there for another alone. Koios is asked outside the wallet’s lock, so the watch can change while it answers: Home’s pages and the worker’s runs share one look at a transaction at a time, and what the look finds changes the watch only while it still holds that transaction (final review money-submit-3). It’s sent again only while the watch still holds it as the look read it, so a look begun before a lock never sends it at the next unlock, whoever joins that look (final review F7). Its Seedelf history is written once it’s seen, or taken when sent again, before its watch and its sealed copy go: a lock or a stopped worker first leaves it sealed, and the next unlock’s settle writes it. A Send Koios takes at once has its history written before the watch takes it over, for the same reason (chunk 51, l2time#4: written after, a lock while the history’s queue was busy lost the entry for good, and the change read as a payment received).
writeAhead, independent review M1): put in the watch as maybe sent, sealed (below), its inputs held as spent, before Koios is asked. A record that can’t be sealed isn’t sent. A lock, a closed browser or a stopped worker mid-submit leaves it watched, and a second Send on that network is refused meanwhile, as for any maybe-sent one. Koios taking it makes it an ordinary sent one; an answer with another transaction id keeps it maybe sent.PrivateStore.removeIf); one sealed since stays. If the watch sent it again meanwhile, it stays maybe sent.tx_status first: on chain, it counts as sent. After a try Koios didn’t answer, one not on chain yet is still maybe sent (most likely in a mempool).account.ts validUntil, final review money-submit-5), so a device clock that’s off can’t keep one valid, and payments held back, for hours longer than the banner says. They’re watched until the chain’s tip passes it by 30 minutes (Koios’s backends can lag): then nothing was sent, and the banner says so. A private one has no slot yet: after 20 minutes unseen it most likely never went out, and the banner says that, and to check Activity before sending again. Letting it go as unseen frees its inputs, but its last try (a resend, or Send again) stays the wallet’s last send for Lovejoin’s quiet rule (noteSend, seedelf.sends; final review F8).
utxo_info). While every UTxO it spends is on chain and unspent, it’s held as waiting (inMempool, sealed with it) until two and a half hours after it was sent at most (HELD_IN_MEMPOOL_MS: a public payment’s slot plus the half hour). The banner says it may still land, and until when; let go then, it says the network said it had it. A UTxO it spends shown spent, or not on chain at all, lets the 20 minutes apply again. A Koios error keeps what the last look found, and holds it when there was no look yet.maybeSent.<network>, final review money-submit-4), and put back into the watch, its inputs remembered as spent again, before the watch is next read (Home, the worker’s run at unlock, any build). Put back, it counts as sent again at that moment (for Lovejoin’s quiet rule too), so its first resend is 2 minutes later: the unlock’s run only looks (tx_status), never resends (independent review L9, final review F7).KEPT_ON_RESET, independent review M2). It’s sealed under the phrase’s key, so restoring the same phrase here watches it again. Making or restoring a wallet from another phrase here deletes it (adoptKept), as it does a settled one. Nothing watches it in between.pumpChain): at most 4 of its transactions wait in the mempool. A block may use 20 billion CPU steps in scripts and a mix uses 5.73 billion, so a block takes only 3 mixes, and a node’s mempool holds about two blocks’ worth; a submit past that waits for a block, longer than Koios answers (30 s). So the wallet sends while there’s room, looks for blocks every 5 s, and each call sends for at most about a block: a Send sends the first window, and the runner’s steps, the alarm and the open Lovejoin page the rest. One chain of a session at a time: another return of it kept for Send (its page’s, Bring everything back’s) is refused while one is on its way, rather than take its place (final review lovejoin-4). The chain waits in chrome.storage.session meanwhile (seedelf.session.chain.<network>.<index>, seedelf.lovejoin.sending.<network>), so no request runs near Chrome’s five minutes. Locking wipes it, and the session says why. Once some of it went, a swap or a mix then brings the rest back directly; a site’s session, an older swap brought back by hand, or one a restore’s scan found, keeps it at its account until Bring it back or Bring everything back sends it, directly (independent review L23). A chain none of which went in is built again through Lovejoin where it can be (Lovejoin on for the network, and 5 ₳ at the account its mixes can put up; chainSoFar’s started): a swap’s as it was approved and a mix’s always, unless Stop made it direct, and one brought back by hand as Settings has it, which its review’s switch turns down (1.5.0’s cross-area review, X03; 1.5.0’s last review, L12).
chainGoing, isClaimable). Once it stops, its page says where, and Bring it back sends the rest directly. A chain recorded none of which went counts as stopped too (1.5.0’s cross-area review, X03), or a lock or a closed browser between its record and its first send would leave it reading Coming back for good, with no Bring it back. markCut marks such a chain stopped (CHAIN_CUT) once nothing is sending it, as it marks one cut partway, in the worker’s runs, the unlock’s included, and at a refresh of the list, from the device alone. Its page then says it stopped after 0 of its transactions and offers Bring it back, which goes through Lovejoin as Settings has it, since none of that chain went in, and Bring everything back takes it. Its record of the chain stays, so an earlier chain of the session’s, all sent, isn’t read as one that went in partly. A mix (the Lovejoin tile’s), which runs itself, gets the same mark, and its runner builds the chain again through Lovejoin (above). Its row on the Lovejoin page reads as a mix that goes on (Funded: it goes on within 20 minutes of the unlock, or, after a deposit Koios turned away, which stops a chain the same way, Something went wrong: it tries again by itself), never the rest comes back directly, which only a chain that went in partly says; why it stopped stays under the row (1.5.0’s last review, L5).ChainGone): nothing more is sent or written back, and the record says the chain was cut.cuts() leaves alone a chain whose progress is still being written.parts. reservation being sent): a return reviewed before that payment’s Send, say, that merges the funding change a waiting part spends. refuseParts refuses it before its chain or the session’s record is touched, in worker.spend.partsConflict.return’s words, a chain or a return that comes back directly alike, Bring it back and Bring everything back too (1.6.0’s release review, 321-parts-worker#3, R3-4).chainRetryMs), then as below. When the chain does stop, the session records why, and the Lovejoin page shows it in full. Only tx_status saying it isn’t on chain counts: one sent before and refused while tx_status doesn’t answer may have landed, so it’s looked for again and goes again with the window 3 minutes on (CHAIN_RESEND_MS), however long that lasts, and the session doesn’t mark it unsent (mayBeIn, final review lovejoin-6). Once a try went unanswered, no later failure marks it unsent in the session’s record, even when the chain stops there (final review F11).
resentFor), and a second refusal stops the chain; pump then writes the session’s stop reason. Under heavy congestion that can outlast one call: the saved progress lets the next call go on.preprod.koios.rest (and api.koios.rest on mainnet).KOIOS_NOT_ALLOWED in koios.ts, not retried), and the wallet’s page shows a notice with Ask Chrome again (ServiceAccess in App.tsx), which asks Chrome for the hosts from the click.Access-Control-Allow-Origin: *.trimmed in koios.ts, launch review H4): each UTxO’s datum loses its JSON (inline_datum.value becomes null) and its reference script is cut to {hash, size, type, bytes}, never to null. Anyone can pay an address an output whose datum or native script nests thousands of levels deep. V8 parses that, but JSON.stringify, structuredClone and chrome.storage overflow on it, so an untrimmed row would stop every read of that address.generator^x == public_value. The register is read from the datum’s CBOR bytes (registerOf in chain.ts), as strictly as seedelf-koios’s register_of_datum, never from its JSON. This is is_owned, the same method the CLI’s balance uses, run in WebAssembly. Points that don’t decode or aren’t torsion-free count as not owned.
atContract in balances.ts), the WebAssembly (at_wallet_contract) and the CLI (seedelf-core’s utxos::at_wallet_contract) all read it so, and core’s Protocol::spends_as_mix_box holds a Lovejoin box to the same rule.contract-scan.ts). A full read costs a request per 1,000 contract UTxOs, and Koios’s public tier allows 5,000 requests a day, so it happens after an unlock, every 30 minutes, and after the network refuses a spent input (SpentInputError).
credential_utxos?block_height=gt.N, re-reading 2 blocks), usually a single request.chrome.storage.session, is this wallet’s own UTxOs, where each Seedelf is (for Send’s lookup) and the height: never the whole contract.spent.ts). A spend made with the same phrase elsewhere, or a rollback, shows at the next full read.someoneElsesOf, Lovejoin below), and Remove takes a Seedelf for the account’s only from an Activity entry in which the account spent, the one with a fee (minted-by.ts paidByOf). Anything else is someone else’s, or not known, but for one reading by outputs, which ties no account: Remove chooses the private balance for a Seedelf whose mint also paid another of the wallet’s rows, as a stealth mint’s change does, which anyone minting under the user’s register can arrange too, harmlessly (chunk 51, l2docs#6).0/i) and the change chain (1/i) from index 0 until 20 addresses in a row are unused. “Used” means Koios lists the address under the account’s stake key.
account.ts), whatever the address’s staking part: a base address, an enterprise address with none, or our key paired with someone else’s stake key. It’s the user’s money either way, and the wallet spends it. (Asking by stake key, and keeping only its own base addresses, would miss both.)abandon … art test phrase has exactly such a script UTxO on preprod.0014df10), otherwise as hex, with the decimals Koios reports. No token images are fetched unasked (an NFT’s image only when the user asks to see it, below): they would reveal holdings to more servers, and the page CSP allows only the extension’s own images and data URIs.seedelf.sessions alarm reads only what’s running (a swap’s account and its orders, from Koios and never Minswap, a Lovejoin chain being sent, a box that’s due, a payment that may still go through, looked for each run and sent again every 2 minutes, a Lovejoin withdraw that may have gone through, looked for each run and sent again at most every 3 minutes, for up to 2 hours, a mix from the public account stopped at a transaction that may have gone through, looked for at most every 2 minutes while the worker runs until it’s settled, and a payment’s parts that wait for the one before, each one’s parent looked for at most every 15 s and the part sent once it shows, never in the unlock’s run); at unlock, Lovejoin’s pool is read once on each network with something open there (a withdraw that may have gone through is looked for instead); and while a payment is on its way, Home asks tx_status every 15 s. Locking stops all of it.
tx_status, then utxo_info when that doesn’t show it) at most every 2 minutes on each network while the worker runs (PUBLIC_LOOK_MS; looked is in LovejoinService’s memory, so a worker the browser started again, as it may for each of the alarm’s runs with no page open, looks at once: 1.8.0’s review of its fixes, r2-critic#3’s trace.), whichever asks first: the worker’s runs, on every network and at the unlock too, with no page open, keeping the alarm on until it’s settled (final review F2), or, on the network shown, Home (every 20 s while it’s open), the UTxOs page’s public side, or the Lovejoin page. Its Review and Send look each time (independent review L5). After the same phrase is restored, the runs, Review and Send look for one Remove wallet kept (final review F1).chrome.storage.session (it says which contract UTxOs are the user’s, so it never goes to disk) and wiped on lock.epoch_params, tip (a public-account build’s slot), ogmios (evaluateTransaction; a 400 carries Ogmios’s reason), submittx and tx_status.
submittx is retried only when Koios answers that it couldn’t reach its own node (TxSubmitConnectionError), which means nothing was sent. Any other failure isn’t retried: a second submit of a transaction that did go through would fail and hide that it did.BadInputsUTxO) gets its own message: review it again after a refresh.tx_status called the newest one confirmed.
spent.ts, in chrome.storage.session, wiped on lock; only the time of the last send outlasts a lock, in seedelf.sends, independent review M10). Lovejoin’s and the sessions’ services write and read those marks on their own clock (now), so a test’s clock moves them; pending.ts still writes its own on the device’s, which is the same clock in the worker (1.6.0’s release review, L4).incoming.ts, Balances.*.incoming, the usability review’s HM-1), from the device alone. Not when it never went out (its inputs were freed), when another transaction or a Lovejoin chain spends it, or when a reading lists it. Every answer is the kept reading less what the wallet has spent since (the private side from the kept view of the contract), as a reading made then would be, so a transaction counts whole whenever the reading was made, and Home reads it right after a send with no request (balances with kept, blind test §9.3). The forms never spend it.staking.rewards (Balances.cardano.withdrawing says how much), while the reading counts at least that and lists none of their outputs to the account: Koios reports them until the block, and the change holds them (blind test §9.1). A withdrawal takes the whole of the rewards, so a reading that lists the change and shows less has seen it land; when that can’t be told (an account_info behind the UTxOs, a reading from before an epoch’s rewards) they come out all the same, at most what the reading counts, so the figure errs low. readAccount doesn’t withdraw them again meanwhile, and Withdraw and Stop staking are refused until it lands (rewardsOnTheWay, worker.staking.warn.rewardsOnTheWay), two that spend the same coin counted too.sent-txs.ts) for as long as what they spend is held back, two hours, though a site is answered from them for 20 minutes only; the wallet’s own Sends, each with the public account it was sent from, under a cap of 16 apart from a chain’s steps, which never push them out. A private spend’s watch that ends unseen after 10 minutes marks the private side behind, as a landing does, so the next reading reads the contract again.activity.ts): the Seedelf history makes no requests (sends are written at submit, arrivals come from the contract scan), sealed in the private store. The Cardano account’s comes from credential_txs by the account’s payment keys in range (newest first, 20 a page; to catch up, from 100 blocks under the newest block read, CATCH_UP_MARGIN, which Koios and the data layer answer from that block on, so a group answered by a server behind another’s is read again once it has caught up: 1.5.0’s release review, C33), the keys the last balance reading asked credential_utxos about, so it lists what the balance counts (O7), and one tx_info a page, with inputs, outputs, assets, metadata, withdrawals, certificates and votes turned on (about 2 KB a transaction): each entry names its staking (a registration’s deposit, the pool, the vote, a withdrawal, stopping), from the certificates naming the account’s stake address, and what the account’s own DRep did (registered, updated, retired, how many actions it voted on), and carries its note (CIP-20’s label 674, at most 500 characters kept). A pool’s ticker comes only from the device (the session’s pool reads, then the kept pool list), never from a request. The pages stay in chrome.storage.session; the account’s payment keys come from the last balance reading. Ahead of them, worked out on every read and never kept, are the wallet’s own transactions Koios doesn’t list yet, marked pending, from the transactions the device keeps (incoming.ts pendingEntries, blind test §9.3). An entry’s ADA is what the balance as Home counts it did but for the fee, so a withdrawal of the rewards it counted is no money in (blind test §9.1). An input or output is the account’s by its payment key, as the balance counts it, and a transaction with nothing of the account’s (someone paying their own key under our stake key, which account_txs listed) is left out. More than 75 keys go in groups (CREDENTIALS_PER_REQUEST), one credential_txs a group: a page is the newest 20 of the groups’ pages merged (takePage), and a transaction under two groups’ keys is listed once. None is taken older than the last row of a group’s whole page, since that group’s rows past it, unread yet, may be newer: another group’s older rows wait for a later page, or after a catch-up a page could list them ahead of the first group’s newer ones, a hole in the list and in a CSV saved then (1.5.0’s last review, L8). Each group’s offset is a position in its list as it is now (offsets): a page moves it by every row up to the page’s last, listed ones too, and a catch-up moves none. So a transaction that lands since, or a row a catch-up listed past the pages read, comes back on the next page as one listed already, which it leaves out: that page is short, and none is skipped (C03). A page with nothing new reads on in the same press, up to ten pages (READ_ON), asking credential_txs again only of the groups the page before moved on, and tx_info only for the page that finds something; only ten such pages in a row leave a press that lists nothing, and the next goes on (the backlog; L7). Load more keeps the newest block read (top), which only the first page and a catch-up move. (It doesn’t count each group’s hashes read instead: once a server behind answered a Load more, every later page of that group would be short, and Load more would never end; 1.5.0’s cross-area review, X08.) A Load more answered by a server behind the one before can still skip what it lacks near a page’s edge (the backlog’s, X08); the next page is short by as many, those after it are whole, and a Refresh lists the skipped ones when they’re within the catch-up’s 100 blocks. The pages keep the keys they were read by, and a reading with others starts them again. A transaction at Lovejoin’s mix box (NETWORKS[network].lovejoin.mixBox) with no one else’s key in it (a script, such as Lovejoin’s fee shard, isn’t someone’s key; the address’s header says which) is named from its inputs’ and outputs’ payment credentials alone (describe): paid by the account, boxes made and none spent is a deposit (lovejoin-deposit, Into Lovejoin), boxes spent and made one of its mixes (lovejoin-round, Lovejoin mix, its fee alone); a box spent into the account, none made, is a box back (lovejoin-withdraw; the account’s own, through another app with the phrase, or one someone paid from their own box: the chain can’t tell them apart). With someone else’s key beside the box it’s Sent or Received, named with them, never the box (1.5.0’s release review, C22). No record is needed, since a chain’s goes about an hour after it ends, and a restore has none. The wallet’s own flows are named from the Seedelf history (own, ahead of everything else): a Make private, an account-paid mint, a Make public or a Seedelf removed to the account. A collateral payment is named from a record too (1.5.0’s release review, C28): the chain shows a payment to itself, so CoinControlService.sent appends its hash to the account’s sealed choices (collateralPaid, the newest 20, kept through a reclaim), and collateralPayments gives describe and pendingEntries those, with the collateral chosen now when a payment made it (collateralSentAt), for a wallet from before the record.coin-control.ts): the UTxOs the user locked, per side, and the Cardano account’s collateral. None of it asks Koios anything: the UTxOs screen and the locked amounts read the last balance reading’s UTxOs (seedelf.accountUtxos.<network>) and the contract scan’s. Toggling a lock changes only that UTxO’s: a reading that leaves a locked UTxO out (a backend behind, say) never drops its lock.
readAccount (a move-in, a send, an account-paid mint) and readContract (every Seedelf spend). The balance still counts them, and reports them apart (locked on each side), fresh on every request. The account’s locked also counts every UTxO no build can price, one holding a reference script whose bytes no server gives (a native script’s: measurable, tagged unspendable), which WebAssembly leaves out of every payment, Max included: counted as free, Home’s figure and the forms’ “Max, up to” said that much more than any payment could spend (chunk 51, l2still#3). The private balance leaves its own such UTxOs out already. A Seedelf’s UTxO can’t be locked, and the collateral is reclaimed, not unlocked.collateralFits: a stranger’s 5 ₳ with either became it, and every public mix failed to build, chunk 51’s e8b#1), unless the user reclaimed it; the Collateral page’s Set offers the same one. A choice that doesn’t fit (only 1.9.1’s Set could save one) stays what a site’s getCollateral gets, while for the wallet’s own builds (readAccount’s reading, coins.account’s own) it’s no choice: they put up the oldest that fits, or none, and say a public mix needs the collateral, and spend the choice as any other UTxO (chunk 51, e8b#1’s residue), unless it’s one they can’t price (above: a native reference script), which no payment spends. The lists, Home’s locked figure and the Collateral page show the one those builds put up, and that figure counts what they can’t price, so the forms’ figures are what they spend (money#4, still#6, l2still#3). That one is always left out of payments, and passed to draftAccountMint as the mint’s collateral. Setting one with none to take is a send of 5 ₳ to the account’s own 0/0 (SendService.buildCollateral); its output 0 is the collateral from Send on, recorded on the public account its review was built on, whichever is active when Send returns (1.6.0’s release review, 309#2). It’s “waiting” until a reading has it: for 10 minutes from its send (WAIT_MS), then while the wallet keeps it as sent (sent-txs.ts heldSent, what the balance counts as on its way: two hours at most, its slot), as Home’s banner says it can land until then; after a lock, which wipes what was sent, the 10 minutes alone (309#1). Past WAIT_MS the status carries late, and the Collateral page offers to pay it again anyway.coins.<network>), sealed like Contacts: which Seedelf UTxOs are the user’s is exactly what the contract hides.staking.ts): only the columns shown are asked for (PostgREST select).
pool_list?pool_status=eq.registered (live pools only), 1,000 a request (559 on preprod, 2,891 on mainnet on 2026-09-24), with totals (the supply) and epoch_params (optimal_pool_count) for saturation: stake × k / supply. It’s the same for everyone, so it’s kept in chrome.storage.local for a day.pool_info, fresh each time (live stake, saturation, pledge, delegators, blocks, retiring).poolHistory, the pool-history request): pool_history?_pool_bech32=…&select=epoch_no,active_stake,block_cnt,deleg_rewards&order=epoch_no.desc&limit=18 (POOL_EPOCHS, about 90 days), beside pool_info when a pool’s page opens, and on Staking only the first time Pool details unfolds; kept by the page alone (and the browser’s view, so Back from a review asks nothing). Koios lists no epoch past two ago: an epoch’s rewards are paid two epochs after it. Its epoch_ros isn’t asked for. Each epoch’s rate is deleg_rewards / active_stake, what the pool paid its stake after its fees, shown yearly as Koios’s own is, (1 + r)^73 − 1; the pool’s is the mean of those epochs’ log(1 + r), a year of epochs over: what an ADA staked through each of them earned, its rewards staked as they came. Most Koios servers leave out every other epoch’s rewards, on both networks (deleg_rewards null with blocks made; seen 2026-10-15, and two answers a minute apart can differ): Koios’s cache job (grest.pool_history_cache_update) runs every two epochs from the newest epoch it holds, so the one between is written before its rewards exist and never again, and Koios’s own pool_history says its cache is broken. So a null is “not known” and left out of the return, never counted as nothing; an epoch with no blocks paid nothing, and that’s known. Koios also writes null for blocks made and nothing paid (a pledge not met), which reads “not known” too, and some of its servers hold values cached part way through db-sync’s work on an epoch’s rewards, which read low or high. On mainnet the data layer’s pool_history has every epoch, final, with a pledge not met as "0" (seedelf-data’s README); preprod and Koios-only read Koios’s. A row that isn’t an epoch (an epoch, a block count or a stake that isn’t a whole number) is left out, and each epoch is taken once, newest first.drep_info and drep_metadata with select=drep_id,meta_json->body->givenName: the name only, never the image, which could be anywhere. Only for the DRep picked: searching uses the wallet’s own list (below).rewardHistory, the reward-history request): account_reward_history for the active account’s stake key, only when the page opens, never kept. Koios’s account_rewards is deprecated, and preprod’s refuses an order. Every column but the stake address, asked oldest first (spendable_epoch.asc,earned_epoch.asc,type.asc,pool_id_bech32.asc,amount.asc, which ties only rows alike in every column: an operator’s account can take several pools’ rewards in one epoch; the data layer takes no other order), 1,000 a request until a short page, then sorted newest first, as the page always read them (newestFirst). Oldest first, what db-sync adds or deletes while the history is read (next epoch’s rewards, an epoch’s deposits back, a stopped key’s unpaid ones) lands on the last page, unless the newest epoch’s rows straddle two; newest first, each change would shift every later page, so a row could come twice or not at all (1.5.0’s release review, C24). Rows alike in every column (two governance deposits back in one epoch) are each kept: nothing is deduplicated. The next epoch’s rows are listed before they’re paid, so the page puts any later than now (epochAt) apart, and leaves them out for a key that isn’t registered, which the ledger never pays them to (C05). Each row is checked (whole epochs and an amount in lovelace, or it’s left out; a pool ID that isn’t pool1… is dropped, and the row reads Other: C45) and its kind read from type (other for one the wallet doesn’t know), and its pool named from the device alone (poolsKnown: this session’s pool details, then the pool list). StakeInfo.rewarded (rewards available plus withdrawals over 0, from the reading’s own account_info) keeps the page reachable from Not staking when the key isn’t registered; a registered key has it under its rewards, pool or not (C26).delegationHistory, the delegation-history request): account_update_history for the active account’s stake key, only when the page opens, never kept. Every column but the stake address and epoch_slot, with action_type=neq.withdrawal (the wallet withdraws the rewards with nearly every payment, so they’d bury the rest, and Activity has them), asked oldest first (absolute_slot.asc,tx_hash.asc,action_type.asc: a slot holds one block, and a transaction’s certificates of one kind for the key are one row, Koios’s union), 1,000 a request until a short page, then reversed: within one transaction that puts a registration, then the pool, then the vote. Oldest first, a certificate landing while it’s read is on the last page, as the rewards’ are. Koios’s rows don’t say which pool or DRep, so the transactions that made them are read with Activity’s own tx_info (txInfoPaged, 20 a request; the data layer takes no other shape), the newest NAMED_TXS (200) of them, and each named by Activity’s stakingOf: only a certificate naming this stake key counts. A row that isn’t a certificate (a kind the wallet doesn’t know, a hash, an epoch or a time that isn’t one) is left out before its transaction is asked about. A deregistration’s certificate carries no refund, so it takes the deposit of the registration before it, oldest first. A vote to the account’s own DRep is marked (ownDrep, its ID from the key, asking no one), and pools are named from the device alone (poolsKnown). Staking offers the page while the key is registered, or once it was ever paid (rewarded): a key that registered and stopped without a reward has no row to reach it, which account_info alone can’t tell apart from one never registered.tip) and account_info, and drep_info too for an action of the account’s own DRep. Submit refusals in plain words (stakingRefusal), by the ledger’s names before protocol version 11 and since, which renamed several (1.8.1’s release review, readers#4): a withdrawal that isn’t the whole balance, an epoch having paid more between Review and Send (WithdrawalsNotInRewards; from 11, ConwayIncompleteWithdrawals); NotDelegatedToDRep; a pool or DRep that’s gone; and an account whose staking changed: a withdrawal from one that isn’t registered (from 11, ConwayWithdrawalsMissingAccounts), its key registered or not (StakeKeyRegistered, StakeKeyNotRegistered; ledger 1.24’s AccountAlreadyRegistered), a deposit or a refund it doesn’t expect (IncorrectDeposit; from 11, DepositIncorrectDELEG and RefundIncorrectDELEG, named whole so that a proposal’s ProposalDepositIncorrect stays the node’s own words), or rewards left at Stop staking (NonZeroRewardAccountBalance, which later ledgers name NonZeroAccountBalance). A withdrawal refused by any of its three names is a RewardsChangedError, which Lovejoin tells by its type, and is in staking’s words only where the refusal names a key’s account (KeyHashObj): a script’s, a Danogo pool’s zero withdrawal or a Lovejoin pool’s mix_logic, keeps the network’s own (1.8.1’s review of its fixes, r2-screens#1).governance.ts): the account as its own DRep, its ID from the key 3/0 inside WebAssembly.
drep_info (status, deposit, voting power, delegators, the profile’s anchor), with epoch_params for what registering locks up when it isn’t registered, or drep_metadata for whether Koios found its profile and it matched its hash. The wallet never fetches the profile itself.proposal_list, only those not yet ratified, enacted, dropped or expired (each *_epoch column is.null), with each one’s title and abstract taken from its metadata by JSON path rather than the whole text (5.7 KB for mainnet’s three on 2026-10-04, against 70 KB), and its block_time and withdrawal (a treasury withdrawal’s payments), which date each row and say what it pays to whom. The order (proposed_epoch.desc, then proposal_id) names only columns the select keeps: Koios refuses to order by one it leaves out. Koios hasn’t read preprod’s actions’ metadata, so there they’re shown by their type. They’re the same for everyone, so they’re kept in chrome.storage.local for an hour (seedelf.govActions.<network>). The DRep’s votes on them, once it’s registered: vote_list, 40 actions a request.prices.ts): on mainnet only, as in Lace (test ADA has no value). CoinGecko’s public simple/price for cardano in every currency the wallet offers, in one request, kept in chrome.storage.session for five minutes, so the disk doesn’t date the last visit (privacy review §3.13), and read only when Home or the swap form opens, or Home is refreshed. The currency is US dollars by default. With the currency set to “off”, nothing is asked. A failed read keeps showing the last price for up to an hour. Only ADA is priced: asking about the wallet’s tokens would say what it holds. api.coingecko.com is in the host permissions and the CSP only when the build enables mainnet.nft-image.ts): only when the user presses Show image in an NFT’s details, one NFT at a time; nothing is read for holding NFTs or opening Tokens.
asset_info for that token, select=minting_tx_metadata,cip68_metadata. A CIP-68 NFT (label 222) reads its reference datum first, which Koios gives in detailed-schema JSON under "222", then CIP-25’s label 721 (the name as text, or hex for v2; an image split into 64-byte pieces is joined). Anything else reads CIP-25’s alone.IPFS_GATEWAY in networks.ts, Blockfrost’s, the same on both networks), for an image on IPFS: ipfs://<cid>, its variants (ipfs://ipfs/…, ipfs:…, a bare CID), and another gateway’s address (https://<host>/ipfs/<cid>, https://<cid>.ipfs.<host>), which is the same file. The CID is checked, and each part of the path decoded and encoded again, with no . or ... An image written on chain (data:image/…) is used as it is, with no fetch; any other address is handed back unfetched.credentials: "omit", referrerPolicy: "no-referrer", cache: "no-store", 30 s, at most 10 MB (a content-length over it stops it before a byte is read; otherwise it’s counted as it comes). Its type is the gateway’s when it says image, else its first bytes’, else the metadata’s mediaType if the gateway didn’t know. It comes to the page as a data URI.https://ipfs.blockfrost.dev/*, which the page asks for (chrome.permissions.request) as the first thing the click does, before anything is awaited. It’s a part of the optional https://*/* the dApp connector declares, so the manifest’s permissions don’t change; only the CSP’s connect-src names the gateway. The worker checks the grant before asking Koios, so a user who turned Chrome down has asked no one.ui/nft-images.ts), keyed by network and token, until the wallet locks (App.tsx forgets it), and shown as the NFT’s avatar in the lists meanwhile. A Seedelf’s token is never asked about.<img> ever fail). Every image is drawn in an <img>, which runs no script and loads nothing, so an SVG there is as static as a PNG, and a type that’s wrong only fails to draw.IPFS_GATEWAY, which the CSP and the grant the page asks Chrome for both read. A verified fetch from trustless gateways (Helia’s verified-fetch) would take the trust out of any one gateway, at the cost of a large dependency.asset_nft_address for the handle policy (f0ff48bb…, the same on preprod), the plain name and then the CIP-68 one. Only when the user types $name as a withdrawal’s or a send’s destination, and again at Review.tip, and account_info too when it spends the rewards, as it does by default); Send is one submittx. The pending watch then asks tx_status, as for every transaction.
seedelf-koios). See privacy.md.credentials: "omit" and referrerPolicy: "no-referrer" (privacy review §2.14): with a host permission, the worker’s fetch would otherwise carry any cookie the browser holds for that host. And with cache: "no-store" (SERVICE_FETCH), so Chrome’s cache on the disk keeps none of them: some addresses name an ADA Handle or the DRep ID, and CoinGecko’s would date the wallet’s use. Koios sends no caching headers, so this loses no reuse.Permissions: storage, alarms, sidePanel and scripting, plus the host permissions for the build’s networks’ Koios and giveme.my (and CoinGecko, in a mainnet build). The sites (https://*/*, http://localhost/*, http://127.0.0.1/*) are optional host permissions, asked for when the dApp connector is first turned on and kept after (see dApp connector). One host under them, https://ipfs.blockfrost.dev/*, is asked for on its own the first time the user shows an NFT’s image.
| Where | Key | What |
|---|---|---|
chrome.storage.local |
seedelf.vault |
The encrypted vault: a single SecretBox blob, see keys-and-accounts.md |
chrome.storage.local |
seedelf.unlockFailures |
{ count, lastFailureAt } for the unlock back-off |
chrome.storage.session |
seedelf.entropy |
The vault entropy, only while unlocked |
chrome.storage.session |
seedelf.lastActivity |
When the user last did something, for auto-lock |
chrome.storage.session |
seedelf.unlockedAt |
When the wallet last unlocked (or was created or restored), for the unlock’s fresh draws; only while unlocked (independent review M10, L10) |
chrome.storage.session |
seedelf.restored |
true from a restore until a Home has said so with a reading, or the note was dismissed (restored, blind test T20a, T20b): the fact alone, so the note shows in whichever page opens Home next. Wiped by a lock and Remove wallet, so a later unlock is never called a restore; a create never sets it |
chrome.storage.session |
seedelf.sends |
When the wallet last sent something before a lock (or, while unlocked, the last try of a payment let go as unseen: final review F8), and when session storage began (noted at each worker start if missing), for Lovejoin’s quiet rule. Kept across a lock and Remove wallet, cleared when the browser closes or the extension updates: two times, nothing of what was sent (independent review M10) |
chrome.storage.session |
seedelf.dapp.refused |
The sites the user declined, or whose page left a connect question or an unlock wait unanswered (chunk 51, G6’s note), turned away unasked for a while: by origin, until, how many in a row, the network and whether one asked again, never a page’s title (dapp.ts keepRefusals; blind test §9.2 and its cross-area review). Kept across a lock and a trap, not Remove wallet |
chrome.storage.session |
seedelf.balances.<network> |
The last balance reading, only while unlocked |
chrome.storage.session |
seedelf.contract.<network> |
This wallet’s contract UTxOs, where each Seedelf is (outpoint, address, register) and the last block seen (contract-scan.ts), only while unlocked |
chrome.storage.session |
seedelf.accountAddresses.<network>, seedelf.accountActivity.<network> |
The account’s stake address, addresses and payment keys (from the balance reading), and its Activity pages, only while unlocked |
chrome.storage.session |
seedelf.accountUtxos.<network> |
The account’s UTxOs with their key paths, from the balance reading, for the UTxOs screen and what’s locked; only while unlocked |
chrome.storage.local |
seedelf.preferences |
The user’s settings: spendRewards; hideBalances, lockAfterMinutes and currency; dappConnector and dappPassword; lovejoinReturns, lovejoinDepth and lovejoinDelay (privacy review §4.1), and lovejoinWidth; lovejoinCollateral (a return’s collateral into a 5 ₳ pool); dappAccount, the public account connected sites use; koiosOnly, Read Cardano through Koios only; messaging, Seedelf Messaging’s switch for each network (changed through messaging-switch alone, and read as off on a network Messages isn’t open on, whatever is kept: MESSAGING_NETWORKS, preprod only for now). Not sealed: nothing in it is about money, though it shows which settings were changed. Deleted with the wallet, but for koiosOnly: with it on, Remove wallet and Forgot password write it back after the reset, the rest at their defaults, as they keep the network (1.5.0’s release review, C08). |
chrome.storage.local |
seedelf.network |
The network the wallet is on, in a build with both (see Networks). Kept when the wallet is removed. |
chrome.storage.local |
seedelf.account |
Which public account the wallet works on, as an index from 0. Unsealed, beside the network and for the same reason: Wallet reads it while deriving the keys, before anything is unlocked. One integer for the wallet, not one per network — the account’s keys are the same on both. Which accounts the phrase has used, and what they are called, are sealed (accounts). A create or restore puts it back to 0. |
chrome.storage.local |
seedelf.language |
The language the wallet is in, en, es or ja. Unsealed, beside the network and the account and for the same reason: the screens before the unlock are shown in it. Kept when the wallet is removed. |
chrome.storage.local |
seedelf.openIn |
Where the toolbar button opens the wallet: a tab or the side panel. The browser’s, so kept when the wallet is removed. |
chrome.storage.local |
seedelf.pools.<network> |
Every live pool, for a day. The same for everyone, but its time shows when staking was last browsed. Deleted with the wallet. |
chrome.storage.local |
seedelf.govActions.<network> |
The live governance actions, for an hour. The same for everyone, but its time shows when they were last read. Deleted with the wallet. |
chrome.storage.local |
seedelf.lovejoinPools.<network> |
Lovejoin’s token pools found: every standard pool, as WebAssembly verifies it (its reference UTxO, seed and scripts at the holder, named by their hashes), with where its launch is, and the block Koios’s holder was read to; the pools handed to the reads, which never leave them (shown), the copies read once (checked: every later launch of a shown pool’s values a look kept, the same for every device; MERGED-1) and the box reader they were read with (reader, BOX_READER: under another, each is read once more; chunk 51, gap-g6#1), and a hash of the token list looked under (listed), which sends the next look back to the head start when the list changes (1.6.0’s release review, STATE-2 and STATE-4). Which copy holds the wallet’s boxes is never here: it’s sealed, in lovejoin.<network>’s copies (R2-4). The same for everyone, but its height shows when the wallet last looked. Deleted with the wallet. |
chrome.storage.session |
seedelf.prices |
ADA’s price in every currency, for five minutes (mainnet only), so when it was read stays off the disk (privacy review §3.13); a copy an older version kept on disk is removed at the next read, and with the wallet. |
chrome.storage.session |
seedelf.poolRefs.<network>, seedelf.stake.built |
The tickers of pools read this session (the user’s among them), and the staking transaction built last; only while unlocked |
chrome.storage.local |
seedelf.private.<record> |
Sealed private records: accounts (which public accounts the phrase has used and what the user called them), contacts, history.<network> (the Seedelf history, which each UTxO’s history class is read from, with a note of each site transaction the user signed that pays their own Seedelf, until it lands or for 30 days), coins.<network> (the locked private UTxOs, shared, and each public account’s own locked UTxOs and collateral, by index, with the payments that set its collateral, the newest 20, kept through a reclaim, for Activity to name (collateralPaid); the older shape, from before there were several public accounts, reads as account 0’s and is folded in on the first write), dapps (the sites connected, per network; no account is recorded per site, since every public-account connection is to the one dApp account, Preferences.dappAccount), maybeSent.<network> (the payment being sent, from just before its submit, and one that may still go through, until it’s settled; kept by Remove wallet), sessions.<network> (private sessions: indexes, stages, transactions, with what each funding and top-up paid the session’s account (for a session the restore scan found, what the scan read there) and what a site’s signed transactions pay it, the newest 40 outputs, and, where a swap’s Splash order was filled in part, which transactions at its address were fills of it and which a stranger’s (remnants); a site’s session’s record goes when it’s disconnected, and a found one’s when it ends with nothing left (1.5.0’s release review, C02), unless something left behind is still at its account; while a found one whose record holds a swap waits to end, when a refresh first found it over (recovered.quietAt, 1.5.0’s cross-area review, X01); and, from a restore until a scan finishes on that network, a mark that it hasn’t (unscanned, C19), so a restore writes the record of every network the build has at once), lovejoin.<network> (boxes’ due times and their unlock marks, each chain the wallet sends with its leaves, a withdraw being sent, signed, with its box’s due time, from just before its submit until it’s seen, refused or 2 hours old, and what Koios said made each box no record accounts for (where it named no public account, that transaction’s inputs’ payment and stake keys and the accounts they were judged against, inputs and judged, judged again on the device once the wallet knows another account; one kept before those were is asked of once more where it knows an account past the first 24, chunk 51’s gap-g6#2, or where it says a deposit made the box, which those keys alone tell the phrase’s own from someone else’s, e1a#1), with the transactions it hasn’t answered for yet that the pool reads ask about again (asking: a count’s or rejudge’s, When it asks), kept until 3 hours after a pool read last listed a box of them; all of that the classic pool’s, as 1.5.0 kept it, with each token pool’s due times and counts beside it under pools (the counts: boxes not mixed yet, of them those Koios hasn’t said the making of, unsure, and those someone else, or another device, put in under the wallet’s key, someoneElse, which Home doesn’t flag, chunk 51’s e1a#1), and every mix in mixes, followed until its boxes are back; and copies, the copy pools a read found the wallet’s boxes in, read while anything of the wallet’s is left there; launches, the pools the wallet started, each with its values (box: its ADA, and its token with the quantity), its set (version: v2, none on a start before 1.8.0; 1.8.0’s release review, pr363#0) and, where Send sent the build without the certificate, the hash its review showed (reviewed), 1.6.0’s release review, 318-worker#1; depositors, a seed’s or Bootstrap’s deposit’s public account or private session once its chain’s record goes, kept as an origin is, 316#1 and chunk 51’s l2rank#3; mixedLeaves, of the leaves kept once a chain’s record goes, those a mix of that chain made, kept with them, so a deposit’s own box never reads as mixed (a leaf kept before it was reads as a box whose making the wallet can’t place, chunk 51’s l2still#2); each chain’s landed, all sent and known in, 321-lj-worker#0; while Bring every box back now goes, every pool’s, one pool’s or the retired pools’ (marked retired), how many it sent and left, why the last box didn’t go, what it waits for (waiting) and whether its withdraws’ confirmation is late (late), bringing, 321-lj-worker#1 and #4; each box its withdraws went for, with its pool and when, kept while a read of that pool lists it, counted, and when a read of the pools is owed for boxes with no due time, recheck: 2 hours after a run that sent withdraws stops, wlj-2’s notes, or at once where the first run on 1.8.0 or later dropped 1.7’s counts of boxes not mixed yet or let a 1.7 Bootstrap go, read once Bring every box back now is over or stopped (a Stop, pressed or the run’s own, never puts it later), and again 2 hours on while a box one of its withdraws went for is still listed and held as spent, 1.8.0’s release review, critic#3, and 1.8.0’s review of its fixes, r2-critic#0; its last run stopped by Stop, its count and its pool or that it was the retired pools’, until it’s asked again, bringStopped, L2; and, for a wallet that had something in the retired pools, when the first run on 1.8.0 or later retired them, once a network, the record’s own retired, a time, where bringing’s and bringStopped’s are marks), and mintedBy.<network> (who paid for each Seedelf minted here), and mintedAt.<network> (the register each Seedelf minted here went under, read from the transaction’s own bytes at Send: the Seedelfs that take Seedelf Messaging’s first messages by themselves; a name with none is one the wallet removed), and lovejoinMaybe.<network> (a mix from the public account stopped at a transaction that may have gone through, written only by Remove wallet while unlocked; final review F1), and, on mainnet alone, contract.mainnet (the private index’s cursor, the wallet’s rows as of it, the newer rows already checked, and v, the rule they were judged under: The private side, under Chain data), and Seedelf Messaging’s messaging.<network> (the inbox) with a conversation.<network>.<id> for each conversation, a family Remove wallet finds by its prefix, messagingRequests.<network> (the crate’s requests, which strangers’ first messages make), messagingRead.<network> (where the next read goes on from, and the rest a read needs, at one fixed size), messagingOutbox.<network> (the user’s envelopes waiting to be posted, copied from their conversations’ records), messagingTake.<network> (the key’s envelopes the reads found that aren’t taken yet, and what of them wasn’t kept), messagingMark.<network> and messagingTakeMark.<network> (what a read’s scan and a take are working on while they run), beside messagingTrap.<network>, not sealed, which says only which of the two trapped, and messagingList.<network> (the relay’s certificate list as the wallet last read it, with the wallet’s own certificates and withdrawals waiting to be posted), beside messagingWithdraw.<network>, not sealed, which says only that withdrawals wait (Seedelf Messaging). See below. |
chrome.storage.session |
seedelf.messaging.expiredAt, seedelf.messaging.paused, seedelf.messaging.readAfter, seedelf.messaging.posts, seedelf.messaging.listed |
Seedelf Messaging’s times and its posting runs, by network: whether the certificate list was read, and the wallet’s own certificates set right, in this unlock (chunk 55’s 55e); when its skipped keys and tombstones were last expired; whether the relay’s off switch has stopped that network, and when a page asks it again (once an hour; the worker keeps a copy in memory); until when its pages wait for the day’s reading (the 1.10.0 gate’s W15 and W16); and what the posting runs keep between them, for a worker Chrome starts again: the waits the relay asked for, on the device’s clock, the strikes of answers the wallet doesn’t know, and where the next run starts, each by the envelope’s stamp digest, never a conversation’s ID or record (the freeze’s fix D). A lock clears them, so an unlock asks again |
chrome.storage.session |
seedelf.dapp.view.<network>, seedelf.dapp.signed.<network> |
The account as the dApp connector last read it (kept 30 s), and the account’s outputs of the last 32 transactions it signed or sent for sites, for chaining and for answering a site’s resubmit with its id (independent review M3, final review F12), per account (…:i for a session); only while unlocked |
chrome.storage.session |
seedelf.moveIn.built, seedelf.mint.built, seedelf.transfer.built, seedelf.withdraw.built, seedelf.remove.built, seedelf.send.built, seedelf.collateral.built, seedelf.session.out, seedelf.session.site-out, seedelf.session.top-up, seedelf.session.mix-out, seedelf.session.tx, seedelf.session.back, seedelf.session.claim, seedelf.lovejoin.public |
Each flow’s transaction as its review built it, kept for Send and recording its network (a Seedelf spend’s with its one-time key’s seed); a payment or a funding in parts keeps each part after the first under <key>.<i>, the first naming them all (keepParts, partHashes), where the transaction view finds each (tx-view.ts); only while unlocked |
chrome.storage.session |
seedelf.pendingTx.<network> |
The payment the pending watch follows, one per network (see Submits); only while unlocked, with a maybe-sent one sealed too (maybeSent.<network>) |
chrome.storage.session |
seedelf.spent, seedelf.spent.sites, seedelf.sent.<network>, seedelf.reserved.<network> |
What the wallet’s own submits spent and when (for 2 hours, the newest 10,000), what sites’ submits spent (the newest 5,000), the transactions it sent there whole, for 2 hours, the newest 16 of its own Sends (each with the public account its review was built on) and, apart, the newest 16 a chain sent (sites are answered from those of the last 20 minutes), and what each chain being sent reserves (a payment’s parts still to go as parts.<first hash>); only while unlocked |
chrome.storage.session |
seedelf.session.chain.<network>.<index>, seedelf.lovejoin.sending.<network> |
A Lovejoin chain being sent, a window at a time: a session’s return, or a mix from the public account; only while unlocked |
chrome.storage.session |
seedelf.waiting.<network> |
Each payment whose parts wait for the one before to be in a block (parts.ts Waiting), by its first part’s hash: every part’s hash, the part each spends the carry of, how many went and when, when the next one’s parent first showed, the payment’s kind, what it is (SpendWhat), a session’s index for a funding, and, once the rest won’t go, why (refused, unseen, cancelled), kept up to an hour more for Home’s banner. Written before the parts that go at Send are sent, so a worker stopped meanwhile leaves them to the pump. Only while unlocked: a lock stops the rest, which the lock countdown and Remove wallet say first (gap-3#6, gap-1#1) |
chrome.storage.session |
seedelf.waitingPart.<hash> |
Each part that waits, as Send kept it (its network, the unsigned transaction and its one-time key’s seed, and what the Seedelf history records once it’s sent), off Send’s keys so the next review can’t take it; gone once it goes or the rest stop. Only while unlocked |
chrome.storage.session |
seedelf.koios.until |
When Koios’s limit lets the wallet ask again, after a 429, so a restarted worker honours it |
chrome.storage.session |
seedelf.readFailed.<network> |
When the last balance reading on a network failed (balances.ts), so Home’s alert follows the worker’s last reading, across a trip to Settings or a reload, until one succeeds (blind test E05); its words stay in the worker’s memory alone. Only while unlocked |
chrome.storage.session |
seedelf.balancesPrivateStale.<network>, seedelf.readingTooLarge.<network> |
That only the kept reading’s private side is behind (privacy review §2.9), and when a reading too large to keep was made; only while unlocked |
private-store.ts) are what the wallet keeps on disk that says something about its user.
seedelf-web-wallet-private-store-v1, info records), derived only while unlocked and zeroed after use (Wallet.withStoreKey). So a record can’t be read while locked, or by anyone without the phrase.JSON.parse reads past the spaces. Sealing hides what a record says, not that it exists: the names are readable, and are created on first use.maybeSent.<network>, see Submits; independent review M2) and a mix from the public account stopped at a transaction that may have gone through (lovejoinMaybe.<network>, see Lovejoin; final review F1), and the pool list, the governance actions and any price kept on disk. It isn’t a secure erase: the browser’s storage may keep old copies on the disk.seedelf.waiting.<network>, partsWaiting), not the sealed records, a session’s funding left to its session’s line (1.6.0’s release review, gap-1#1). With any listed, or the check failed, it needs Remove it anyway, leaving that behind as well as the typed confirmation, and the worker refuses the reset without it (force). Forgot password, while locked, lists nothing.accounts.ts WIPED_ON_SWITCH): seedelf.balances.<network>, seedelf.balancesPrivateStale.<network>, seedelf.accountUtxos.<network>, seedelf.accountAddresses.<network>, seedelf.accountActivity.<network> and seedelf.readingTooLarge.<network>. The contract scan (seedelf.contract.<network>) is kept, because the private balance is one for the whole phrase — which is what makes a switch cost one account read rather than a full scan. So are what the wallet spent (seedelf.reserved.*, seedelf.sent.*), which protect every account from a double spend, and a payment in flight (seedelf.pendingTx.*), whose watch needs no account keys and follows it to the end. A switch is refused outright while something of the account’s may still go out.chrome.storage.session (see above).packages/contract/authentication-prompt/src/store/auth-secret-accessor.ts), and we don’t.lockAfterMinutes) on every check, so a change applies at once.
chrome.alarms alarm checks once a minute, and every request checks too.LockCountdown.tsx). The page asks the worker when it locks (lock-deadline, the last activity plus the lock time), which isn’t activity: every 15 seconds, every 5 while the countdown shows, and when the page comes back into view. While it shows, any click or key puts the lock off at once, as Stay unlocked does; mouse movement doesn’t count. At 0:00 the page asks again, and asking past the deadline locks. While it shows, the page also asks whether a chain through Lovejoin is being sent, on any network (chains-sending, from the device’s record, not activity), and if one is, says “A Lovejoin chain is being sent: locking now stops it partway.” (privacy review §6): a chain is sent only while the wallet is unlocked. It asks whether a payment’s parts wait to go too, on any network, a session’s funding’s included (parts-waiting, not activity), and if so says “A payment is being sent in parts: locking now stops it partway.” (data-parts-waiting; 1.6.0’s release review, gap-3#6).chrome.storage.local, so restarting the worker or the browser doesn’t reset it. The right password resets it.sw.js, the dApp connector’s two content scripts, the WASM asset, and manifest.json (generated by extension/src/manifest.ts), with the _locales its description reads: the Web Store’s summary in each language the wallet speaks.default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; object-src 'none'; connect-src 'self' plus the build’s networks’ Koios and giveme.my origins (CoinGecko’s in a mainnet build), Minswap’s aggregators, the data layer in a mainnet build (networks.ts’s, or a dev or e2e build’s VITE_DATA_ORIGIN), Seedelf Messaging’s relay on the same server (relayOrigin: a preprod-only build lists it for preprod’s pool), and the IPFS gateway only. Styles, images and fonts come only from the extension itself; an NFT’s image the user asks to see comes from the worker as data (img-src 'self' data:).extension/src/ui/styles.css.
#0f141d), surfaces of white at 5 % and 8 %, and faint white borders.#00c4bc is the accent (primary buttons, links, focus, selection), with navy #011833 text on it. Warnings are amber and errors a light rose.color-scheme: dark.woff2 from @fontsource-variable/inter 5.3.0.
extension/public/fonts/, and the licence is public/licenses/inter-OFL-1.1.txt, both copied into the build.lucide-static 1.48.0.
extension/src/ui/components/Icons.tsx, each under its Lucide name.public/licenses/lucide-ISC.txt.extension/src/ui/components/:
Screen is every flow’s layout: Back and the title, a line under it (the step, what’s available, “Nothing is sent until you press Send”), the body, then the error and the primary action. That foot stays in view while the body scrolls, except on a screen whose body must be read to its end first (footSticky={false}: a new phrase, a restore), and on a review in a window 600 px tall or less, whose foot follows its rows (review, which every screen whose button sends what it shows sets: screen--review in styles.css), so its totals come before its button (blind test T04). Its Back is the browser’s Back too (ui/history.ts). headSticky keeps the header, Back and the title, in view as the page scrolls: Settings’ own page, about 2,000 px long, whose way out would scroll away (blind test E05); it keeps under the lock countdown, which keeps to the top too and sets --lock-countdown-h while it shows, and the page’s scroll-padding-top keeps a focused field clear of it.useOpensAtTop(page) in Screen.tsx sets it to 0 before the paint whenever page is new (arrived): Screen keys it by its title’s id and title, so a form turning into its review counts, and a language switch doesn’t; Home uses it (OpensAtTop) for its own view, keyed by the tab and the top bar’s mark, and App for the views that aren’t a Screen (Unlock, the welcome). history.ts sets history.scrollRestoration to manual, or the browser’s Back would put back the offset its entry was left at. A screen Back leads to opens where it was left. Screen’s call passes remember: each page’s offset is kept by its key as the document scrolls, and at a click (read in the capture phase, before the press is handled, since the last move’s scroll event comes a frame later); a Back, the screen’s button or the browser’s popstate, calls pressedBack() in history.ts, and the page drawn in that same task opens at its kept offset (openAt). A page still drawing what it reads is followed with a ResizeObserver for up to a second, until the reader scrolls, presses or types. Home and the app’s views pass no remember and always open at their top, so a sent transaction’s banner is seen, and forget what was kept (Offsets.view): a page Back leads to that wasn’t shown since Home (Voting opened from Home’s “Delegate your vote”, with Staking behind it) opens at its top, not at an offset Home’s own scrolling left under its key. The app’s view drawn round a Screen in the same draw (Settings, the sign windows) doesn’t. A new screen therefore gets this for free; one that needs to bring something into view (the connect window’s amount, CW-2) does it after.ReviewRows and Row hold a review’s details, like Lace’s detail rows; Row’s whole shows an address or a Seedelf’s name entire, under its label, and stack a sentence under its label (Lovejoin’s “Back later”). A value keeps its words whole and takes up to 65% of the row, the label wrapping in the rest, and a shortened ID (isShortenedId, “drep1y2e…2egjc8”) stays on one line. ReviewTotals adds what leaves a balance, fee included, what it holds after, and staking rewards collected; a review shows those rather than its change. StaleFoot is a review’s foot once the worker says it’s stale (code: "stale"): Refresh and review again.Callout is a privacy note (a shield), a warning or plain information. The privacy notes carry privacy.md’s decisions: a restyle can move or shorten one, but never drop it.ActionButton is Home’s round action, its name under it on up to two lines (“Send privately”: the side is on the page, not in the accessible name alone); a disabled one loses its fill. Choice is a segmented switch of pressed buttons, for plain settings, and Tabs a segmented switch of tabs (Home’s two, the Tokens screen’s two). RadioCards is a choice with consequences, each option a card saying what it means: the connect window’s, who pays for a Seedelf, where a removed one’s ADA goes.RefreshRow is Home’s “Updated 2 min ago” and refresh button, on the UTxOs and Activity screens too.Recipients holds a form’s recipients (useRecipients), a card for each once there are several (RecipientCard), Add recipient, the together-too-much note, and the review’s sections (ReviewRecipients: with several, the totals first, then a box for each, so the total isn’t under the Send kept in view; blind test §9.10). DestinationInput is a To field that reads itself and reports what it read, with the text, so a field that comes back after Review doesn’t ask again.TxBanner is a sent transaction’s banner, centred: its status, the Cardanoscan link, and Dismiss once there’s nothing to wait for (Home’s pending banner, the collateral’s “waiting”). Home’s (PendingBanner) words a public Bootstrap apart from a mix: its watch carries PendingTx.bootstrap, so it’s “A Bootstrap” in every title, and once in, “In Lovejoin, held there until you bring them back”. Its done title counts the boxes publicSubmit put on the watch (PendingTx.boxes), in the singular for one while the balances show, and in the plural for a watch with no count, from before, and while the balances are hidden, as every count of boxes is then (useAmounts().hidden; 1.6.0’s release review, 318-worker#0, and its review of the fixes, LW-2).Splash covers Home while its first reading loads (useSplash: shown only after 150 ms without data, at least 600 ms once shown, a 320 ms fade out, and never more than 8 s).Modal is a <dialog> centred over the page, capped at the window’s height with its body scrolling, so nothing is cut off in the side panel. TokenList holds TokenRow, TokenAvatar and TokenDetails (a modal).TokenAmounts is a token picker after Lace’s “Add assets”: Add tokens opens a searchable Modal (select, Select all, Add), and only the picked tokens get an amount box, with Max and ×. Move in, Send and Withdraw use it, so a wallet with hundreds of tokens never lists them all in a form. Modal takes an optional foot that stays in view while its body scrolls. Forms and reviews name tokens by tokenLabel, the list’s ticker when there is one.AdaInput (with MinimumHint and MinimumNote), TokenAmounts, CopyButton, CopyField, QrCode, PhraseInput, PhraseGrid and SetPassword.AmountField (an amount’s box, its commas regrouped as it’s typed), PasswordField, Destination and Contacts (a To field and its contact picker), Clearable (a × that empties a field), Hint (an explanation behind an icon; with Hinted beside a heading or a label, and Screen’s hint beside a title), MiddleEllipsis, BuildStage (what a build is doing, as the worker reports it), PendingBanner, PaidRows, LeftOut, HistoriesNote, HandleWarning, ExplorerLink, SessionLeft, LovejoinReturn, LockCountdown, NetworkBadge, NetworkPicker, AccountPicker and AccountRecipients, TxDetail and PlutusTree, and NftImage.extension/src/tokens/list.json pins each token’s unit and the ticker the Cardano token registry must give it. npm run tokens (scripts/tokens.mjs) reads the registry through Koios asset_info, fails on a ticker that doesn’t match, reports other registry entries claiming the same ticker, shrinks each logo to a 96 px WebP, and writes src/tokens/registry.<network>.json. It runs at each release.src/ui/tokens.ts names, sorts and searches tokens. A token off the list never gets a listed token’s ticker or logo, however it’s named. Only a mainnet build carries the mainnet list.doNotList, true, or JSON-LD’s @value of it), per network, bundled like the token list, so the vote page searches DReps without a request. One that asks is left out of the list, out of later passes and out of the committed-name fallback below, and its leaving isn’t counted as a loss; a pasted ID still finds it (chunk 51, gap-g7#2). npm run dreps (scripts/dreps.mjs) reads drep_list and then drep_metadata’s names and doNotList, 75 IDs a request, and writes src/dreps/<network>.json ([id, name] pairs, by name). It runs at each release. Koios’s servers can disagree about DRep metadata (single-pass runs once named 371, 407 and 406 mainnet DReps against the 449 committed, each missing a different set), so the script asks again for the DReps still unnamed, in up to three passes in all, the first included (PASSES). A DRep the committed list names that’s still registered but that no pass names keeps its committed name: CIP-119 requires a name, so a missing one almost always means the server lacks the metadata. A list that would still lose more than 5% of the committed one (MAX_LOSS) is refused with nothing written (development.md, step 3). src/ui/dreps.ts searches it; only a mainnet build carries the mainnet list.
<button>: primary, secondary, danger, link, icon-button and chip.extension/public/).move-in, withdraw, transfer, seedelf/cardano sides), and so do the docs’ internals (flows.md, Names).seedelf-wallet-v1, seedelf-key, seedelf-one-time-key-v1), which can never change.seedelfShort in shared/seedelf-name.ts; the owner, 2026-11-24): its prefix, “…”, its last sixteen, a no-break space, “#” and its output index, for every screen and the worker’s own words. It helps tell two names apart and is never an identity: flows.md says what it can’t tell apart, and tests/seedelf-short-form.test.ts holds each case.extension/tests/words.test.ts parses every source file and fails on a lowercase “seedelf” or a “Seedelf wallet” in any text a person could read. Most of that text is in the translations, and extension/tests/i18n.test.ts checks the same in every language.extension/src/i18n/translations/<code>.json, and nothing fetched. It’s i18next alone, initialised synchronously in English when src/i18n/core.ts is imported, so a component rendered bare in a test already has its words. startI18n() then switches the page (ui/main.tsx, before the first paint) and the worker (sw.ts) to the stored choice, or else Chrome’s language when it’s one of the three. Screens use useT, and <Rich> for markup inside a sentence, by named ``; plain functions and the worker use t(). The reasoning is in the record of the language design, archive/plans/chunk-19-language.md.
seedelf.language, unsealed in local storage, because onboarding, Unlock and Reset are shown before anything is unlocked. Remove wallet keeps it (see Storage)._one and _other, Spanish adds _many and Japanese has _other alone, so the files are held to the same keys by base key (tests/i18n.test.ts). Sentences and lists are joined with joinSentences and joinList (src/i18n), and a reason’s full stop set with withStop (ui/sentence.ts), never with a space or “, “: Japanese sets nothing between sentences, and lists with 、.t() at module level. Imports run before the stored language is read, so a const holding a sentence would stay English for the page’s life: every such text is a function./locked/i on the lock error, a stored “Private session N” read back by pattern) breaks in Spanish and Japanese. Typed errors (WalletLocked), stored numbers and reason codes do that job.vite.config.ts imports, never reach i18n. content/page.ts runs in the page’s own world, where chrome is undefined, so a module touching it at load kills window.cardano.seedelf; and Vite loads src/manifest.ts’s graph with Node. tests/import-boundaries.test.ts walks both import graphs.scripts/i18n-critical.mjs): the keys inside <Callout tone="privacy">, <Callout tone="warn">, anything with role="alert" and anything whose class the source spells with a --warn modifier (a lookalike token’s mark, a pool’s or a DRep’s shared-name tag; chunk 51, e9b#2), plus any key named .warn. or .privacy.. A warning whose words come from a helper, a const, a prop or the worker has to carry that name, and tests/i18n-critical-helpers.test.ts and tests/i18n-worker-reasons.test.ts fail on one that doesn’t.content/bridge.ts’s two messages to sites, and numbers: their toLocale* and Intl calls keep en-US’s grouping, so an amount reads as its field writes it (“1,234.5”), which a Spanish “1.234,5” would contradict (O8). Dates and times follow the language: dateLocale() in i18n/core.ts maps en → en-GB, es → es-ES, ja → ja-JP, read at each use.packages/module/views-extension/src/default-open-mode/; Lace’s default is the side panel). The panel stays open beside the page as the user browses. Switching opens the wallet the new way at once and closes the page it was chosen on, as Lace’s does.action is empty).?view=tab, a centred column, and ?view=panel, the narrow layout (the popup’s, at the panel’s width, up to 520 px). In the panel an “expand” button opens the same app in a tab.sidePanel permission, and Chrome 116 (runtime.getContexts).It serves the public account and private sessions. The records of its design are the archived plans for the public account and private sessions.
flowchart LR
subgraph Tab["A site's page (top frame)"]
P["cip30-page.js<br/>window.cardano.seedelf"] -- "postMessage" --> B["cip30-bridge.js<br/>(isolated world)"]
end
B -- "port seedelf.cip30<br/>(origin from Chrome)" --> D["dapp.ts"]
D -- "approvals" --> W["The connector's window<br/>(?view=dapp)"]
D -- "inspectDappTx, signDappTx,<br/>signDappData" --> X["WebAssembly (cip30.rs)"]
D -- "reads, utxo_info, submittx" --> K["Koios"]
cip30-page.js lists { cip: 95 } in supportedExtensions, passes enable() an extensions request only when the site made one, and gives the API a cip95 namespace only once getExtensions() says it was granted. The grant is cip95: true on the site’s sealed record (DappSite), for the public account only, and a refusal cip95Declined: true, so it isn’t asked again until the site connects anew; the connect question carries governance (and connected, asking for it alone), and dapp-answer the window’s switch (governance, off by default). A declined or closed question for a connected site resolves its enable() with true: it keeps its connection. getPubDRepKey is drepOf()’s public key; the stake key lists are stakePublicKey() with one account_info. For signTx and signData the worker passes governance, and only then does cip30.rs’s Keys hold the DRep key’s hash: the account’s own RegDRepCert, UnRegDRepCert (its refund counted as the account’s) and UpdateDRepCert, and votes by Voter::DRepKey of it, become Signer::Drep (drepAction on the certificate, ownVotes on the summary); signData takes the DRep’s ID (hex, CIP-129 or CIP-105) or its key’s enterprise address, with the key hash in the COSE address header, as Lace writes it. A session’s WebAssembly entry points force governance off whatever they’re sent. The DRep key’s signature is refused over an input the wallet can’t find, as a payment key’s is, since it spends whatever sits at an address paid to its key’s hash, its own enterprise address or the hash under any staking part.dappConnector in the settings) is off by default.
ui/sites.ts). The worker then registers the two content scripts (connector.ts).reachOpenPages, from preferences-set, not waited for): tabs.query for the connector’s origins, then scripting.executeScript of each file into each tab’s top frame, in its world, with the access the switch was just given and no permission more. A tab Chrome discarded loads the registered ones as it wakes, and one it keeps scripts out of (the Web Store) refuses: both are left. A page whose own world has window.cardano.seedelf already is left alone too, found by a probe run there first (executeScript with world: "MAIN"): it holds this wallet’s scripts, maybe an earlier version’s cut off from the worker by an update or a reload, whose bridge answers “Reload this page” at once. A second bridge there would still send each call on, so a site that gave up could have a window open, or a transaction sent while it heard it failed (the blind test’s cross-area review; independent review M3). The bridge’s own mark can’t see an earlier version’s, which runs in another isolated world. Never at a start or an update either. Each script keeps one copy a page (below). A site that looked for wallets only as it loaded still needs a reload, and the switch says so.chrome.permissions.remove of https://*/* also takes every https host under it, Koios’s and giveme.my’s included, and the wallet can’t read Koios without that grant (see Koios’s public tier above). Chrome’s own settings taking it away turns the connector off too.dappAccount in the settings; Eternl’s model): every site connected to the public account reads with it (withDappKeys in dapp.ts), whichever account the wallet is on, so switching shows a site nothing new; a signature is read, shown and signed with the keys of the account its reading was for (withViewKeys, View.account), never the setting read again (1.3.0’s release review, C26). Settings → Sites → The account sites use changes it, and says every connected site then sees the new one. A signature already waiting when it changes is declined: it records the account it was read and checked for (Waiting.account, from View.account), and Settings’ change declines it with CIP-30’s AccountChange (dappAccountChanged), which asks the site to enable() again. One still being read is refused the same way, before it’s shown (C27): its last look at the account (sameAccount), read in one turn with the network’s (sameNetwork), comes last before ask, which puts it in waiting at once, and Settings writes the account before dappAccountChanged runs, so a change is seen at the look or finds it waiting; a fresh read for an input the kept reading lacks reads that same account (view’s pinned). answer, stillConnected and a last look before signing (sameAccount) refuse one approved after a change, and the keys that sign are the reading’s account’s whatever lands meanwhile, so the new account’s keys never sign what was inspected for the old one. A connect waits on: no account is read for it. Lace pins an account to each site at connect instead (sessionAccountByOrigin, checked 2026-10-07 at e431933), so its own setting can’t change under a waiting request, and it refuses a signData whose site was bound anew meanwhile with AccountChange too; a signTx it doesn’t, signing with the account bound at approval. One dApp account stays the model: a site wanting to be kept apart from the others connects through a private session.src/content/): each is one file with nothing imported at run time, built as an IIFE by a plugin in vite.config.ts, because Chrome runs content scripts as classic scripts.
cip30-page.js defines only window.cardano.seedelf, and never replaces an existing entry.cip30-bridge.js takes the page’s calls (only from the same window and origin), sends them on a port, and pings every 20 s while one waits. It listens once a page: a mark on its isolated world’s window, which the page can’t see, keeps a second copy (put in by reachOpenPages where one ran before the switch was last turned off) from sending every call twice.dapp.ts) checks each port: this extension, a tab, the top frame, and an https origin or localhost’s. The origin is sender.origin, never the page’s word.
dapps record, each with the page’s title as it asked (DappSite.title, from Chrome’s tab, one line of 80 characters at most): the site’s own words, so the lists show it after the address (blind test E03). A change to it broadcasts DAPP_CHANGED, so Home’s dApps row and the dApps page read the list again.isEnabled answers from the connected sites the worker last read, so a connected site still reads as connected (privacy review §2.11; a worker restarted since, which hasn’t read the record, answers false). Reads are refused at once, in the words a stranger hears. enable(), signatures and sends wait for an unlock in the window, unless the page went away, the site already has 5 requests waiting or the window 20 (MAX_SITE_WAITING, MAX_WAITING), or the site is in its refuse window (below).REFUSE_MS), while the wallet stays locked, that site’s signatures and sends are refused unasked, in the not-connected words, never “Seedelf Wallet is locked.” (independent review L36). Its enable() is declined too, unless the worker knows it as connected. A connect question declined or closed on refuses that site’s enable() for the same while, locked or not. The while is 10 s, then 60 s, then 5 minutes for each refusal in a row (refuseFor; back to 10 s after REFUSE_RESET_MS, ten quiet minutes, or once the site connects), counted once per site for each close, and a refused enable() hears how many seconds are left (declinedWait, the same words locked or not): a flat minute of “The user declined.” would leave a user who cancelled by mistake stonewalled (the usability review’s CW-3).declineWaitMs, the wait a decline now would start (nextRefusal), which the window states over Decline; dapp-answer returns waitMs for a declined connect, which the window states before it closes. dapp-declined lists the sites refused now (declined: origin, title, until, and retried once one asked again, which askedAgain broadcasts once a refusal, so a page asking in a loop can’t make the wallet’s pages read in one), only those declined on the network the wallet is on, never a connected site (one whose signature waited behind a closed unlock window is turned away the same way, but wasn’t declined), and none while the connector is off; and dapp-let-ask ends one (letAsk: the user’s pages only, so the anti-spam holds; a decline after it still counts as one in a row). Both are refused while locked. The lists read again every 5 s while one shows, rather than count down a reading.SESSION_DAPP_REFUSED: origin, until, the count, the network, retried; never a title, which stays in the worker’s memory), read back once (readRefusals) before a site’s call or a list, written after each change in turn (keepRefusals), and dropped, counting for nothing, at the first write ten minutes or more after their wait ended. Nothing drops one sooner, so it can stay until the browser closes. A lock keeps them: Wallet.wipe reads them before it clears session storage and writes them back after, as it does seedelf.sends, so locking doesn’t let a declined site ask at once, even in a worker that hasn’t read them yet (written back from the worker’s memory instead, a fresh worker’s lock would lose them). Remove wallet drops them, and the worker’s copy with them.enable() waits for it, and asks its own only if that page went away. While locked, a site’s enable() calls from several tabs take one place together.gone) has its waiting requests and unlock waiters declined, and a sent funding’s wait ended (the site stays recorded to its session). Its calls still running then put nothing in the window afterwards (pageCalls, gonePages; independent review L31, L35). Its connect question, or its wait for the unlock, left unanswered counts as a decline, as closing the window on it does (refuseFor), so a page can’t bring the window back by reloading; unless another page of the same site has an enable() running, waiting on that question, on the unlock before it or still on its way to it (enabling, counted from the call’s first line, before anything it awaits), which asks itself and a refusal would turn away (chunk 51, G6’s note, sign#3). A page waiting for the unlock to sign, or to send, spares nothing (sharedBeyond: chunk 51, the owner’s B7, l4code#3). If that page leaves too before it asks, the decline lands then (spared; l2sign#1), unless the page that left only waited for the unlock and the wallet was unlocked since: that wait is answered, and a connect question left stays owed (l3still#4). A page gone on its way is never listed as one that asked again.readAccountUtxos (two requests), kept 30 s.
VIEW_MS in dapp.ts) is the lever.seedelf.spent.sites, SPENT_KEEP_MS), so a site’s transaction that never lands hides its inputs that long, and nothing but a lock clears it.utxo_cbor writes it as the output’s key 3; chunk 51, w2#4): Conway’s fee counts a script on a spent input, so a site pricing its fee from a UTxO handed over without one came up short, and the node refused its transaction. Anyone can pay the account such a UTxO. Koios and the data layer give a Plutus script’s bytes but not a native script’s (only its JSON, which the worker drops), so a UTxO holding a native script, or any script the wallet can’t write whole, is left out of getUtxos and getBalance alike (handedWhole in dapp.ts, utxos_cbor), never handed over without it. An output of the account’s in a site’s signed transaction keeps the script it carries, read as the transaction writes it (OwnOutput’s referenceScript), for the site’s next transaction.getBalance writes a token’s total past a u64, which no CIP-30 Value holds, as u64::MAX, CIP-30’s own ceiling (value_cbor; chunk 51, w2#5): a stranger’s three mints of one token to the account pass it together, and the whole call failed for every site. The sign window’s sums of a token, what the account’s inputs and outputs hold, are u128 for the same reason, so a site’s transaction spending such UTxOs, which the ledger takes, is read exactly, never refused.getCollateral is the set-aside 5 ₳ UTxO, or null. It’s null too while the account’s own Lovejoin chain being sent needs that UTxO, and a site’s transaction can’t spend it or put it up as collateral then (heldForLovejoin, independent review L32). A mix from the public account stopped at a transaction that may have gone through holds only that transaction’s inputs, never the collateral, and the refusal says so: “… or that one which stopped at a transaction that may have gone through still holds …” (final review F2).amount over 8 KiB, a signData address over 512 characters, and a value naming more than 1,000 policies and tokens together are refused before WebAssembly reads them (independent review M15).inspectDappTx for the prompt, signDappTx once approved. Both get the same request: the transaction, the account’s key paths, and the UTxOs it spends as far as the worker could find them (the account, then its signed transactions’ outputs, then Koios utxo_info).
ownPaymentKey).inspect reads each contract input it found: contract*, what they hold; released*, what doesn’t reach the account, each asset on its own so ADA paid back can’t stand for a token taken, and money kept at the same contract counted as gone, since a listing can stay there under a new owner’s datum; namesKey, one of the account’s key hashes in a contract UTxO’s datum, the row’s or, kept by hash, the one the transaction carries; keyReleases, one of the account’s keys is a required signer, or named by such a datum (for a contract that takes another proof of its owner: its own input spent, a withdrawal, a certificate or a vote), or a contract input sits in a body with no script data hash, which can only be a native script’s, satisfied by the witness alone. That last is read from the body because only the body is signed: a site can leave a native script out of the witness set it shows the wallet and add it after. The total stays the account’s: a contract UTxO may be someone else’s, with the key only co-signing. With keyReleases and anything released, the window adds a row under the total, “From a contract, not to you”; a warning before who it pays, which with namesKey says the contract names the user and the funds may be theirs; and a switch Sign waits for, held per request: “I expect this not to come back to me”. Without them, a note says how many contract UTxOs it spends and what they hold.
MOST_FEE_ALLOWED, over the largest fee a transaction needs at today’s parameters, about 8.9 ₳, though a fee can be set higher): a contract holding up to 10 ₳ burnt as fee under the key shows only the note and the fee row, and a larger one’s row reads up to 10 ₳ short (1.9.0’s release review, L4).keyReleases its line says only that what it holds can’t be shown, without “Only your stake key signs here”, since that key may be what a contract asks for (1.9.0’s release review, L3). An unfound input released by a withdrawal or a certificate of the stake key sets no keyReleases (there’s no datum to read and no required signer), so its line stays: the window can’t tell it from an honest delegation or zero withdrawal (1.9.0’s review of its fixes, r2-window#3).stakingLovelace: its rewards withdrawn and its deposit refunded) as it counts its UTxOs, wherever they go.partialSign says, it also refuses a payment key’s or the DRep key’s signature while any input or collateral is one it can’t find (it may be the account’s own, not on chain yet; the DRep key’s own enterprise address is how signData names it). The stake key’s still signs over those: no wallet hands out or pays an address paid to its hash, so a UTxO there the wallet can’t find is one its data source left out. It also refuses an old-style deregistration of the account’s stake key (its refund isn’t in it), and a pool registration naming the account’s stake key an owner.WrongNetwork, WrongNetworkWithdrawal, WrongNetworkInTxBody), and the wallet already refuses each that names the other one; an input it found is this network’s. So the other network’s transaction could only ever pay no one, and a deregistration’s refund there could go only to the fee, a treasury donation or a deposit of the site’s own (a stake key or DRep it registers and takes back later): the check refuses it whatever the refund pays for (1.5.0’s release review, C25).mix_logic reward account, a session’s too, before the window opens, in dapp.lovejoinRewards’s words. WebAssembly’s summary names the scripts whose reward accounts it pays into (paidScripts: a stake pool registration’s reward account, a proposal’s deposit return, a treasury withdrawal’s payee), and LovejoinService.mixLogicHashes gives the mix_logic hashes of the classic pool and of every pool discovery keeps, retired ones and copies included, read or not (everyKept), asking nobody. So the set doesn’t depend on where the wallet’s boxes are (1.8.1’s release review, guard#1, v-guard#1), but it does on which pools this device has found, which a site can probe (privacy.md’s Connecting a site).ties, independent review M12), asking Koios nothing: every public account the wallet knows, by its payment keys (both chains, 0 to 19, and for the one on screen any past that the last reading found) and its stake key, less the site’s own when it’s on the public account (the dApp account the request is read for; C05’s public half); and the other sessions, by payment key and by their own stake key apart, as public accounts are, so one session’s key under another’s stake key ties both (1.5.0’s cross-area review, X07). An output is named by who can spend it, its payment key alone (“Your private session N”, “Your public account”, or with several accounts the account by number and name, “Your public account, Account 3 · Savings”: DappTie’s { account }). An address one of the wallet’s keys spends, the site’s own included (WebAssembly’s ownPaymentKey), ties every account whose key it carries (ties): one account’s payment key under another’s stake key ties the two, and the prompt warns that signing ties them on chain (“It moves money between …”). So does an address paid to one of the wallet’s stake or DRep keys’ hashes, which that key’s witness spends (as an input is the account’s, above): it ties that account or session, while its output still reads “An address”, since the wallet never reads it (1.7.2’s release review, pr358#0). An address none of the wallet’s keys spends, someone else’s or a contract’s, that carries one of the wallet’s stake keys, paid or spent from, is never named as that account’s: it reads as WebAssembly read it (“An address”, “A contract”), and a warning of its own (staked, dappUi.ties.privacy.staked) says someone else’s address carries that account’s stake key, that the money isn’t the user’s, and that signing still ties the two on chain (1.5.0’s release review, C01). A payment key past that range, under one of those accounts’ stake keys, has that account’s keys looked for further first, up to the 500th on each chain (fartherKeys in chain.ts, Lovejoin’s own look for what made a box: at most 960 derivations an account, on the device), and is named that account’s when found; only otherwise is the address someone else’s (1.5.0’s cross-area review, X06). A certificate, a withdrawal or a proposal that names another of the wallet’s stake keys ties it too (certified, X05). WebAssembly’s inspection gives each stake certificate the key hash it names (credential: a registration’s, a stop’s or a delegation’s, alone or together, and a stake pool’s registration’s reward account’s), and each withdrawal its reward address, but its own is the signing account’s alone, so the line read as someone else’s (“a stake key that isn’t yours”, “a reward account that isn’t yours”). The line names the account or session instead (yours, as an output’s: “A certificate for the stake key of Account 3 · Savings”, “Withdraws 2 ₳ from the reward account of Account 3 · Savings”), and a warning of its own (dappUi.ties.privacy.certified) says that signing ties the two on chain. A proposal’s deposit goes back to the reward account it names when the action ends, which takes no signature of that key’s either, so a site can name anyone’s: WebAssembly gives each proposal its action, deposit, reward address and stake key (credential, none for a script’s), and the line says whose it is, “comes back to your public account”, “comes back to the stake key of Account 3 · Savings”, or “goes to a stake key that isn’t yours, stake1…” with the whole address. A session’s own stake key or another session’s “goes to the stake key of this private session (your private session N) when the action ends, and the wallet never brings it back”: nothing in the wallet reads or withdraws a session’s rewards (1.7.2’s release review, critic#0). The staking callout is a warning when any proposal’s isn’t the account’s own, and for any proposal in a session. A treasury withdrawal’s recipients take no signature of theirs either: WebAssembly gives each proposal their stake key hashes (recipients, none for a script’s), and one that is another of the wallet’s stake keys ties it (certified; 1.7.2’s release review, pr357#0). A proposal is refused only where the ledger refuses its deposit’s reward account: on the other network, or one that isn’t a reward address. A treasury withdrawal’s recipients never are, though the ledger refuses the other network’s. An old-style registration needs no signature of that key’s, so one signature completes it: a public site’s transaction could register a session’s stake key, its deposit paid from the public account. Nor does a pool’s reward account: a pool’s registration is signed by its operator and owners, so with partialSign a site that runs a pool can make another of the wallet’s stake keys the pool’s reward account in a transaction the account signs; its line stays the pool’s (“Registers stake pool …, or updates its terms.”), with the warning (1.5.0’s last review, L1). A deposit a site pays to register a session’s stake key has no way back through the wallet (the backlog; L2). A script’s withdrawal, such as a contract’s “withdraw zero”, a pool’s reward account that’s a script’s, and a pool’s retirement or a DRep’s certificate name no stake key. The prompt says the other side isn’t in it only when it checked and found none of these. It never refuses, so the site learns nothing. Sessions this device doesn’t have in its record aren’t matched. Not covered (L3, L11): a key past that range anywhere but under its own account’s stake key. Under another account’s or a session’s stake key it reads as someone else’s (staked); under none, or a stranger’s, it isn’t matched, so a session’s prompt can still say the public account isn’t in it. The user’s own Seedelf register under one of their stake keys reads as someone else’s too, beside “It pays a Seedelf” (C01’s rule; neither the wallet nor the CLI makes one). Nor is one of the wallet’s other key hashes matched where a stake key goes: a public account’s payment or DRep key, or a session’s payment key, as a certificate’s credential, a reward account (a withdrawal’s, a proposal’s deposit’s, a treasury withdrawal’s recipient’s) or an address’s staking part: a stake certificate’s or a proposal’s line calls it “a stake key that isn’t yours”, a withdrawal’s “a reward account that isn’t yours”, an output to the signing account’s own payment key “a stake part that isn’t yours”, and a pool’s registration, a treasury withdrawal’s recipients and anyone else’s address don’t name it (1.7.2’s review of its fixes, r2-worker#0); nor a committee update’s members, or a committee hot key’s authorisation (r2-critic#0). Saying either needs words of its own: both are in the backlog. When the check can’t run (the accounts’ or the sessions’ record unreadable), a certificate’s, a withdrawal’s or a proposal’s line says “isn’t yours”, and the prompt doesn’t say the other side isn’t in it.heldForLovejoin and keptApart (independent review L33).dapp-window.ts, screens/DappApprovals.tsx): a popup, one at a time. Closing it declines everything but a funding already sent, and it closes itself once nothing’s left: 0.8 s on, or 4 s after the user declined a site, or everything with Decline all, which it says meanwhile (blind test T17). Every screen says how many wait behind it, with Decline all, a private session’s funding’s review and its wait once sent included (CW-7; chunk 51, e3b#3): Decline all leaves a sent funding be. A request’s title is capped as the lists keep it (one line, 80 characters). It holds 20 requests at most, 5 of them a site’s.session: i). Each call resolves whom the site talks to, the public account or session i, and every path branches on it:
SessionService.accountUtxos, its reward address (OneTimeAccounts.rewardAddress, stake key 2/i), and a pure 5 ₳ UTxO at its account (the funding’s, or a top-up’s) as its collateral, kept out of getUtxos. The reading and the signed outputs kept for chaining are stored per account (…:i).inspectSessionTx/signSessionTx and sessionDataSigner/signSessionData, with stakeIndex: i so the session’s own stake key counts as its own. The prompt says “Your private session”. A signature isn’t given if the session ended while the user was asked: it first records what the transaction pays the session’s account (siteSigned, below).dapp-private-build builds its funding (siteOutBuild, Make public’s builder). dapp-answer with fund sends it (siteOutSubmit, recorded first) and records the site with the session.funding, and the worker reads the account every 10 s until the money is there. Only then does enable() answer.enable() from a site linked to a session, and every call it makes, go through funded(), so a reload, a second tab or a locked wallet never gets the partial session: while the funding lands they wait, the calls waiting at once sharing one read of the account a poll (siteFunding, which reads only for a funding in parts not all landed), up to FUNDING_WAIT_MS (20 minutes) a call, then refused as not all on chain yet (dapp.fundingNotAllThere). Short, or never landed: the site’s link to the session is dropped and the call refused (dapp.fundingShort, dapp.fundingNeverLanded), so its next enable() can’t take what came, which waits on the dApps page to be brought back.topUpBuild/topUpSubmit; it adds a new 5 ₳ collateral when the account holds none it could put up, since a return takes the session’s, independent review M9), Bring it back (the session return), and Disconnect (disconnectSession: the account must be empty, and the site’s record goes, unless something left behind is still at its account). A site’s session doesn’t close at its return, only at its disconnect: something still open at the site may pay the account later.
SessionService.disconnect; the launch review, H7), since nothing reads a closed session again: a return’s chain still being sent, or any of the session’s transactions not on chain yet (a funding, a top-up, a return; tx_status), unless the chain hasn’t shown it in 20 minutes (a funding or a top-up may still hold it up to 2 hours: below). A funding or a top-up the wallet’s watch still sends (pending.ts, maybe sent, in chrome.storage.session or its sealed copy) counts as on its way whatever its age, and one the watch sent again and Koios took counts its 20 minutes from then (final review sessions-6). Forget waits for the same. It reads the account as Koios lists it, with what the wallet spent: a return that never lands leaves its inputs there. What no return takes doesn’t count. Settings’ Disconnect has no check of its own, so this is the one.
outs) before it’s sent, and each transaction a site signs for the session what it pays it (siteOuts, the newest 40 outputs), before the site gets the signature (siteSigned). Disconnect asks utxo_info about them (ownGone): each one Koios knows must be spent, or still at the account as left behind. One of the site’s own it doesn’t know passes (a site may never send its own). One of a funding or top-up it doesn’t know refuses once that was seen confirmed: “Koios hasn’t caught up with this session yet, so the wallet can’t be sure its account is empty. Try again in a minute.” It refuses too while that funding or top-up hasn’t been seen and may still land, for 2 hours after it was sent: “The chain hasn’t shown this session’s funding, or its top-up, and it may still land: … Try again then.” (final review F13). The runner’s close and the list’s close check the same, and wait for the next read. Sessions recorded before outs existed have none, and end on the read alone.fundingSeen), the worker’s runs by tx_status (below), a refresh of the list, or Disconnect’s own read. From then on, only Koios showing its outputs spent, or still listed as left behind, ends the session.claimBuild/claimSubmit, screens/ClaimAll.tsx): every session that holds something and isn’t a swap that runs itself, with no order waiting and no return’s chain through Lovejoin still being sent (1.5.0’s release review, C09), comes back in one go.
dappPassword setting, on by default): a site’s signTx or signData is signed only once the password typed in the window checks out (Wallet.checkPassword), even while unlocked and even right after an unlock. A wrong one leaves the request waiting, tells the site nothing, and counts towards the unlock back-off. Only the wallet’s own pages can answer a request: the worker refuses requests from anywhere else.A private session funds a one-time account from the private balance, swaps there through Minswap’s aggregator, and brings the result back into the private balance. The swap runs itself after one approval. It’s reached from the dApp browser (screens/Dapps.tsx: Home’s dApps row, a grid of tiles, Minswap’s opening screens/Swaps.tsx). The flow is in flows.md.
flowchart LR
UI["dApps → Minswap<br/>(Swaps.tsx)"] -- "sessions, swap-quote, session-out,<br/>session-advance/stop/resume" --> S["sessions.ts"]
A["chrome.alarms<br/>seedelf.sessions, unlock"] -- "runAll" --> S
S -- "estimate, build-tx" --> M["Minswap's aggregator"]
S -- "credential_utxos, tx_status,<br/>utxo_info, datum_info, epoch_params,<br/>address_utxos, tx_info, submittx,<br/>account_addresses, account_txs" --> K["Koios"]
S -- "buildWithdrawParts, buildWithdraw (out),<br/>readDexOrder, checkOrderCancels,<br/>buildOrderCancel,<br/>inspectSessionTx, signSessionTx,<br/>attachWitnesses, buildSessionReturn" --> X["WebAssembly"]
OneTimeAccounts, a type of its own so nothing that pays the public account can be handed these keys): account 24301' (seedelf_crypto::cardano::ONE_TIME_ACCOUNT), payment key 0/i and stake key 2/i for session i, both its own (api::one_time_address; the wallet never registers the stake key, and a site on another account that puts its registration in a transaction has the prompt name the session: dApp connector, ties). Sessions recorded before sessions had stake keys of their own carry the shared Seedelf staking part instead (sharedStakeAddress, address::dapp_address), and keep it: the record’s ownStake says which. Session 0’s key hash and both its addresses, for the 12-word test phrase, are pinned in wasm/tests/session_test.rs, checked with cardano-address.sessions.<network>: the next index, and each session’s index, its transactions (funding, swap, cancels, return) with whether the chain has them, and its swap as quoted, with how its two tokens are shown.
scan, the session-scan request) rebuilds what a restore lost: it walks the one-time stake keys 20 at a time, and adds each used account the record doesn’t know that holds something, or has an order open, as a session found (recovered), with its funding, its swaps’ orders (found through the swap that placed them) and its own transactions beside the funding (recovered.own): what its key signed, and what this phrase’s private balance paid it, a funding’s other parts and a top-up, each told by the register of the first UTxO it spent at the wallet contract (1.6.0’s release review, x-scenarios-sessions#0). It has no auto, swap, site or mix: it comes back by hand, from its page on the dApps page (Swaps.tsx’s Session, with no Place the order) or Bring everything back. It runs after a restore’s look for public accounts, under way from the restore on, so Find leftovers pressed meanwhile shares it, and from Find leftovers. A restore marks every network’s sealed session record first (Book unscanned), and the first scan that finishes on a network clears it, the restore’s own or Find leftovers’. A scan that doesn’t finish writes nothing, so the mark stays: a read that fails after its retries (on mainnet, on both servers), a server behind the one that showed an account used (C14), a lock, a worker stop. So does the network a restore doesn’t look at. One cut off by Remove wallet writes nothing into the next phrase’s book either: a scan is tied to the phrase it started on, and SessionService.reset lets it go (C16). While a network is marked and no scan runs there (session-scan-due, from the device alone), the dApps page’s After a restore points to Find leftovers, and so does Home’s Wallet restored note once the restore’s own scan has ended unfinished (1.5.0’s release review, C19). What it asks, and what it can’t find, are in keys-and-accounts.md.stillUnused, independent review M13), though two browsers funding sessions at about the same time can still share one (see keys-and-accounts.md).SessionRecord.parts, an out record for each, all recorded before any is sent) is funded only once every part has landed or what it paid is listed at the account (fundingState): until then the stage is funding and nothing runs. With some landed and every other turned away, never shown in 20 minutes or stopped (unsent, missed), it’s short: the session pauses (SessionPause short) for the user to bring back what came, as Stop brings it, and a site’s is refused to the site. None landed is never funded, failed as one transaction’s is. A part that lands late after all is the funding’s again, and lifts the pause. A stopping session never pauses short, so Stop brings back what came; a failed funding that turns short lifts failed, so the pause, Stop and Bring it back work; Try again on a funding none of whose parts landed fails it again; and a part waiting for the one before (waits) is neither late nor missed while the parts’ record holds it, its clock starting as it goes.partsMayGo, parts.ts mayGo): not for a session stopping, stopped, failed or over, one whose return is built and still sendable or on its way, or one the wallet no longer keeps. Those parts are then cancelled and marked unsent (partsStopped, in the sessions queue), so the session brings back what came rather than paying for the rest and another return. A Send’s parts always may, and the sessions’ record isn’t read for them.buildWithdrawParts, or buildWithdraw for one that always goes as one transaction): two payments to the account, the swap with its costs (Minswap’s DEX fee and deposits, plus 2 ₳ of room, SWAP_MARGIN) and 5 ₳ of collateral (SESSION_COLLATERAL). Too much for one transaction (a token spread over more UTxOs than one spends, sold privately), a swap’s, a site’s or a new mix’s funding goes in parts, as Send’s do (Transaction building), the collateral in the first, each picked by funding’s order (Purpose::Fund) and by history first. A top-up, a collateral top-up, Mix my boxes again’s funding (whose mixes are paid from the account’s largest UTxO) and a Bootstrap’s stay one transaction: a Bootstrap’s cap is what a deposit and its sweep back, from one funding UTxO, leave room for, so near it a deposit spending every part’s output couldn’t pay, and one needing more UTxOs than one transaction spends is refused at review (sess.bootstrapTooMany). sendFunding sends them as sendParts does. A return’s merge into the funding’s change (fundingChange) leaves out what any other chain being sent reserves, a payment’s parts still to go among them.build-tx takes only a sender): the worker checks that its inputs are all the session’s (or, for a direct swap, below, that the rest are a pool’s and a collateral signed already), then WebAssembly reads it with the connector’s code (cip30::inspect_tx) against the session’s one key path. refuseOddities in sessions.ts refuses one that isn’t complete with that key alone (a direct swap’s, with that key and the collateral owner’s signature already in it), spends what the wallet can’t find, touches staking or governance, or mints.
signSessionTx gives the vkey witness; attachWitnesses (cip30::attach_witnesses) splices it into Minswap’s witness set, copying the body and the other entries byte for byte, so the id is unchanged and the order’s datum still hashes to what the order names. Checked on a real preprod swap Minswap built (wasm/tests/fixtures/minswap-swap-preprod.json).scripts is redeemers only: a script data hash alone covers witness-set datums, as an order’s, and runs nothing.cancel-tx answered 404 on both networks when probed, and cancelled some orders and not others, and its pending-orders doesn’t list every order, so Minswap is asked for neither. buildOrderCancel in WebAssembly (seedelf_core::orders::cancel_orders) builds it from the session’s own UTxOs:
liveOrders, below), from Koios utxo_info, a datum kept by hash from datum_info. Each is read again against orders.json (read_order): the session’s own, in a form its script can spend (no script on it, and a Plutus V1 order’s datum by hash, never inline: unspendable), or it isn’t built.orders.json pins it by network: its order script, its Plutus version, and its script, read from a reference UTxO (each checked on chain when it was pinned) or, for a Plutus V1 one, bundled and carried in the transaction with the order’s own datum bytes. A reference spent since still gives its script through Koios: checked against the pinned hash, the cancel carries it in its witnesses instead, under the group’s Plutus version (1.3.0’s release review, C20). Its cancel redeemer and which key cancels are set by DEX in orders.rs (cancel_redeemer, signs_with_stake). Every canceller is a required signer: the session’s payment key, or its stake key for SundaeSwap V3, V4 and Stableswaps.eval::evaluate_with, all three cost models), and its script data hash is recomputed from its own witness bytes (integrity_hash): Pallas’s would be wrong for a witness datum. An order script that refuses the cancel is named, with its order, never as Seedelf’s contract (order_refusal, C19).seedelf-core/tests/orders_test.rs), and three live (2026-10-07): SundaeSwap V3 on preprod, Minswap V2 and Minswap V1, a Plutus V1 cancel, on mainnet; the cancel Minswap’s own app sends refunds its aggregator fee too, and this one can’t.buildSessionReturn: what’s at the account into the contract, as much as one return takes (below), signed by the session’s key. The worker refuses it while an order of a session that placed one is open on chain.
fundingChange): one Seedelf spend (ScriptSpend::with_account) takes it and what’s at the account, under the session’s own 5 ₳ collateral, which it also spends. What comes back joins a UTxO already tied to the session, so no new one is. While its chain through Lovejoin is being sent, no other spend of the private balance takes that UTxO: readContract leaves out what a chain being sent reserves, a Max says why, and one with nothing else to pay with says what it waits for (final review lovejoin-3). A private spend reviewed before the chain started, kept for Send, is refused at Send when it spends what a chain through Lovejoin being sent spends (a return’s, or a public mix’s), and asks for a new review (script-spend send(), independent review L18).
measure_locally), not by Ogmios.build::external_sweep): new registers, no script, no collateral.plan_return, WebAssembly’s; independent review H1, H2). The session’s own UTxOs (the outputs of its own transactions, and of a site’s transactions the session’s key signed, siteOuts, final review F4; for a session the restore scan found, recovered.own’s, every part of its funding and top-up included: 1.6.0’s release review, x-scenarios-sessions#0) and ADA-only ones go first, the largest first; the session’s ADA pays their tokens’ deposit. A token UTxO none of those made (a stranger’s, a DEX’s fill, or a site’s transaction the key didn’t sign) goes in only when its own ADA pays what its tokens add: the deposit outputs (20 tokens each, each with a register) and their bytes, with 0.05 ₳ to spare. The return stays under 16 KiB. The Lovejoin chain’s return shares the plan. What’s left out says why (leftOut):
tokens (its tokens would total past what an output holds) and size (it doesn’t fit this time) wait for the next return, which the runner builds once this one lands, and Bring it back takes;cost (its ADA doesn’t pay its way) stays at the account.leftBehind on the session: a UTxO with a reference script the wallet can’t measure (script), a stranger’s left out for cost, and, when nothing there pays for its own way back, all of it, the session’s own included (fee). It doesn’t hold the session open, holding leaves it out, and the session’s view lists it (the launch review, H6). A fee row isn’t left for good: once more arrives, or at Bring it back, the next return built takes it if it can, and a row taken, or left out only to wait, holds the session open again.lovejoinReturns is off or the swap’s approval turned it off (auto.direct), and on mainnet only once the pool floor is met.lovejoinCollateral is on, the account holds a 5 ₳ to mix (collateralFits; no pool is read otherwise: gone where a site’s transaction, an earlier return, a Stop’s cancel or the swap itself spent it, since Minswap’s build-tx picks the account’s UTxOs and nothing before the signature holds it to the swap’s own; then the return comes back directly and says why, NO_COLLATERAL; chunk 51, gap-g4#2), the session isn’t a Bootstrap or a seed (a deposit alone runs no script: a Bootstrap’s funding pays no collateral at all, and a seed’s, or an earlier Bootstrap’s, comes back with the rest; a Bootstrap funded so is marked mix.noCollateral, and its return puts up none, whatever 5 ₳ of ADA alone is at its account: 1.6.0’s release review, 323-worker#4), and LovejoinService.collateralPool finds the shown ADA pool whose box is 5 ₳ (discovery’s; never a copy; only while it takes a new box, usableNow), read as split reads on every network, holding the network’s floor of boxes that aren’t the wallet’s and at least two free (TAIL_DRAWS), a read that fails leaving the collateral out; asked with tell, as a mix’s review’s look asks it (tailReserve with draws), it throws that failure rather than answer none, so the look can tell the two apart (1.6.0’s review of the fixes, fx-may). Every other review’s look (a swap’s, a site’s funding’s, a top-up’s) asks collateralRoom: collateralPool’s rules on the review’s one read of every pool (rooms(), kept POOL_ROOM_MS), "failed" where that read fails, and a pool the read lacks, kept from before the pool was found, read afresh by collateralPool (1.8.0’s review of its fixes, r2-worker#1). A return’s look (buildBack’s intoPool) asks collateralPool without tell. It returns the pool and its rows (CollateralPool), which the worker passes as collateralPool/collateralBoxes to buildSessionReturn or in a chain’s request (ChainWay.collateralPool, with collateralReserve where the session’s funding paid for it). The chain’s mixes put the collateral up, so it goes last: WebAssembly’s CollateralTail (core’s lovejoin::collateral_tail) builds a deposit of the collateral and the chain’s change into one box under a fresh re-randomization of the Seedelf key’s register (deposit, which checks is_payable, and reads the 5 ₳ pool’s reference UTxO, as every deposit into a token pool does: 1,804 lovelace more; 1.6.0’s release review, 317-wallet#0), then one mix of that box with two of the pool’s boxes drawn at random, never the wallet’s nor one the chain spends (spent_by), paid from the deposit’s change under giveme.my’s collateral (mix_giveme: its coin, its collateral return, its signer, an even fee). The return after it is a sweep of the mix’s change, never merged: a merge puts up the collateral, which is in the box by then. Its two transactions go before the return among txs, marked tail, the mix giveme (ChainTxOut), and collateralTail names the box, the leaf and their fees; a direct return’s come back as SessionReturnResult.tail, and buildBack sends the three as a chain. Anything that fails builds the return without the tail, the collateral back with the rest. pumpChain sends a giveme transaction only once nothing before it is in flight (giveme.my runs a transaction through Ogmios as it is), asking io.witness (SessionService.witnessTail → LovejoinService.tailWitness: Ogmios’s evaluate and declaredCovers first, so giveme.my’s coin is never put up against short budgets, then giveme.my and finishLovejoinWithdraw); a refusal within GIVEME_BEHIND_MS of the deposit landing, busy or out of reach, waits, asked again after a minute, then two, four, and so on to 30 minutes at most (TAIL_WITNESS_WAIT_MS, PendingChain.witnessAfter), and so does an Ogmios that doesn’t know only what the wallet itself sent and found on chain (the deposit’s box, the chain’s change: tailWitness’s ours), which is behind, not a drawn box gone (a rule no real answer reaches yet: Ogmios names such an input only in a 3004’s reason, which the wallet doesn’t read; the backlog’s ‘Koios behind’ line). The network’s check of a chain’s first mix as it’s built (crossCheck) never takes the collateral’s: a chain of depth 0 has none of its own to check. The chain’s record keeps it apart (ChainRecord.tail, read through makers): its box is the chain’s own and not mixed yet until its mix goes; its leaf is one of leaves, gets its own due time when its mix is sent (chainSent, never one of the chain’s boxes’), and is out under its chain’s entry in the list in the 5 ₳ pool, unless that’s a Bootstrap’s, whose held boxes are its own alone: there the leaf is no entry’s, and counts against none as it comes back (countBack). A chain stopped short of the mix (a refusal past that wait, a drawn box gone, a lock) leaves it for tailOf, which marks a chain a lock cut first (cuts), and whose rule is tailBuildable. Meanwhile the return waits, so it never sweeps what pays for the mix, and each wait says why and how long (tailChain’s TailWait, tailWaiting): the box not listed yet (lj.tail.waiting, an hour at most), the 5 ₳ pool not in the read set (lj.tail.noPool, a day at most), or too few of its boxes free to draw (lj.tail.fewBoxes, a day at most); Koios not answering whether the deposit is in throws Koios’s own error (1.6.0’s release review, 323-worker#2). A box whose deposit is known in but isn’t listed is taken for moved only LANDING_MS after that was first known (tailLanded, which records Tail.landed and so also starts its day), and at once where one of the wallet’s own sends spent it (323-worker#5). A deposit not on chain an hour after its chain stopped (TAIL_UNLANDED_MS) most likely never will be, and the return goes, which is safe if it lands after all (both spend the same UTxOs). Once the box is listed, buildBack builds that mix again with fresh boxes and the return after it (tailChain, WebAssembly’s buildCollateralMix), as a chain whose record takes the tail over, its landed too, or hands it back if that chain never starts; that chain records where the one it continues began (SessionRecord.chain.from), so chainSoFar counts from there, and a second stop’s next return is plain, with no reason left out (323-worker#8). TAIL_TRIES builds in all, and TAIL_KEEP_MS after the deposit landed, then it’s over (tailOver) and the box waits not mixed yet. Sooner on the user’s word: TAIL_OFFER_MS (an hour) after the deposit landed, a session held there (tailHeld) carries collateralHeld.offerAt in its view, but not once a return of the rest went after its chain (chainView’s cut: Bring everything back’s direct switch, say), and session-skip-collateral-mix (skipCollateralMix) makes it over then, whole in the sessions’ queue (serial), its tailHeld look included, so a runner step building that mix again as the press comes finishes first, and the press stops the chain it recorded; a chain still being sent stops at the mix, witnessTail reading tailIsOver before it asks giveme.my (lj.tail.skipped). A swap’s or a mix’s rest then comes back in the press’s own request; a page brought back by hand (a site’s session, a swap’s) opens the return’s review once the press’s answer holds nothing back (reviewAfterSkip; 1.7.0’s release review, pr337#0, pr337#1, pr337#3). While the mix alone waits (tailWaits), the withdraws don’t wait for its chain (mixing, chainsMixing): boxes due, Bring one back now and Bring every box back now go, the last leaving the collateral’s box to that mix (tailBoxes); the lock countdown and Remove wallet still count the chain (chainsSending), and mayLand holds its boxes’ due times LANDING_MS from Tail.landed, since landedBy never marks such a chain in (x-scenarios-lj#1, R3-6). A mix’s and a swap’s funding add COLLATERAL_TAIL_RESERVE (1.5 ₳: the collateral’s deposit and its mix) to the first payment where the tail would apply (tailReserve): on a chain, what DEPOSIT_RESERVE leaves pays the sweep’s least, about 0.29 ₳ over for one box; on a swap’s direct return, SWAP_MARGIN less the order’s fee comes back beside it, and its fill carries that least. A site’s funding, and a top-up that pays a new collateral, add what a return that comes back directly takes (lovejoinDirectCollateralReserve(params), core’s direct_tail_reserve: 2.8 ₳ at 4,310 lovelace a byte, 3.6 ₳ at 6,465; 323-rust#1). The session’s record says so (collateralReserve), so the chain and the plan count its boxes after it, across pools too (planAcross). Each builds again without it where the private balance doesn’t pay for that too (orWithoutReserve): too little ADA, or more of its UTxOs than one transaction spends or holds (core’s TooMany and TooLarge, which a top-up and Mix my boxes again meet, being one transaction each); then neither the record nor the review names it, and a swap leaves it out before its token’s boxes (323-worker#0, R3-8). A swap against the pools whose return comes back directly with its token takes none (tailUnpaid), since that return can’t build the mix (R3-10). tailReserve answers { reserve, may }: where its look at that pool fails, the funding goes without the reserve, a trap still rethrown (L3), and may holds unless collateralPoolTakes says “no” (fx-may). What a screen says of that mix follows one rule, decided by the worker where the session’s way back is known (CollateralMix, the collateralMix of SessionOutSummary, SwapQuote and SwapLovejoin; 1.6.0’s review of the fixes, fx-promise): mixed only where the funding paid the reserve and the return’s way keeps it for that mix whatever the swap does (a mix’s, whose chain sets it aside first; a swap’s whose fill is ADA, or whose token has boxes of its own, keepsReserve); ifLeft wherever else a 5 ₳ pool takes the collateral, reserve paid or not, a site’s funding and top-up included, never mixed since their return holds what the site leaves, and on may, which outBuild (but where tailUnpaid holds), mixFunding, siteOutBuild and topUpBuild follow; none where no mix can go. A token’s fill with no box isn’t mixed: approved as an order, Minswap may still build it against the pools, which pay the token beside all the ADA, from which a direct return can’t pay for that mix. The screens put mixed in their definite words (the Plan’s last step, noBoxMixed, the Mix reviews’ *NoteMixed, Stop’s *Mixed notes, giveme.my’s line) and ifLeft in one line (CollateralMixLine, lovejoin.collateralMix.privacy.ifLeft), the site’s two notes in their own words; collateralReserve drives their costs (R3-9). lovejoin-funding names collateralReserve and collateralPool for the Mix form, which counts them only where its own pool read has that pool holding its floor, two boxes free (tailReserveOf). A swap’s quote names collateralReserve from LovejoinService.collateralPoolTakes, asking nobody: “no” where no such pool is shown, it took no new box when last measured, the data layer’s last count is under the floor, or a pool read within POOL_ROOM_MS has too few others or free; “yes” where that read has enough; “maybe” where nothing read lately says, which keeps the reserve and adds collateralMaybe (R3-11). Beside the reserve, its collateralMix is what Max’s note names: mixed on “yes” with a fill that keeps the reserve, ifLeft otherwise, said as what that mix “may take”; collateralMaybe stays, though no screen reads it now (fx-promise). ui/swap.ts’s maxAdaIn keeps it aside, FEE_ROOM is 2 ₳, and adaShort doesn’t count it; swapCosts’ collateral and the site’s FundingWayBack count COLLATERAL_MIX_COST (LovejoinReturn.tsx, about 1.5 ₳) where the reserve is paid (323-worker#1). Stop’s cost (stopCost) sets the funding’s reserve aside where the collateral may go into the pool (mayMix: the account holds it, and ADA alone or a swap out that may bring some, Settings has it go in, and collateralPoolTakes isn’t “no”; landing counts the account as its funding will leave it, its 5 ₳ and, for an ADA swap, ADA alone, while that funding is on its way (fundingState’s funding) or, before any swap is sent, confirmed with a part of it not yet in seen, the reading kept in memory (Koios behind the chain, or a worker started again before its first read), and never for a funding found short: fx-may, last-3d’s first), as WebAssembly’s tail_reserve does (L1), and counts the boxes on what the return will hold: what’s there once filled or refunded; with an order on chain, what its cancel brings back (an order of ADA, the account’s ADA less that reserve, plus the funding less Minswap’s fee and the SWAP_MARGIN the account holds already, less CANCEL_FEE_ESTIMATE, 0.25 ₳; an order of a token, nothing, since its cancel gives the token back beside all the ADA); before that, or with a swap against the pools out, at least the funding (fx-promise; last-3c’s fourth). Its collateralMix is mixed where the reserve was paid and nothing out can merge it (keeps: nothing out, or an order of ADA), ifLeft wherever else mayMix holds. It reads no parameters. The by-hand 5 ₳ (collateralTopUp) adds none, since its exact 5 ₳ output is what its checks look for. A session without the reserve pays for the mix from what the chain leaves, or a direct return from the account’s other ADA, where that’s enough, and otherwise brings the collateral back with the rest. The reviews show it (CollateralTailRow, CollateralTailNote, CollateralReserveRow, Bring everything back’s count).auto (the approved minAmountOut, fund and Minswap’s quoted fee, and, for a swap that comes back through Lovejoin, the depth and wait its approval showed, auto.lovejoin). Its return’s chain, Stop’s price and its boxes’ due times use those, so Settings changes only swaps started after it (independent review L21). A mix from the tile, and Mix my boxes again, keep theirs the same way (mix.depth, mix.delay, beside mix.width), as their review showed them and their funding paid for (chunk 51, w3#1). SessionService.advance takes whatever step is next from the record and the chain, so it’s safe to call any number of times:
seedelf.sessions alarm every minute while a swap runs (or a chain, or a look below) and the wallet is unlocked (runAll, on every network; the worker’s run, runs.ts, then stops the alarm once nothing runs on any, unless something started it meanwhile), and unlocking (the wallet’s changed), whose run sends nothing: a step found then waits a fresh draw, 2 to at most 20 minutes (UNLOCK_WAIT_MS), as a box due does, while what the user asks for goes at once (privacy review §3.1). A step let go reads the unlock again once its Minswap and Koios calls are done (stillUnder): locked and unlocked meanwhile, it sends nothing and waits that unlock’s draw (chunk 51, x4#2). Locked, it does nothing and the alarm stops until unlock. One promise queue in the service takes every step, the runner’s and the user’s, one at a time.
unlockDrawn), draws one then and waits it, so a failed read at the unlock, a page opened first or a run crossing a lock can’t send it early. What the user asks for (Refresh, Stop, Try now, Try again) goes at once and takes that unlock’s draw with it, so the session’s next step isn’t held back again. A wait drawn at an unlock that locked before it was over isn’t drawn again: it goes at the next check.runAll looks for a return whose history isn’t written yet (settleReturns), and keeps the alarm going while one may land. For a session with no auto (a site’s, or an older swap brought back by hand), it also looks for a funding or top-up not yet seen, by tx_status only, never reading the account, for up to 2 hours after it was sent, and records it confirmed once seen (final review F13).tx_status); then place the order, wait for the fill, and bring it all back. A fill is something arriving from a transaction the session didn’t make, once the order itself is spent: each copy of the swap records its outputs to the DEXes’ contracts before it’s sent (orders), those of the copy that landed are the ones looked at (final review sessions-3), and Koios utxo_info says whether they’re spent. Anyone can pay the account. Once the outcome is recorded and a return is in, what’s left of the session’s own (the swap’s change, which a cancel given up had counted spent) comes back too, with nothing arriving (1.3.0’s release review, C03). An order still open is read from chain, never from Minswap’s list (liveOrders): the recorded orders utxo_info shows unspent, and, where a spent one was Splash’s, what a fill in parts left at the same address under the session’s stake key (address_utxos). Anyone can pay that address an output whose datum names the session, so only one that reads as the session’s order, holds no reference script, and was put there by a fill of the session’s own order counts: the transaction that made it spent one of the swap’s orders, or what such a fill left, followed back through Koios tx_info’s inputs for up to 8 fills (remnantsFrom, REMNANT_HOPS). Each transaction is decided once and kept with the session (remnants); one Koios doesn’t know yet fails the read, and the next asks again (C02).
READ_EVERY_MS) after the one that first reads every order spent, a Refresh’s or Stop’s too. That first run only notes when (auto.spentSeen, let go if an order reads open again), and meanwhile no order is open: the view says so (auto.spent), and Stop prices the return to come. Both of a run’s listings may come from a backend behind the one utxo_info answered from, so a split route’s leg in the block between comes with the later run’s (chunk 51, r2still#2, l3time#2, l3screens#1). It’s decided from what arrived in that run’s listing and in one more read of the account, so a leg paid in between counts too. Swapping for a token: none of it arrived is refunded; some, but less than the landed copy’s minimum, or any of the token given back, is partly filled; otherwise filled. Swapping a token for ADA: none of the token back is filled; all of it back is refunded; anything between is partly filled. A refund is recorded as auto.refunded and shown as Refunded, never Done; partly filled is auto.filled with auto.partly.unlisted, 1.3.0’s release review, C12): a return before then would take the 5 ₳ collateral alone, and the rest would come back later without it, never through Lovejoin. So does a swap stopped before anything but its funding in parts went, while a part on chain isn’t listed yet (partsUnlisted, the same 15 minutes from that part’s send; chunk 51, e7a#3): a return then would leave that part to one of its own, with a second fee. Nothing is decided about a fill then. While a stopped swap waits on an unspent order Koios can’t find yet, so the wallet can’t cancel it yet, the record holds when the runner first found it so (auto.orderOpen), from the reads it already makes, written only when that changes. It’s cleared once that order is spent, or found and cancelled. A record from an older version may mark an order Minswap didn’t list instead: that mark is cleared at its next run, and the order cancelled. Only the page reads it: an “Order open” tag, and a line saying what’s left waits at the swap’s account (independent review L16).refuseOddities), and no more paid out, fee included, than was funded for the swap (withinFunding); and a swap that places orders only once the wallet has built each order’s own cancel and run it through the order’s script, at a fee within 3 ₳ (cancelsChecked → checkOrderCancels, 1.3.0’s release review, C05). A swap against Danogo’s pools (below) is the exception: it also spends the pools’ UTxOs and a collateral whose owner signed it already, as Minswap’s comes, never the session’s own (directSpends, partialSign), and it’s held to what the session nets instead: its net spend within the funding and its fees within the funded costs (withinNet), and at least the approved minimum of what it buys (checkProceeds). The one other key it signs with is the session’s own stake key 2/i, beside 0/i, for Stop’s cancel of a SundaeSwap V3, V4 or Stableswaps order, whose owner it is, as the spent order itself says (readDexOrder), and only when the session has its own (ownStake); a V3 cancel without that signature is refused, as it couldn’t work.
checkOrder; a swap against the pools’ is checkDirect, below; the launch review, #21), read from the transaction’s bytes: back to the session’s address; an order, one at least: an output at a DEX order script orders.json pins, read by WebAssembly (readDexOrder) in the form the output is in, its datum inline or carried in the witness set for its hash, as Minswap’s V1 orders are (builtOutputs tells it an inline datum and a script: a Plutus V1 order’s datum held inline, or any script on it, is no order the wallet can cancel): cancelled by the session’s own key, paying the session’s address alone, under the session’s staking part or none (a V3 order Minswap builds, under Minswap’s there); and at most one more output, Minswap’s fee, wherever it goes: ADA alone, and no more than was quoted with the funding. Anything else is refused, any other contract above all. The reader vouches for who cancels an order and whom it pays. Each order’s cancel is then built and run through its own script before the swap is signed (checkOrderCancels, 1.3.0’s release review, C05): each alone, with stand-in funds and collateral of ADA alone at the session’s address, its script from its reference UTxO, read once a worker’s life and kept by network (referenceRows), or, a Plutus V1 one’s, bundled. An order the reader can’t read, whose form no script spends, whose cancel the dry run can’t build or its script refuses, or whose cancel’s fee is over 3 ₳, is refused as one the wallet couldn’t cancel (notCancellable), not as someone else’s. So every order the session places is one the wallet can cancel itself, shown before it’s signed. A real preprod order Minswap built passes it (wasm/tests/fixtures/minswap-swap-preprod.json), and so does each real order seedelf-core’s tests cancel, made out to a session (extension/tests/order-cancel-check.test.ts).build-tx quotes again and puts amount_out / (1 + slippage%) in the order, whatever it’s asked for. The min_amount_out the wallet gives is only the least it may be: Minswap refuses a build under it, in a 400 that words the comparison backwards. The runner gives the fresh quote’s minimum when that’s at least the approved one, and the approved one otherwise, asked with the slippage that keeps Minswap’s own at it (slippageKeeping): after a dip within the slippage, the approved slippage alone would leave Minswap’s under the approved minimum, and every build would be refused until the price came back. Review it myself gives the fresh quote’s. Each swap copy records what it asked for (minAmountOut), and the timeline shows the placed copy’s once one is (placedMinOut), the approved one before (independent review L24). Minswap builds the order, and the wallet doesn’t read its minimum back. It does check which script the order goes to, and reads its owner and receivers, so the check stops an order made out to someone else, a receiver set apart from the owner’s, and a script that isn’t a DEX’s, and the cancel’s dry run through the order’s own script holds the rest of the datum to what that script can spend (1.3.0’s release review, C05); not a wrong minimum. That trust in Minswap stays: an aggregator acting in bad faith could take up to the funded swap amount either way. So does its fee, on SundaeSwap V4: a fill takes the order’s max_per_execution whole, where V3’s max fee is only a ceiling over what a scoop charges, and the wallet reads neither. The DEX’s fee, like the minimum, is what Minswap writes, bounded only by withinFunding: a V4 cap over the quoted fee would come out of the 2 ₳ of room (SWAP_MARGIN) the review counts as coming back. Every Minswap build seen writes the quoted fee (1.9.0’s release review, L9; holding it to the approved one is in the backlog).cancel). A cancel’s review (Cancel the order, which only a swap from before swaps ran themselves, or a session the restore scan found, offers: cancelBuild) runs inspect’s, not those two, and shows where it pays; WebAssembly builds it to pay everything back to the session’s address. The user’s own review of a swap (Review it myself, swapBuild) runs the route’s checks and inspect’s against its own fresh quote, whose minimum and Minswap fee it shows. It isn’t held to withinFunding or to the approved route (C09), though a swap against the pools is still held to the approved funding (withinNet; 1.3.0’s release review, X06). Once a swap copy has gone out, it says the swap was sent already, unless that copy was given up with what it spends freed (inputs, held) and nothing says it landed (tx_status shows it, Koios knows an order of it, spent or not, or lists its own output at the account): then it builds the swap again from the same funding, as the runner does (cross-area review X04).
holdsCancelCollateral; a return from an older version took everything while the order waited) has cancelCollateral on its view, missing, or coming while a top-up is on its way (topUpComing, topUpOnItsWay: sent, not turned away, under 2 hours old, and no refresh’s listing of the account has shown it there yet, the record’s listed mark, set where listNow reads the account; tx_status confirming it doesn’t count, since that can come before the listing: 1.5.0’s release review, C04). None while a cancel of it is on its way (cancelling: sent, not on chain yet, under 2 hours old): the view says cancelling, the page says the cancel is on its way and greys Cancel the order, and cancelCollateralBuild and topUpSubmit refuse (C04). While the order waits, its page offers Put in 5 ₳ to cancel in Cancel the order’s place: cancelCollateralBuild (session-cancel-collateral-build) builds 5 ₳ from the private balance to the account alone, as a top-up (buildFunding), only for a session brought back by hand, with an order open and no collateral at the account or on its way, and topUpSubmit sends it as it sends a site’s. Before the 5 ₳ is built, the cancel it’s for is run on a stand-in 5 ₳ of ADA alone at the account (collateralStandIn), as a swap’s own cancels are before it’s signed: if the order’s script refuses it, the build says so in the cancel’s own words, and no 5 ₳ goes (C30). The 5 ₳ takes the session’s own private money first (collateralTopUp): what its fundings and top-ups left in the private balance, and what a transaction its key signed paid into it (recovered.own), classed session:N before coin selection, since after a restore no history names it (C36). topUpSubmit asks again in the queue, by the builds’ own rules (topUpOnItsWay, cancelling), so a second window’s build never sends a second 5 ₳ (C29). 5 ₳ is enough: the fee comes from the orders’ own ADA, bar a Splash or Spectrum order’s, whose refund is the whole order, so its cancel takes the fee from the 5 ₳ too, which then comes back less the fee (The fee comes from the orders’ ADA, above; C04).backCollateral on its view: missing, or coming while a top-up is on its way, and none while a cancel of it is on its way. The test is lovejoinWantsCollateral: Lovejoin is on the network, the return goes through it as Settings has it (throughLovejoin), no chain of it went in partly (chainSoFar), and collateralWanted holds, the very test by which buildBack leaves Lovejoin out for want of that 5 ₳ rather than of a box (none at the account, and spare ADA that pays for a box). For the session list’s view it reads the device alone: Settings, WebAssembly’s price of one box, the pools as discovery kept them, and, for the floor, a pool read kept within POOL_ROOM_MS. At the press of Put in 5 ₳ for Lovejoin (below) it asks as a return’s build does (ask): discovery, and a look, where no 5 ₳ pool is kept, and, on mainnet, where the floor is set and the spare ADA pays for a box, a read of every pool (kept POOL_ROOM_MS), so the press refuses under the floor (sess.backCollateral.notNeeded; 1.8.0’s release review, critic#1; 1.8.0’s review of its fixes, r2-critic#3’s trace). While no order of it waits, its page offers Put in 5 ₳ for Lovejoin, a secondary button beside Bring it back: backCollateralBuild (session-back-collateral-build) builds the 5 ₳ as the cancel’s are (collateralTopUp), and topUpSubmit sends it. It refuses for anything but a session brought back by hand, while an order waits, while a cancel or a top-up is on its way, when such a 5 ₳ is there already, and when the return wouldn’t go through Lovejoin with it. Bring it back stays as it is: it comes back directly, and says why. While the 5 ₳ is on its way (coming), Bring it back is the page’s secondary button, still enabled, since that 5 ₳ may never land, and the why is that the 5 ₳ wasn’t at the account yet (sess.skip.warn.collateralComing, by topUpComing), not that it’s gone, in Bring everything back’s review too (1.5.0’s cross-area review, X20). It’s in the past tense because the session’s record keeps it once the return is sent (lovejoinSkipped), and its page shows it after the 5 ₳ has landed (1.5.0’s last review, L9). Once Koios lists the 5 ₳, a return goes through Lovejoin, whatever the page last read. Neither the offer nor the press reads whether the pool has boxes free for the mixes, so with too few the return still leaves Lovejoin out, saying why, and the 5 ₳ comes back with it; under the floor the list, reading only what’s kept, may still offer the 5 ₳ that the press then refuses (1.8.0’s review of its fixes, r2-critic#5).paused.why: "refused", independent review M17). On either network so does one Minswap still routes as a path of more than one leg, or with Danogo beside another DEX, in words of its own (sess.refuse.warn.nowOutOfPlace, 1.3.0’s release review, C34), and a swap approved against the pools that Minswap now routes, or build-tx builds, as an order (approved.againstPools, sess.refuse.warn.nowOrder, C09); Review it myself, the user’s own review, may still send that order. A fresh quote expecting less than the approved minimum pauses (paused.why: "price"), and a failed check pauses ("refused"), an order whose cancel the dry run can’t build or whose script refuses it among them (“it places an order the wallet couldn’t cancel”, C05). The review’s alert words a refusal by what was refused (Refused.of): the wallet’s own cancel says “The wallet couldn’t cancel the order: …” (sess.refuse.warn.cancelRefused), and one it can’t read “The wallet can’t read the cancel it built.” (sess.cannotReadCancel). The swap’s page tells a refusal after Stop, of the wallet’s own cancel, from a swap’s, and says Try again builds the cancel afresh (pauseText’s cancelling, C15). A failure (Koios, Minswap’s 429) waits 30 s, doubling to five minutes, and tries again; the timeline says why, in plain words, with Try now. A Koios that can’t give an order script’s reference UTxO is such a failure, never a refusal. So is a build-tx whose transaction failed when Minswap ran it, on its side (“Error evaluating tx”, minswap-build-failed: a Danogo pool’s script on preprod), nothing yet the wallet’s to sign: Minswap ends its words with that whole transaction (| RawTx: <hex>, a few KB that ran off the retry line), which refusalOf cuts off into MinswapError.cbor and the retry’s cbor, shown only under its Details, with Copy, for a report, and a privacy line beside Copy (swaps.retry.privacy.cbor: whoever it’s sent to can tie the swap’s one-time account, and the private UTxOs that funded it, to you). The retry line’s live region holds only its words, never the transaction (1.6.0’s release review, 322#0, 322#1).sending, then unsent if it never went: giveme.my or Koios refused it, or Koios’s gateway turned it away with a 429). One Koios didn’t answer (a timeout, a 5xx) may have gone, so it isn’t unsent: what it spends counts as spent, and it’s looked for like one Koios took (the launch review, #11). Sent again after that, it stays maybe sent whatever the second try meets (a refusal as spent, a 429, anything): its inputs stay held, the runner looks for a swap’s orders before placing another, and a return’s history is written once it lands. The runner builds a copy again only once it goes unseen, 15 minutes after its first send; for a session nothing steps, nothing is built again (final review F11). Its inputs are recorded with it, and freed once its step is built again or it’s dropped, so the next copy, or a return, can take them; the ledger lets only one of the two land (final review sessions-1). A cancel’s, or a swap against the pools’, that Koios took are recorded too (held), and freed the same way when it’s given up (1.3.0’s release review, C03); an order swap’s and a return’s that Koios took stay counted spent, for up to 2 hours (SPENT_KEEP_MS).
replaced), looked for with the rest for 2 hours: if that copy lands, it’s the step, and the copy built after it goes, if one was built (final review sessions-2). A copy built again byte for byte (the wallet’s own cancel, which has no validity interval) is that copy sent again: it’s no longer replaced, and it’s looked for from the resend (1.3.0’s release review, C32). A resend refused as spending what’s spent may have met that first copy still waiting in a mempool, so it stays maybe sent: still the step, shown, its inputs held, looked for 15 minutes from the resend, and freed if it’s given up again (1.3.0’s release review, X01). So does a resend of a copy Koios took or one given up that meets any other failure, a 429 included, as a try Koios didn’t answer does: Stop’s cancel resent that way is tried again 15 minutes on, not 2. Only a cancel’s or a pool swap’s inputs are held this way (held); an order swap’s or a return’s stay counted spent, as C03 leaves them. Before placing an order again, or bringing the session back, the runner looks on chain for one of its orders (liveOrders).tx_status doesn’t show (replaced, or unseen for 2 minutes after its send or 15 in all) has its recorded orders looked up (utxo_info) before it’s taken as never placed. If one exists, spent or not, that copy landed: it’s the step, and its order is waited on, never placed a second time. So does one whose own change the account’s listing holds (independent review L15).liveOrders; independent review L15, D2). The list of sessions closes one that isn’t a site’s the same way, swaps brought back by hand included, and leaves it open when a lookup fails. A session the restore scan found that this device has sent nothing for (bar what Koios turned away; foundUntouched) ends at the list’s refresh with no return of its own, once its account holds nothing a return takes, Koios shows what the scan read there spent, or still there as left behind (its funding’s outs; a session found by its open order alone has none), and no order of it is open: one emptied from another browser with the phrase, or holding only what no return takes. One whose record holds a swap waits before it ends (1.5.0’s cross-area review, X01). Its order’s fill, its refund or another browser’s cancel pays the account in the very transaction that spends the order, and a refresh reads the account (credential_utxos) before the order (utxo_info), so a block landing between the two reads, or a Koios backend behind another, reads the account empty and the order spent. So the first refresh that finds it over stamps its sealed record (recovered.quietAt) and keeps it listed. It ends only at a later refresh, 15 minutes or more after the stamp (LOST_AFTER_MS), that still finds it over, and any refresh that doesn’t clears the stamp, so a payout listed late keeps it open, with that payout to bring back. Meanwhile its view says so (settling: open, found, nothing sent for it from here, and stamped; a stamp kept from before this device sent something for it doesn’t count). Its page’s next step says it ends by itself unless something comes in, Bring it back is the page’s secondary button, since it reads the account afresh and takes a payout the refresh missed, and Home’s restore note doesn’t count it (toBringBack; 1.5.0’s last review, L4). Remove wallet still names it (atStake reads the record alone). One with no swap ends at the first such refresh. With nothing left its record goes, as a site’s does at Disconnect, and Find leftovers finds the account again if anything reaches it; with something left behind it stays, closed, and Remove wallet names it. Once this device sends it a cancel, a top-up or a return, only its own return ends it, as any session’s (1.5.0’s release review, C02).tx_status says. One found failed goes on once it shows up: a refresh of the list sees it, Try again looks again, and Forget, finding one of its outputs unspent, refuses and lets it go on (independent review M4). A site’s session, which nothing steps, is looked for by the worker’s runs, and the connect window’s read or a list refresh that lists a top-up’s output also records it as landed (final review F13).stopReading: a swap against the pools gone out, the order filled or refunded, or one stopping already). stop() says whether a swap copy had gone out, or may have, before Stop took effect (ordered): the page then says the order is cancelled unless a batcher fills it first (independent review L22), or, when the latest swap copy sent went against a DEX’s pools, shown or given up (orderedPools), that it can’t be cancelled, is swapped if it lands, and comes back either way (lateStopOf, StoppedLate; 1.3.0’s release review, C24, X04).credential_utxos for every open session’s key hash, and one tx_status for the transactions waiting, only when the dApps page opens or is refreshed, and when Minswap’s screen reads. A running swap reads its chain at most every 15 s unless the user refreshes: one tx_status while something waits to confirm, else one credential_utxos, plus one utxo_info for its orders once one is on chain. About 10–20 requests a swap, and nothing while none runs. The restore scan, at a restore or from Find leftovers, costs one account_addresses per 20 one-time accounts walked, then, for the used ones the record doesn’t know, one credential_utxos per 75, one account_txs each, one tx_info (inputs alone) per 20 of their transactions, and, where those paid an order script, one utxo_info per 60 of those outputs (every account’s together; liveOrders reads which are open off the same rows, 1.5.0’s release review, C15) and one datum_info per 60 datums kept by hash, plus, for an account holding nothing whose spent order was Splash’s, its remnant look (below; C35). A session it found that this device has sent nothing for is checked for its end at each refresh of the list once its account holds nothing a return takes: one utxo_info for what the scan read there, if it read anything, and its orders as closing a swap reads them (below), if it has any, so while an order of it is open each refresh asks one utxo_info of its orders (C02); the wait before one whose record holds a swap ends asks nothing more, and a refresh’s look for a chain a lock cut reads the device alone (1.5.0’s cross-area review, X01, X03). Whether a restore’s look has finished costs no request: session-scan-due reads the sealed record, which the dApps page asks as it shows and every 3 s while a scan runs, and the Home a restore opens while its note shows (C19). The form asks Minswap’s estimate once typing pauses (0.6 s) after each change of the amount, the pair or the slippage, never on every key, and a second estimate when its route is asked for again (routeOf, below), and its token search asks tokens the same way (0.4 s); a quote over a minute old is asked for once more before the funding. Placing the order costs two Minswap requests (estimate, build-tx), three when Minswap’s first route is asked for again without a DEX (routeOf: one in a path of more than one leg, Danogo beside another DEX, or, on mainnet, a DEX the wallet doesn’t check), and one Koios read of the account; and, for its cancels’ dry run, one epoch_params, and one utxo_info of its orders’ scripts’ reference UTxOs the first time a worker places through that DEX (kept per network; none for a Plutus V1 order; 1.3.0’s release review, C05). A swap against Danogo’s pools asks utxo_info of the pools’ UTxOs and Minswap’s collateral instead (inspect). Review it myself’s build costs the same, and, after a swap copy was given up, one tx_status of the copies sent and a utxo_info of their orders (placed; cross-area review X04). A new session’s Send asks Koios about its account once more (account_addresses, and credential_utxos when that shows nothing). While a swap copy tx_status doesn’t show is looked for, each pass adds one utxo_info for its orders; so does each pass waiting for a fill, or for the orders to be spent after a cancel. Deciding filled or refunded waits a run: the one that first reads every order spent only notes it, and one 15 s on at least decides, reading the account once more and its orders a second time (liveOrders, then ordersSpent), and closing a swap reads its orders twice (ordersOpen: ordersSpent, then liveOrders), besides the utxo_info for what its own transactions paid the account (independent review M4, M13, M18, L15, L16). Once a Splash order is spent, each liveOrders adds an address_utxos of its address, and a tx_info (inputs alone) about each new transaction that put something there reading as the session’s order, followed back up to 8 fills, each asked once and kept (1.3.0’s release review, C02). Stop’s cancel reads Koios’s epoch_params, a utxo_info for its orders’ reference scripts, and a datum_info for an order that keeps its datum by hash, and its check a utxo_info of the orders it spends. Put in 5 ₳ to cancel reads its orders (utxo_info) and the account (credential_utxos), then runs the cancel first (1.5.0’s release review, C30), at the cancel’s own reads (epoch_params, a datum_info for an order kept by hash, and a utxo_info of a V2 or V3 order script’s reference UTxO), and builds as a top-up does; Put in 5 ₳ for Lovejoin reads the account, and its orders when its swaps placed any, and builds the same way, its test asking as a return’s build does: discovery’s list, and a look, where no 5 ₳ pool is kept, and, on mainnet, a read of every pool for the floor (C53; 1.8.0’s release review, O2, critic#1); only the session list’s offer reads the device alone.estimate and build-tx asks Minswap to leave out the ones the session doesn’t read (exclude_protocols, DIRECT_PROTOCOLS in minswap.ts: OpenDjedV1). ChakraBondingCurve isn’t on that list: Minswap’s API refuses the name (seen on both networks on 2026-11-09), though its documentation still lists it, and one name it refuses fails the whole request, so every quote would fail. Never add a name there without trying it live.
estimate and build-tx asks with allow_multi_hops: false. That’s what Minswap does when it isn’t asked (seen on both networks, 2026-10-06), but its documentation gives no default. In a path of more than one leg, the later legs’ orders are placed by the leg before’s batcher, which the session’s check never sees, and the first leg pays the next leg’s order or Minswap’s adapter, not the session. So a route with one is asked for again without its DEXes (routeOf, outOfPlace), and refused if Minswap still routes so, on either network, in words of its own, which name the route’s way rather than its DEXes, since the wallet checks those (1.3.0’s release review, C34). uncheckedProtocols is mainnet’s DEXes off MAINNET_PROTOCOLS alone, and is checked first, in its own words.inspect; what the session’s own transactions paid its account, outs, counts as the session’s while Koios’s listing doesn’t show it yet and the wallet doesn’t count it spent, as build-tx picks from Minswap’s own view of the chain: chunk 51, e7a#3), and signed (partialSign) only when: its other inputs are at Danogo’s pool script (DANOGO_POOL, by network); its collateral is a key’s UTxO whose owner signed the transaction already, as Minswap’s comes, never the session’s own; its withdrawals are zero, from that script or a spent pool’s staking script (directSpends); it pays only the session, each pool it spends recreated at that pool’s own address, once, and at most Minswap’s quoted fee (checkDirect); what it gives the session is at least the approved minimum, ADA bought counting Minswap’s fee back, and the network fee only up to 3 ₳ (MAX_DIRECT_FEE) (checkProceeds); and its net spend is within the approved funding, its network fee and Minswap’s within the funded costs, never the proceeds (withinNet, in inspect: the runner and Review it myself alike; 1.3.0’s release review, C08, C10, C21, C22). Its proceeds are in itself, so once it lands, and Koios lists them at the account (for up to 15 minutes after its send, C12), it’s the fill (act, againstPools on the recorded swap). A swap approved against the pools is placed against them or pauses (C09); one approved as an order may be built against them. A route that puts Danogo beside anything else is asked for again without it (outOfPlace). The quote and the session’s view say so, from its approval on: approvedPools before the swap is sent (words alone), againstPools once it is, which is what Stop reads (C13). The swap’s page reads Swapped against the DEX’s pools and In the swap itself, and offers no Stop once it has gone out, as there’s nothing to cancel. Any other DEX that swaps against its pools still pauses the swap.MAINNET_PROTOCOLS in minswap.ts lists those whose published order details name the owner’s key as a 28-byte field of its own, at a script with no staking part or the sender’s: Minswap, MinswapV2, MinswapStable, SundaeSwap, WingRiders, WingRidersV2, WingRidersStableV2, Splash and Spectrum; SundaeSwapV3 and SundaeSwapV4, the owner and destination read and the cancel run through the order’s own script before the swap is signed (below); and DanogoCLMMV1, read by what it spends, pays and gives back (above). Each but Splash, Spectrum and SundaeSwapV4 ran live on mainnet (2026-10-07; the pairs are in the record of those runs): quoted, ordered, filled and paid out, Danogo’s in the swap itself, and a Stop that cancelled a Minswap V2 and a Minswap V1 order. No pair routed through Splash or Spectrum at a sane price, so theirs are still open (O2). V4’s first real swaps are its live run: its cancel is tested on the real owner cancel of an order Minswap built.
estimate and build-tx excludes, besides DIRECT_PROTOCOLS, VyFinance (its owner is one 56-byte field, key and staking part together), MuesliSwap (its orders are staked to its own key), SplashStable (its only stable-pool validator was drained on 2026-09-13), SundaeSwapStable, CswapV1 and WingRidersStableV1: seven names in all. Preprod leaves out SundaeSwapV4, which has no order script to pin there. MINSWAP_PROTOCOLS holds the 19 names the wallet knows Minswap’s API takes, each tried live on 2026-11-09 (it refuses a request naming one it doesn’t know), and include_protocols isn’t kept to, so the list is what excludes. The API allowed 23 names that day without saying which, so a route can go through a DEX the list can’t name: routeOf asks once more without it, carries that into build-tx (avoid), and a route still through one is refused. When Minswap refuses the second ask, whether made for this or for outOfPlace (above), for a name its validator won’t take (name-refused, matched on its 400’s words) or with nothing left to route (no-route, its 404’s “Quote not found.”), the first answer stands: the quote and Review it myself refuse it and the runner pauses, in the wallet’s words, rather than show Minswap’s own and try again with no end (1.9.0’s release review, L8). Any other failure of that ask still throws, so an outage is tried again.checkOrder pins V3’s order script and Minswap’s staking part there, by network (SUNDAE_V3), and readDexOrder reads its owner and destination (seedelf-core’s orders::read): owned by Signature of the session’s own stake key, paying Fixed to the session’s address with no datum. checkOrderCancels runs V3’s own script on the order’s cancel before the swap is signed (1.3.0’s release review, C05). Stop’s cancel of one is signed by 0/i and 2/i. In a longer path, a V3 order would be Minswap’s adapter’s (owned by Minswap’s key, so the session could never cancel it) or placed by the first leg’s batcher: one reason routes are direct (above).Signature of the sender’s stake key, paying Fixed to the sender with no datum, and readDexOrder reads exactly that; a chained first leg names the next order’s datum and doesn’t read. One fill rests on the order’s modules, not its budget: the reader takes only basic_order.withdraw then fee_constraint.withdraw, by hash, since a basic order settles whole in one execution, and any other module could leave the rest at the script, where the runner doesn’t look (only Splash’s address is looked at). None of 174 fills read on 2026-11-09 left an order behind, 33 of them with a budget of 3 ₳ against a 1.28 ₳ cap, so a budget apart from the cap reads. Its cancel is Constr 0 [], signed by 0/i and 2/i, and reads the owner alone, so nothing else in the datum can stop it. V4’s validators aren’t public and its audit’s result is unpublished: what the wallet relies on is read from the deployed script and real orders.quotesTheAsk refuses one whose amount_in, token_in or token_out isn’t what was asked, or whose paths don’t each run from one token to the other with their amount_in adding up to the amount. A quote for another amount would have the user approve the minimum that amount gets, then pay what they typed. It’s checked in routeOf, which every estimate goes through: a quote says so, Review it myself refuses, and the runner builds nothing and tries again later (a retry, not a pause: nothing went out). Minswap gave the amount back as asked in nine mainnet quotes on 2026-10-11, its paths summing to it to the unit, from 7 lovelace to 250,000 ₳ over two DEXes and 98,765 ₳ over seven, so the strict check refuses nothing it answers right. The test fakes answer the recorded quote for what was asked (tests/fixtures/minswap-echo.ts), as Minswap does, unless a test turns that off.MAINNET_PROTOCOLS is refused before anything is funded, the runner’s fresh estimate pauses as refused, and Review it myself refuses. What stays trusted: build-tx routes again on Minswap’s side, so a DEX Minswap adds later isn’t on the exclude list, and could be routed by build-tx alone. Its order would sit at a script orders.json doesn’t hold, though, and checkOrder refuses that before anything is signed.connect-src (networks.ts corsOrigins): no host permission, no new warning at install. If it ever stops, it’ll need an optional host permission.Lovejoin is a mixer of fixed boxes (the classic pool’s 10 ₳, a token’s, or another amount of ADA). The wallet uses it on preprod and on mainnet, where a return goes through it too once its pool holds 30 boxes that aren’t the wallet’s (the pool floor; below it a return comes back directly and says why). That pool is v2’s, of 5 ₳ boxes; the classic pool and 8131b1d’s pools are retired, withdraw-only (Lovejoin v2, and the retired pools, below). It has had no third-party audit, only its makers’ own review, and the wallet says so where Lovejoin is chosen. The record of the protocol and its decisions is the archived plan, archive/plans/chunk-16-lovejoin.md.
Bootstrapping a pool (Bootstrap, which 1.5.0 called a seed). A mix takes two other people’s boxes for each of its own, and the wallet’s own boxes never count towards the floor, so an empty pool can’t be mixed into and no wallet could ever start one: the mainnet pool was empty at launch. So either side can Bootstrap, a chain of depth 0: the deposit alone, no mixes (publicBuild’s bootstrap, sessions.ts’ for the private side, check_deposit in the WebAssembly, fresh_for in seedelf-core). It needs no other boxes, and the floor doesn’t apply to it, because it draws nothing from the pool. It buys whoever puts it in nothing — the box goes back to the same owner and the chain shows it — so the review says that plainly, in a warning. Below the floor it leads the pool’s page, without waiting for a mix to be refused: lovejoin-status carries others and floor for that, both from the pool read the page already makes (ownership works out the other boxes anyway). It also says there that the wallet’s own boxes don’t count, so bootstrapping and mixing in one wallet never unblocks it. Its count is typed, not stepped: it makes no mixes, so it isn’t held to a mix chain’s MAX_MIX_BOXES but to the deposit’s own size (mostBootstrap: MAX_TOKEN_DEPOSIT_BOXES, 64, in every pool on v2’s scripts, an ADA pool’s too; MAX_DEPOSIT_BOXES, 96, was the classic pool’s, retired), and from the private balance to what one funding UTxO’s reserves pay a deposit and its sweep back for (privateBootstrapMost, WebAssembly’s lovejoinBootstrapMost, which builds both for each count: one deposit’s most, at a dearer byte too, fewer only where a deposit’s fee would pass MAX_FEE’s 10 ₳). It goes in from whichever side is chosen, as a mix does. From the public account it’s that one deposit, which spends no script and so puts up no collateral at all (Funding.collateral is None; only mix reads it, and a Bootstrap makes none). Into a token pool, from either side, the deposit reads the pool’s reference UTxO, still with no script and no collateral (1.6.0’s release review, 317-wallet#0). From the private balance it’s a one-time account funded by a Seedelf spend, which puts up giveme.my’s collateral as every Seedelf spend does, and deposits from there; the session records mix.bootstrap (a 1.5.0 session’s mix.seed still reads), so the chain it runs later is depth 0 too. Its funding pays no 5 ₳ collateral and no tail reserve, since a deposit alone runs no script: buildBack builds its chain without one (depositOnly), the WebAssembly’s ChainRequest.collateral and PlanRequest.collateral are optional (mixes_collateral refuses none only for a chain that mixes), and its return is a sweep, never merged, since a merge puts up a collateral. So its one payment carries the boxes, the deposit’s 1.5 ₳ reserve, and core’s bootstrap_back_reserve for that sweep, whose Seedelf output must hold its least after its fee: priced from the parameters the review read, never less than BOOTSTRAP_BACK_RESERVE (1.5 ₳, today’s), so a dearer byte raises the reserve rather than lowering the cap (1.8 ₳ at 6,465 lovelace a byte, where a fixed 1.5 ₳ would hold it to 68 classic boxes); read through lovejoinBootstrapReserve(params), which the form’s bounds carry too (privateBootstrapBounds), and added in mixFunding, never in funding_for, which 1.5.0’s record pins (tests/lovejoin-1-5-0.test.ts; 1.6.0’s release review, 318-rust#0: the deposit’s change alone can’t pay the sweep). The record carries mix.noCollateral, so its return puts up none whatever 5 ₳ is at its account (323-worker#4). A Bootstrap funded with a 5 ₳ collateral, as older versions funded one, keeps it, and its return puts it up and merges; one funded with neither (only dev builds between commits 62162483 and fc8561c7 made one) goes in with one box fewer, that box’s ADA paying the way back, and a one-box one comes back directly. The private side spends private UTxOs for a deposit that hides nothing, so the page says the public account is the cheaper side. A Bootstrap’s boxes are held: no due time, kept in the pool for its mix entry (bootstrapOf, by the entry’s deposit, which for a private one isn’t its chain’s last transaction; a watch that saw the deposit land keeps the hold, landedDeposit) until brought back by hand, one (Bring one back, which asks first) or all (Bring them all back, after which they come back by themselves, one a run). A box brought back by hand counts against the Bootstrap that held it (holderOf, kept on the withdraw as holder): the one whose deposit put it there, or, for one someone else’s mix moved, the oldest landed one missing a box at its deposit; squareUp credits Bootstraps first by what their deposits no longer list; bootstrapOf holds boxes no record accounts for in a Bootstrap’s place only once its deposit is known in; and no Bootstrap holds a box Bring every box back now counted back (holdable, counted) (1.6.0’s release review, 316#0, R3-5). In a retired pool nothing is held: the first run on 1.8.0 or later lets each Bootstrap there go (released, below). A restore can’t know the hold, so on a restored device the boxes others’ mixes moved come back by themselves. 1.5.0’s seeds are never held: a seed’s boxes get a due time at the first pool read and come back unmixed after the delay.
flowchart LR
R["a session's return<br/>(sessions.ts)"] -- "chain" --> L["lovejoin.ts"]
T["Lovejoin page<br/>(Lovejoin.tsx)"] -- "mix: private (a mix session),<br/>public, again, status, withdraw now" --> L
A["unlock, seedelf.sessions alarm"] -- "withdrawDue" --> L
L -- "credential_utxos (mix_box),<br/>account_info (mix_logic),<br/>ogmios (first mix), submittx,<br/>tx_status, utxo_info,<br/>tx_info (what made a box)" --> K["Koios"]
L -- "giveme.my (withdraws)" --> G["giveme.my"]
L -- "buildLovejoinChain, planLovejoin, lovejoinFunding,<br/>buildLovejoinFromAccount, buildLovejoinAgainFromAccount,<br/>lovejoinOwned, buildLovejoinWithdraw, finishLovejoinWithdraw,<br/>ogmiosUtxos, declaredCovers" --> X["WebAssembly"]
{a, b} has a Seedelf register’s shape, so the key’s ownership check finds its boxes anywhere in the pool, after other people’s mixes and after a restore. Boxes aren’t remembered; only their due times are, sealed as lovejoin.<network>, with the chains the wallet sends.mixes), and Bootstrap’s boxes held (above). A chain with no box of its own, a return whose only box is its collateral’s, gets its entry once that collateral’s mix is sent (chainSent; 1.6.0’s release review, 316#3). Once a seed’s or Bootstrap’s chain record goes, its deposit keeps the public account or private session that paid it (depositors, read by depositAccountOf and depositSessionOf, kept as an origin is), so every such box’s way back still ties that account or session, however its mix’s count closes (316#1; a private one’s since chunk 51’s l2rank#3 and l2still#2). The leaves kept once a record goes say which a mix made (mixedLeaves), so a deposit’s own box never reads as one a mix moved. The same rules run per pool; one box a run, the spread and the quiet stay network-wide. tests/lovejoin-1-5-0.test.ts holds the classic pool to 1.5.0’s own record of how it planned and ran, with no pool shown and with the bundled head start’s: its plans to the lovelace, only what a return’s chain measures keeping its slack, and with the head start’s pools shown its Koios requests too, but what a shown pool asks of its own (x-compat#2, R3-17, R3-18). It holds them retired: every return 1.5.0 planned comes back directly, saying no pool of 5 ₳ boxes was known (asRetired), and the vault’s boxes in the classic pool all come back at the first run after the update. The head start’s v2 pools are held apart, each a 5 ₳ ADA pool on v2, since 1.5.0’s record can’t say what a return into one does (1.8.0’s release review, D6). Its record mode refuses unless package.json is 1.5.0.
seedelf-crypto/src/lovejoin.rs): Lovejoin’s transcripts start with its own domain tag (lovejoin/sigmajoin/v1/) and Seedelf’s don’t, so neither proof passes for the other. A withdraw’s proof binds blake2b_256(outputs ‖ input refs ‖ mix_box's hash), read as the ledger hands them to mix_logic (owner_context in seedelf-core/src/lovejoin/mod.rs), so it can’t be lifted into another transaction.tx_info, inputs only, 20 transactions a request, each asked once, keeping what came back before a request that failed):
mix_box: a mix made it, and it comes back by itself as any box does;someoneElsesOf): a public account’s payment key (below), or a private session’s one-time account’s, oneTime.keyHash(i) for every index the session book knows (sessionIndices) and GAP_LIMIT (20) past the highest, as the restore scan looks. Any other is someone else’s, or another device’s session the book doesn’t know (someoneElse): still held, but left out of Mix my boxes again from the private balance (privately, fanOut’s left), never put first when Pay from my private balance anyway takes it, never the page’s reason to make Mix my boxes again its first button, and not flagged on Home or the hub (its count is kept apart, someoneElse, beside unsure). Brought back, it’s a box tagged Unknown too (box:<w>+unknown:<w>, origin lovejoin), which whoever put it in knows: every purpose takes it after money others paid and a box marked mixed (l3rank#3), merging takes it only where no set the box rule tries pays without one, even where that merges more (every set of 12 boxes or fewer; Transaction building, the box rule and its margins past that), and the UTxOs holding a token being sent take it only where the others don’t hold enough, or the spend without it does worse by the rule (chunk 52), or money of a known history but another box paid its way back, which then goes as that money (l3rank#2, l4docs#6), and it’s never marked mixed (chunk 51, e1a#1’s design, l2rank#1). All of that holds only while no mix has moved the box: a mix’s box inputs aren’t traced, so once its depositor mixes it themselves, the box their mix makes is read as any mixed box (above), which Mix my boxes again takes and which comes back as a box, and they can still follow it (chunk 51, own#3, the owner’s call). An answer kept before inputs were (1.9.1) that says a deposit made a box is asked about once more, the box held meanwhile as unsure (rejudge), so Mix my boxes again waits for the answer rather than leave out, as someone else’s, what is most often a restored wallet’s own deposit (chunk 51, time#4);fromPublic, below). An input carrying the account’s stake key under a payment key the wallet hasn’t seen has the account’s keys looked for up to the 500th on each chain, once;unsure), and the transaction asked about again at every pool read that counts the boxes (sortOut, When it asks, below) until Koios answers (asking).The answers are sealed (origins, asking) and go 3 hours after a pool read last listed a box of them. In a retired pool an answer holds nothing back: every box there comes back, mixed or not (below), and an answer only classes the box’s way back (withdrawOne; Transaction building, Picking inputs).
sortOut (the Lovejoin page’s, status from Lovejoin.tsx’s load, as it opens and at Refresh, and once a mix, a Bootstrap, Mix my boxes again or a pool’s start is sent, a review is left (Back, or a refused one’s Watch), a press that brings a box back (lovejoin-withdraw-now) or Bring them all back (lovejoin-bootstrap-release) goes through or the escape hatch asks again (AskAgainError), or as a run of Bring every box back a pool’s page shows ends or stops (BringAllBack’s onOver), never after the hub’s Stop, Try now, skip or Clear, nor a press whose error act catches; the runs’ at an unlock, a due time or a recheck, withdrawDueNow, none while Bring every box back goes, a chain is sent or mixes boxes again, or a withdraw may be on its way, so the unlock’s is skipped then, a recheck being the read owed once a run of Bring every box back that sent anything stops, 2 hours on and again while one of its withdraws is held as spent, or, from retireOnce, once the retired pools’ run is over or stopped; and each press that brings one box back, withdrawNowNow, but one refused before its read (a mix again or a chain being sent, the last withdraw or a payment maybe on its way, the box gone or reserved): Bring one back now, Bring one back anyway, a Bootstrap’s Bring one back, the escape hatch) asks only when more boxes could come back than the schedule has due times for (after a restore, a box from another device or one someone else deposited under the wallet’s key, or once after Mix my boxes again took boxes not mixed yet; a deposit chain being sent counts its own due times apart), and always asks again about asking, whatever the count, a retired pool’s too (found). Only that count’s ask (holding) and rejudge put a transaction in asking: a take’s failed lookup (made’s, or a press’s force, untold) isn’t kept, and the next take asks again (chunk 51, l5words#2). No other read asks again: Bring every box back now’s and the retired pools’ runs, while they go (below), and a review’s (rooms, split, splitAll) read the pools without sortOut. That count (moreThanDue) holds a box not mixed yet and a Bootstrap’s, never one held for an answer (unsure), so one with no due time (after a restore, or a 1.9.1 deposit’s answer rejudge asks about once more) puts it over: while it’s held, in a current pool (a retired one holds none), each such read asks about the pool’s other boxes no record or answer names too, in the same request (chunk 51, l4docs#2). Wherever a box is taken, a box of unknown origin is also asked about first, in any wallet, since a box someone else’s mix moved, which a withdraw prefers, is one no record accounts for, and a last mix a node dropped can leave a due time to one: Mix my boxes again from the private balance asks about all of them and refuses while Koios can’t say; its chain’s build leaves out a box Koios can’t say of, or skips Lovejoin if none is left; Pay from my private balance anyway (publicToo) asks nothing; Bring one back now asks about the boxes ahead of the first known one, in the order it takes them (paid for, hatchOrder’s, so a box no record names comes before another account’s known box: chunk 51, time#2), and refuses while Koios can’t say; a Bootstrap’s Bring one back (heldRequest, a box named) asks about that box where no record or answer names it (knownOf; chunk 51, l3time#1, l4docs#7); and a box coming back by itself is asked about alone, just before its withdraw, and waits a fresh 5 to 60 minutes when Koios can’t say (a failed lookup there isn’t kept), but in a retired pool, where it isn’t asked about (isRetired(read.pool)), though its run’s pool read asks again about asking (above). Bring every box back now and the retired pools’ run (bringAllBackNow, which reads the pools with ours, never sortOut) don’t ask about a box before they take it, and Bring one back anyway puts none in the ask (anyway: no force), though its press’s sortOut asks again about asking, which holds the box it takes first where there’s one (anywayBox takes an unsure box first; chunk 51, l4docs#1, l4still#1): one that no record or answer accounts for comes back as a box whose making the wallet can’t tell (box:<w>+unknown:<w>; chunk 51, the owner’s call of 2026-11-18, l2time#1). A wallet whose boxes all have records asks nothing of the kind.seedelf_core::eval, Aiken’s uplc) on the outputs of the one before:
depth waves deep (a setting, 1 to 3, default 2), with fresh pool boxes drawn at random. Three is what a transaction’s CPU allows with room: four fits by about 1% (lovejoin-mix-width.md), and is a setting (lovejoinWidth), where a chain that can’t go four wide goes three (widthFor);The session’s one collateral backs every mix. The chain’s first mix in each pool takes whatever sits in that pool’s mix_logic reward account into its change, and every later one there withdraws 0 (rewardsIn’s account_info, read once a build, its balance counted as 0 while the wallet’s own transaction on its way takes it; a chain kept for Send reads it again there, and one that moved is a review to make again). The worker sends the chain in order, trying a child again a few times when Koios hasn’t seen its parent yet, and a window a node dropped again whole (see Submits). What it spends, pool boxes included, is reserved as soon as WebAssembly builds it, before the network’s check, and taken back if the check fails. A reservation that overlaps another chain’s is refused, and the chain is built again without those boxes, so two chains built at once never draw the same pool box (independent review L27). One chain makes at most 130 mixes (MAX_CHAIN_MIXES), and one deposit at most 64 boxes, in any pool on v2’s scripts (MAX_TOKEN_DEPOSIT_BOXES; the classic pool, retired, took 96, MAX_DEPOSIT_BOXES), which a transaction’s 16 KiB holds with room to spare: a return’s spare ADA past that comes back with its change (final review lovejoin-5).
Protocol::of in seedelf-core/src/lovejoin/mod.rs, with the reference outputs in references.rs).
mix_logic is 3,161 bytes to preprod’s 3,156. The reference scripts’ size, which prices every mix and withdraw, is read from the bundled outputs, never typed in: preprod’s would have priced every mainnet mix 75 lovelace under the ledger’s minimum.cb5a5a3, its config/network.{mainnet,preprod}.json and offchain/src/seedelf/addresses.ts have Seedelf’s preprod and mainnet reference UTxOs swapped, and its mainnet config has mix_script_hash: null. Ours are seedelf-core/src/constants.rs’s, and mainnet’s mix_box, c145c10f…1fad, is Lovejoin’s artifacts/mainnet/addresses.json: seedelf-core/tests/lovejoin_mainnet_test.rs checks it against the protocol’s reference datum, and it was confirmed against real mainnet transactions on 2026-09-28. Telling Lovejoin is the backlog’s O9.additionalUtxo. If it measures more than the mix declares, or refuses a script, the chain doesn’t start: a return comes back directly and says why. That’s what a hard fork the evaluator doesn’t know looks like.crypto.getRandomValues), on the sessions alarm while the wallet is unlocked. It goes into a fresh register, paid from itself, with giveme.my’s collateral, its pool’s mix_logic reward balance with it: nothing on its way back names a session or an account, though Koios and giveme.my see the device send both ends, and a box hides only among the leaves whose owners also bring them back into a Seedelf (privacy review §5.3). The withdraws wait for a chain that still puts boxes in or mixes them (mixing, chainsMixing), never for one whose collateral’s mix alone waits (tailWaits); the lock countdown and Remove wallet count every chain being sent (chainsSending). No run drops a chain’s boxes’ due times, or sends a box, while that chain, all sent, may still be landing (mayLand): until it’s known in (ChainRecord.landed, marked by landedBy from a pool read, or by a watch’s landedDeposit), LANDING_MS (15 minutes) at most (1.6.0’s release review, 321-lj-worker#0, x-scenarios-lj#1). Bring every box back now waits on it too, and says what it waits for in a word (Bringing.waiting); once a withdraw it sent has waited BRING_LATE_MS (10 minutes) by the wallet’s own spent marks, it’s late, and the page offers Stop (321-lj-worker#1, #4). It leaves a session’s collateral’s box to that mix while the mix waits or may be built again (tailBoxes), and a Stop leaves its count and pool sealed (bringStopped) until the next ask, so every page that saw the run says Stopped, never Done (L2).
retireOnce, below). A box that came due while locked, or comes due in the first 2 minutes after the unlock, waits a fresh secure draw inside the stretch the unlock keeps the wallet open (UNLOCK_WAIT_MS: from 2 minutes in, at most 2 before the auto-lock, never past 20), once. Whichever run gets there first after the unlock makes the draws (unlockDraws), from the sealed schedule before any Koios read, so a failed read at the unlock, or a run already under way, can’t skip them. The schedule records which unlock drew them (unlock, from seedelf.unlockedAt; independent review L10, L13). A time drawn at an unlock that locked before it came isn’t drawn again: it goes about a minute into the next unlock (the “once” rule).QUIET_AFTER_SEND_MS; pushed 3 to 10 minutes, three times at most, then it may go, never in that run). It’s read again once its Koios reads and giveme.my’s witness are done, just before its submit: anything sent meanwhile and it isn’t sent, its box keeping its due time for the next run’s push (SentMeanwhile, chunk 51, x4#1). Every try of a payment that may still go through counts, the watch’s resends and Send again, and so does the last one of a payment later let go as unseen (independent review L8, final review F8). The last send, a site’s through the connector included, is known across a lock (seedelf.sends, Wallet.sends). After a closed browser or an update earlier sends are forgotten, so a send is counted as late as the worker’s first start then, and that push leaves the next unlock its fresh draw (independent review M10). An unlock alone isn’t a send.ChainRecord.delay: a swap’s as approved, a mix session’s as reviewed, else Settings’ as the return was built), and its boxes’ due times are drawn from it once its first transaction is sent (independent review L21). A mix from the public account uses Settings’ then.WITHDRAW_SPREAD_MS), drawn on its own: they come back apart while the wallet stays unlocked, or one at the next unlock. The due times are trimmed to the boxes the pool read found inside the schedule’s update, never while a chain is being sent or one was scheduled during the read (independent review L29).withdrawing, in lovejoin.<network>) and its box held as spent before it’s submitted; one whose record can’t be written isn’t sent. One built while the wallet locked and unlocked again isn’t sent, and waits the new unlock’s draw (independent review L11). The record holds its box’s due time (due), which goes with the box once it may have gone, and comes back if it never did. Koios refusing it, a 429 included, drops the record, frees the box and gives its due time back. A refusal while a lock kept the record from being dropped is remembered in memory, and dropped the same way at the next look, before the unlock’s draws, never sent again; after a worker restart that memory is gone, and the record is handled as one that may have gone through (final review F5). Anything else (a timeout, a 5xx, an answer cut off or unreadable, another id) may have gone through: the record stays, and the box stays held. Bring every box back now’s withdraws carry bring, and their boxes go into counted as they’re counted back, so one a node dropped, taken again once its spend lapses (SPENT_KEEP_MS), is counted back once and takes no other box’s due time; Stop’s recheck reads the pools once when it lapses, so such a box gets a due time back (1.6.0’s release review, wlj-2’s notes). A box’s own withdraw records neither: 1.5.0’s records stay as they were.tx_status) each run, and only looked for in the unlock’s run. It’s sent again, the same bytes with no new giveme.my, at most every 3 minutes, under a new withdraw’s rules: it waits the unlock’s draw, never goes in a run that sent anything else, and is pushed within 5 minutes of another send. Each resend counts as the wallet’s send (independent review L8). A resend isn’t sent when the wallet locked and unlocked since the run’s unlock draws, as while Koios answered tx_status: it waits the new unlock’s draw, if it hasn’t had one (final review F6). It’s dropped once it’s seen, or 2 hours after it was first sent (its box then waits for a pool read to be given a due time again), and no other box goes on that network meanwhile. Bring one back now sends it again at once only once 3 minutes and any drawn wait are over, and until the chain shows it, says the last box may still be on its way.seedelf.sends and the spent set, in its chrome.storage.session), its chains, withdrawing, mixingAgain and the due times. With the phrase unlocked in two profiles, each brings back the other’s boxes on its own schedule, blind to the other’s sends, withdraws and chains, so two of the phrase’s boxes can come back within a minute from one IP address; privacy.md says to keep it unlocked in one at a time (chunk 51, gap-g9#2). Holding the rules across profiles (counting a box gone with no withdraw of this profile’s as a send) would be a design of its own.reached, in session storage, so a lock ends it with the chain), so a later call whose tries are all refused, after a dropped window was sent again, still stops as may have gone through (final review F10).tx_status shows it, utxo_info shows something it spends spent, or about two hours after its last try (SPENT_KEEP_MS). The refusal says how long is left, or, past that with Koios not answering, that it couldn’t reach Koios to check. The wallet only looks for it, and never sends it again. The worker’s runs look for it too, with no page open (above).lovejoinMaybe.<network>, kept through the reset. Restoring the same phrase here looks for it before another mix from the account is built, and deletes it once it’s settled; any other phrase’s wallet deletes it when it’s made. It holds nothing back but new mixes from the account. Forgot password can’t read the Lovejoin record, so it adds none, though it leaves one an earlier Remove wallet kept.buildLovejoinAgainFromAccount, the change left in the account), which ties nothing new. Mix my boxes again leaves them out; Pay from my private balance anyway takes them all, after a warning its review repeats.again: its one-time account is funded for the mixes alone (again_funding), and its chain has no deposit (lovejoin::again), the first mix paying from the funding. Its first mix is checked by the network with nothing extra, since all its inputs are on chain. It asks Koios first what made any box no record accounts for, so it never pays from the private balance to mix the public account’s box, nor a box someone else put in under the wallet’s key that no mix has moved since (chunk 51, e1a#1, above; one they mixed themselves reads as the wallet’s own, own#3), and refuses while Koios can’t say (independent review M14). Never in a retired pool (below).
SessionService.mixingAgain, which Lovejoin asks before withdrawDue and Bring one back now): from its funding until its return is sent, since its chain spends the boxes. There’s one at a time. A mix session with nothing at its account that pays its own way back (nothingBack) no longer holds them; one whose listing shows only a stranger’s UTxO, its funding not listed yet, still does (independent review H1).chain: { total, last, at } on the session), so its view counts the transactions sent and those on chain, and says if it stopped, partway or before any of it went (1.5.0’s cross-area review, X03). The Lovejoin page, a swap’s timeline, a site session’s page and every return’s Send button show it, reading the record every 2 s while a chain goes (no Koios); the on-chain count moves as the runner reads tx_status. A public mix’s progress (lovejoin-mix-public-progress) comes from session storage, then from its sealed record once that’s gone, and may look on chain (above). Stopped at a transaction that may have gone through, it says “stopped after N of M transactions, and the next may have gone through”, in the Chains list too, after a lock as well (independent review L5). The Lovejoin page’s chain rows, each listing its transactions while it’s sent (on chain, sent and not on chain yet, being sent, or not sent yet; one whose send began, or whose try may have reached a node, is being sent, never not sent yet: 1.3.0’s release review, C29), are read again from the device every 5 s while one isn’t stopped (lovejoin-chains, LovejoinService.chains: cuts and the sealed schedule, no Koios), and at once when the public mix’s progress poll finds it all sent or stopped, so a chain all sent or stopped since leaves its row or says so (C28). The page holds Transaction details opened from a chain’s list, so it stays open when the list goes.
chainSoFar’s done): what a stranger pays its account before it closes comes back directly, a 5 ₳ of it isn’t mixed as the session’s collateral, Stop on it says nothing of the mix, and the mix reads as its own return left it (chunk 51, e2b#1). A session the restore scan found has no record of a chain another browser sent from its account: its deposit and mixes are in recovered.own alone. So what that chain left goes through Lovejoin as Settings has it, when its spare ADA pays for a box, in a deposit chain of its own that never draws the wallet’s boxes; its review’s switch brings it back directly (1.5.0’s release review, C51).carriedOf; 1.6.0’s gate, LIVE-1) reads as done: it stopped once every transaction that makes its boxes was sent (its deposit and mixes, ownTxs), it left no collateral’s box waiting for its mix unless a later chain took that box over, and its session’s return brought its rest back since, either in a chain of the same session recorded after it and all sent (buildBack’s chain built in its place, or tailChain’s), or in a return that came back directly (sendBack → LovejoinService.restBack → ChainRecord.restBack; for one Koios took without an answer, noteLanded marks it once that return is on chain, only chains recorded by the time it was sent). It’s left out of Home’s stopped count and the Chains rows, and its entry in the list of mixes carries done. sortOut writes restBack on such a chain before it drops the record that carried it, so the reading outlives that record under a 6–24 h delay (last-5). Otherwise the record isn’t rewritten: stopped, cut, sent, left, found and tail stay as every other rule reads them.lovejoin-held), and hidden with the balances, count included. The unlock scan reads the pool only on a network where something is open: boxes on their way back, a chain recorded, or boxes not mixed yet, those Koios hasn’t said the making of included (privacy review §2.18).
unschedule). A box that goes through Mix my boxes again gets a time afresh. After a restore, a box a deposit made has no due time either, and counts as not mixed yet; boxes Koios hasn’t said the making of are counted apart, as “not known to be mixed yet” (unsure), on Home and on the Lovejoin page, and Bring one back anyway takes one of those first (independent review M14).lovejoin-launch.ts); a return’s tokens go through their own pools beside its ADA’s, in one chain (acrossOf), and a swap that buys a token a pool takes funds its boxes.
Lovejoin), the wallet’s boxes in every pool, the chains being sent, Your mixes (lovejoin-mixes’ entries joined with the private mix sessions, mixItems) and the pools grouped by token (ui/lovejoin-pools.ts: poolsOf, groupPools, searchGroups, crowdText, boxText); each pool opens its own page (PoolPage), the classic pool’s included, with today’s mix form, Bootstrap (leading below the floor), the box actions scoped to it (lovejoin-withdraw-now’s pool) and the escape hatch; a retired pool’s is withdraw-only (below). The hub owns the reads and the polling (a public mix being sent, sessions running), so they go on while a pool’s page is open; a Send goes back to it. LovejoinLaunch.tsx is Start a pool. What the hub says of a pool beside the read (its crowd, its launch, whether this wallet started it, and starts not found yet) comes from discovery through LovejoinDeps.facts, from the device, no request. Summaries carry each pool’s box value by id (values), so a review can name a pool it didn’t read; the swap approval is built again when its switch or Change moves (session-out-build’s through and pools).lovejoin-pools.ts): a standard pool, the earliest launched of its values (the box’s ADA and its token) on its set of templates, so a v2 pool is never a copy of an 8131b1d pool, and an 8131b1d pool shown stays shown, for the boxes the wallet brings back from it. Standard is genuine (WebAssembly’s lovejoinLaunchCheck finds the seed among its launch’s inputs and derives its scripts), of a token in tokens/list.json or of ADA but at 10 ₳, and finished by its launch: that transaction puts mix_box and mix_logic at the holder, each under no datum or one nested within 128 levels (cbor::MAX_DEPTH), and registers L, unless an earlier block did. A script row under a deeper datum, or one that isn’t one CBOR item, is no reference: WebAssembly’s protocol_of passes it over and the script is carried (scriptsInline ≥ 1), so the pool is never kept, and the data layer leaves it out (1.6.0’s release review, 314-wasm#0: such a datum overflows WebAssembly’s stack). Found from the data layer’s lovejoin/pools at a pool read (at most every 5 minutes while the worker runs: PoolDiscovery keeps when it asked in memory, so a worker the browser started again asks at its first), or Koios’s holder as the Lovejoin page opens (lovejoin-look-for-pools) or a pool’s start is built, and, at most every 5 minutes while the worker runs, where an ask finds no 5 ₳ pool or Settings’ Bring every box back is asked (lookSoon, below), from the bundled head start’s height (src/lovejoin-pools.json, npm run lovejoin-pools). A look takes only launches whose block is at least 10 minutes old (SETTLE_MS, about 30 blocks), so a launch rolled back, or made again in another block, isn’t taken where it was. Kept in seedelf.lovejoinPools.<network>, and handed to LovejoinService as pools, which verifies each again. From the data layer’s list, the wallet checks each pool is genuine and of a listed value, and leaves out one whose launch, or a script row of it, isn’t its reference row’s own transaction, as the data layer’s own rule demands (refresh; 1.6.0’s release review, 317-wallet#0). The rest is the server’s word, as everything the data layer reports is (the root README’s Data Layer Reliance): that the pool is finished, its datum, its scripts’ places and where its launch sits, which the earliest is worked out from. A pool on the list is kept as it comes, so a pool’s start refuses a copy of it at once. Koios isn’t asked to confirm a listed pool new to the device: the wallet trusts its data source by design, and such a check would keep new pools, a look and a pool’s start waiting on Koios even while the data layer answered, and its timing would let Koios guess who started a pool. Whether a pool is on chain at all is the ledger’s to judge: a pool verifies offline from any seed, so one a list names may never have been launched, or its launch rolled back, but every deposit into a token pool reads its reference UTxO (core’s deposit_across), so the ledger refuses one into a pool that isn’t on chain (BadInputsUTxO, which stops the chain) rather than lock its boxes for good. Koios’s look works the rest out itself, from the launch’s own transaction (tx_info) and, for a launch that didn’t register L, L’s earlier registration (account_update_history). The bundled head start’s pools are read from Koios’s holder at each release. Nothing checks L again once a pool is found (usableNow passes registered: true). A pool once handed over is handed over for good, beside an earlier one of its values found later, so the wallet’s boxes in it never drop out of view (1.6.0’s release review, STATE-2). Such a pool, a copy (HandedPool.copy, LovejoinPool.copy), is read-only: usableNow answers superseded, so nothing puts a new box in it (a mix, a Bootstrap, a return’s or a swap’s token boxes, a launch’s join), though mixing again the boxes already there is allowed under the pool’s other rules (usableNow(…, again)), and status lists it only while the wallet has something there. Every copy a device keeps is read once at the next pool read (copiesUnread, copiesRead, the unsealed checked), and once more under a new box reader (BOX_READER), and one holding the wallet’s boxes is sealed in lovejoin.<network>’s copies and read at every pool read until nothing of the wallet’s is left in it, so a restore finds those boxes (MERGED-1, R2-2, R2-4, R3-1). The data layer applies the same rule with its own copy of the checks (seedelf-data/api/src/lovejoin/): the two are held to seedelf-core/tests/fixtures/lovejoin-pool-vectors.json, whose scriptRowDatums hold the depth walk too, and extension/tests/fixtures/lovejoin-shown.json.Protocol is a pool, the classic one bundled whole and a token pool found on chain. A token pool is trusted only once verify_pool has derived its scripts from its seed with the bundled templates (seedelf-core/src/lovejoin/templates.rs: Lovejoin 8131b1d’s set, retired, and v2’s, 29573c5, the one launches use), since one_shot_mint never checks the hashes its datum names. A seed makes the same P on either set, so the datum’s L says which set a pool runs, and the shown rule keeps the sets apart. Its scripts are read by reference only from the always-false holder, and carried in the transaction otherwise.deposit_from, chain_from), mixes and withdraws carrying it, a withdraw for a box that can’t pay its own way back paid by an account (withdraw_paid, with the account’s collateral) or by a Seedelf UTxO of ADA alone (withdraw_private, its proof bound to a one-time key that signs, under giveme.my’s collateral, the UTxO’s ADA coming back with the box in one output), and a pool’s launch from the Seedelf balance (launch, one Seedelf spend that mints the NFT, publishes the scripts at the holder and registers mix_logic; the spend’s with_staking takes only a script’s registration with cert 0, and refuses in words any other certificate, a withdrawal or a vote, for which it adds no witness: 1.6.0’s release review, 314-core#2). A private launch makes each seed’s pool once, with what a launch locks as the selection’s floor, and measures whether it’s usable once, on the pool chosen (314-core#0); a launch from the public account never spends a UTxO carrying a reference script (318-rust#1). Every deposit into a token pool reads that pool’s reference UTxO (deposit_across: once a pool a box goes into, none for a leg with no box), so the ledger refuses one into a pool that isn’t on chain; the classic pool’s deposits read nothing, byte for byte 1.5.0’s (317-wallet#0). A token leg planned no box takes none of its token, in the plan and the deposit (319-rust#0), and the worker counts a return’s tokens only from UTxOs the evaluator takes (evaluable: no reference script, a datum it reads, withinDepth held to the shared vectors’ scriptRowDatums), so a token on any other is no pool’s token that time and comes back with the return, and a session brought back by hand isn’t offered 5 ₳ of collateral for it (collateralWanted; rr-1’s note on 319-rust#0). A pool whose box ADA would make a sum pass what a u64 holds gets no box in a plan and offers no Bootstrap, and a quote or a deposit of its boxes is refused in words, “These boxes cost more ADA than there is” (MORE_THAN_THERE_IS, 314-core#1). usable says whether a verified pool can take a new mix: the worker refuses a new box (a mix, a Bootstrap, mixing again, from either side) in a token pool that can’t take one, in words, before anything is built, and status() says why on each token pool for its page (takesNewBoxes, unusable; 1.6.0’s release review, MONEY-3). That’s only a box below the network’s minimum, a copy, or a retired pool (below): a pool whose boxes can’t pay their own way back today takes new boxes, status() gives its cantComeBack (what’s left after the fee, what the Seedelf output needs) for every token pool, the wallet’s boxes there or not, so the page warns before Review, and the planners (a return’s tokens, a swap’s token pool, Change’s list) pick it as any other, marking its token’s way stuck for the review. Its due boxes wait (STUCK_WAIT_MS); nothing pays for them by itself. A pool whose boxes come back but can’t then pay out part of themselves on their own, under S0d’s least, is picked as any other too, and said in the same places (cantPayPart on status()’s pool, on its token’s way and in a review’s values, Change’s list reading it there; chunk 51, gap-g5#1): the same measure answers it, lovejoinUsable’s alone, S0d’s own steps built at the pool’s box value, once an epoch beside cantComeBack (comeBack). A pool’s start (launch, launch_from_account) is refused only where a box would be under the network’s minimum (box_minimum); under S0d’s least, or where a box can’t pay its own way back (Launch::cant_come_back), it’s built and its review says so (the owner’s call, gap-g8#6). A Bootstrap’s boxes are held by their deposit (MixEntry.deposit, bootstrapOf): a private Bootstrap’s chain ends with its session’s return, so its id isn’t its deposit’s.lovejoinVerifyPool, lovejoinCandidate, lovejoinLaunchCheck, lovejoinUsable and buildLovejoinLaunch, and poolRef beside a lovejoinOwned or buildLovejoinWithdraw request; without one, a request is the classic pool’s, its JSON as 1.5.0 wrote it. The escape hatch’s withdraws are lovejoin-withdraw-now’s paid: "private", the page’s default, is buildLovejoinWithdrawPrivate, given the private balance’s spendable UTxOs (readContract: nothing locked or reserved) in the order to try: a box marked mixed first (origin mixed, as a funding and a Send take one where one box pays alone: chunk 51, l4code#2), then one back from Lovejoin with no other history (knownBox: boxes alone; a box of unknown making, unplacedBox, goes with the rest, since whoever put it in can follow its way back: chunk 51, l3time#3, l3still#2); then, for a box a public account put in (depositAccountOf, else its origin’s account, as status’s fromPublic has it), one whose history names no other account; then the smallest (1.6.0’s release review, x-privacy#0, R3-2). What its history ties (ties) is still the deposit’s account alone, as PRIV-3 has it. It answers unsigned with its one-time key’s seed, and the worker adds giveme.my’s witness, then signScriptSpend, as any Seedelf spend. Its history is what came in (the box’s ADA less the fee: the UTxO was private already), its origin the box’s way back merged with the paying UTxO’s class and any account ties (Withdrawing.origin). true is buildLovejoinWithdrawPaid, signed with the account’s keys and its own collateral, no giveme.my. Naming no box, the escape hatch takes them in hatchOrder: the account on screen’s own and those no public account put in first, then another account’s, the lowest first, each group in backOrder’s order; the page names that account (hatchAccountOf) where every box it can take is another’s (R3-3). Neither counts a box a chain built and kept for Send reserves (status’s reserved; the page reads status again on Back from a review), and the request carries the account the question named: a pick that would tie one it didn’t name throws AskAgainError (the reply’s askAgain), nothing is sent, and the page reads the pool again and asks again (chunk 51, gap-g2#2). A poolRef’s script at the holder can be named by its hash alone, as the data layer’s list and the device’s record name them: WebAssembly fills in the bytes it derives.RawJson in koios.ts): a token’s amount can pass 2^53, which JSON.parse would round.isRetired): the classic pool, and every pool not on v2’s scripts, 8131b1d’s. usableNow answers retired before anything else, and takesNewBoxes refuses it with no parameters read, so nothing deposits or mixes there from either side: every way asks (a return’s chain, the tile’s Mix through fits or publicBuild, Mix my boxes again through againBoxes or publicAgainBuild, a Bootstrap through privateBootstrapMost), the public builds before the account is read (1.8.0’s release review, R8), and the screens name the pool they mix in. Every withdraw stays: a box’s own, Bring one back now, Bring every box back. A 1.7 mix session’s return into its retired pool comes back directly, saying why (lj.unusable.warn.retired), and a 1.7 collateral’s mix left to build there is over (tailChain; tailBuildable and tailBoxes skip it, R2). A launch builds on v2 alone.adaPoolOf): the first v2 ADA pool of 5 ₳ a box that isn’t a copy, as discovery keeps the pools, which show one pool of a set and values, so there’s one at most. It takes a return’s spare ADA (chain() asked for no pool, and acrossOf’s ADA leg), a swap’s price (priced) and the session’s collateral (collateralPool, collateralPoolTakes, funding’s tail). adaPool(network, ask) reads it as discovery last kept the pools. Asked (ask) with none kept, it reads the list (the data layer’s, on mainnet, at most every REFRESH_MS while the worker runs), and with none listed it looks (discovery’s lookSoon): Koios’s holder, as the page’s look reads it, unless the data layer answered within REFRESH_MS or a look started within REFRESH_MS (the page’s too, whatever it found), each while the worker runs: asked, answered and scanned are in PoolDiscovery’s memory, so a worker the browser started again looks at its first ask (1.8.0’s review of its fixes, r2-critic#2). One under way is joined, and so is a refresh. A look that fails finds none, as discovery failing is no pool gone; a trap is rethrown. So a 5 ₳ pool launched after a device’s head start is found and used without the page, on both networks (1.8.0’s release review, O1). Not every pool: once a 5 ₳ pool is kept, no ask looks, so where the data layer doesn’t answer, a token pool launched since is found as the page opens, at a pool’s start, or at Settings’ Bring every box back (1.8.0’s review of its fixes, r2-critic#1). What asks: a return’s build, by hand or by the runner, a mix session’s chain’s included (chain(), collateralPool, and collateralWanted where the account has no collateral), a swap’s Review and Stop’s dialog (priced), a funding’s or a top-up’s review (tailReserve → collateralRoom, a mix’s collateralPool; a site’s, lovejoinRoomNow too) and Put in 5 ₳ (backCollateralBuild). Quiet, asking nobody: the quote as the user types, collateralPoolTakes, the Mix form’s tail, held(), the session list and the connect window’s card (lovejoinRoomKept). Settings’ Bring every box back looks first, whatever’s kept (bringAllBack with no pool; critic#2).sess.skip.warn.noAdaPool as what the wallet knew then (O4), or the floor’s lj.skip.warn.floorShort as the pool held when read (critic#0). Its tokens still go into their own pools, acrossOf running with no ADA leg, and noAdaPool is thrown only where no token goes (O5). A swap’s Review asks first, so one review never says “no pool” while its collateral’s pick finds one and reserves that mix (O2); with none, it prices no box, and of says what the spare would pay for in 5 ₳ boxes, so the approval keeps its Lovejoin choice, hedged (swaps.lovejoin.privacy.onPoolShort), for a pool its return finds. With no collateral at the account, collateralWanted says noAdaPool, or the floor’s reason, and says the spare is too little only where it pays for no box (O2, critic#1). The connector says a site session’s spare ADA is mixed only where v2’s 5 ₳ pool takes a box of it now (lovejoinRoom): the funding review from its own read, by priced’s rule (lovejoinRoomNow), the connect card from a read kept within POOL_ROOM_MS (lovejoinRoomKept, its room read quiet too: 1.8.0’s review of its fixes, r2-worker#2), so no look is tied to a site’s connect; elsewhere each line is hedged (O3).retireOnce) runs at every withdrawDue run until it decides, before Bring every box back’s and the unlock’s draws, so at the first unlock on 1.8.0 or later, and once a network (Schedule.retired, when). A wallet with nothing in a retired pool gets nothing written. It marks the chains the update cut first (cuts, R2), and decides nothing while a pool its record names is missing from discovery’s read set (retiredIds’ undecided: a read that fell back, R3), or while a v2 pool’s page’s run goes (R1). Then it lets each Bootstrap there go (released), ends a collateral’s mix left to build there (tail.over), drops 1.7’s counts of boxes not mixed yet there, owing a pool read at once for those boxes and the Bootstraps’ it let go, which have no due time (recheck, critic#3, r2-critic#0), and asks Bring every box back over the retired pools alone (Bringing.retired): afresh over one that stopped, widening a retired pool’s page’s run 1.7 left going and keeping when it was asked (R1), and leaving every pool’s as it is. The retired pools alone, not every pool: a second device updating later would otherwise bring back the v2 boxes the first one mixed. Settings’ first press widens it to every pool’s; a retired pool’s page joins it; a v2 pool’s page is refused while it goes (lj.bringOtherPool). Stopped by itself, Settings’ Try again asks the retired pools’ run again (bringAsk’s { retired: true }), under its own question, “Bring the retired pools’ boxes back now?” (R4); stopped by Stop, bringStopped.retired says so on every page. That owed read waits while the run goes, and comes at the next run once it’s over or stopped: a Stop, pressed or the run’s own, never puts an owed read later (Math.min), or Home would leave those boxes out for two hours; and the read comes again SPENT_KEEP_MS on while a box one of the run’s withdraws went for is still listed and held as spent, so a box whose withdraw a node dropped gets its due time once it’s free (withdrawDueNow; 1.8.0’s review of its fixes, r2-critic#0). A box someone else’s mix moved since the run was asked keeps its wait only for a chain of the wallet’s that mixed in its pool (madeSince, critic#5).sortOut’s old holds no box there for Mix my boxes again, a Bootstrap or Koios’s word on what made it, only a chain’s box still being sent, and moreThanDue counts that way. The scheduled withdraw asks Koios nothing of such a box, and Bring one back now’s held set leaves them out. Every box there comes back by itself on its schedule, mixed or not, and Home counts none as not mixed yet.shownOnHub), withdraw-only with its reason, as a copy is: no Bootstrap, no start-up meter. “No pool to mix in yet.” shows wherever nothing is searched for and no pool listed takes new boxes (noneTakes), retired rows above it or not (O6): takes is !unusable, so a retired pool, a copy and one below the network’s minimum take none (1.8.0’s review of its fixes, r2-screens#3). The aside says “A mixer for ADA and tokens” where a token pool takes boxes (O6), “A mixer for ADA, in 5 ₳ boxes” where every ADA pool that takes boxes holds 5 ₳ or none takes any (fiveOnly), and “A mixer for ADA” otherwise (lovejoin.asideAda, r2-screens#4); the search filters only while its box shows (S1). A retired pool’s page keeps Mix’s form with Review off and the retired reason under it, Mix my boxes again off with its reason, no other account named to switch to (W9), no Bootstrap, and Bring one back now and Bring every box in this pool back now on; during the retired pools’ run it says theirs, with their count (W2), and emptied by a run it stays on its last read (keptPage, S2). A v2 pool’s page, while the retired pools’ run goes, says that run’s boxes are coming back and its own can come back once that’s done, or Settings for every pool, its link off and nobody asked to stop that run (lovejoin.bring.otherRetired, r2-screens#5); while another pool’s run goes it says to stop that first (lovejoin.bring.other). The worker’s refusal, which only a race reaches now, still says the latter (lj.bringOtherPool). A chain stopped partway whose every pool is retired says why it stopped alone, never Mix my boxes again (LovejoinChainView.retired, W8).TAIL_DRAWS), never at the cost of the one box that fits (roomIn, roomLeavingTail, ChainCall.holdTail). Mix my boxes again leaves them too, where Settings has the collateral go in and this is the 5 ₳ pool (againBoxes): one box fewer where the room binds, which refuses nothing. The tile’s Mix keeps the user’s count, and says the collateral is mixed only if enough is left where its boxes leave fewer (tailReserve’s draws and short, the form’s mixOffer), as Stop’s dialog does where a return’s one box leaves fewer (tailDrawn) (1.8.0’s release review, P1). Stop’s dialog counts its boxes as the return’s chain does: where collateralPoolTakes says “yes” on priced’s read, the room it counts leaves that mix its two draws at each width (priced’s held, roomLeavingTail), so D3’s rule weighs what fanOut weighs, and tailDrawn reads priced’s own room at the width counted, asking nobody more. Counted on the whole room, the dialog would name a box more than its return makes where the room binds, with its mixes and fees, and at four a mix could give the wrong width and fall-back note, or say “mixed” where the return builds no tail (1.8.0’s review of its fixes, r2-worker#0). Where collateralPoolTakes says “no” from the data layer’s last crowd count while the read holds the floor, it still counts the whole room: more than the return makes, which “at most” covers. A swap’s Review, a forecast, counts the whole room (P1). A return that comes back directly reserves its collateral’s mix as it’s built, STALE_POOL_TRIES times without a box another chain took, then with no mix (P2).AutoRecord.lovejoin.box, which 1.8.0’s approvals record as 5 ₳): its return takes no more 5 ₳ boxes than the classic pool’s count for its ADA (ChainWay.classic, from pricedClassic: countAt plans both and takes the lesser), and Stop’s dialog counts it the same (priced’s classic); the rest comes back at once (critic#4).rooms(), kept POOL_ROOM_MS). tailReserve asks collateralRoom, collateralPool’s rules on that read, rather than read the pools again on its own, which would read every pool twice in a site’s funding review (lovejoinRoomNow beside it) and in a swap’s Review. A pool the kept read lacks, read before the pool was found, is read afresh (collateralPool), never taken for a failure; a read that fails is "failed", the funding’s maybe (fx-may). A mix’s review keeps collateralPool’s fresh split beside its own (tailReserve’s draws): a kept read doesn’t see what the wallet’s chains reserved since, and short would say mixed where its draws leave that mix none (P1). rooms() rethrows a trap, as collateralPool’s tell does, so priced, tokenPool and lovejoinRoomNow do too (L3). A build reads the pools afresh.status’s pool read schedules them, privacy review §2.18), and in a retired pool they come back from the next run, one right after another. With no data layer, a device that never kept a v2 pool launched after its head start reads that pool only once a look finds it: the page’s, a pool’s start’s, an ask’s while no 5 ₳ pool is kept, or Settings’ Bring every box back, which looks first, whatever is kept (critic#2; 1.8.0’s review of its fixes, r2-critic#1).POOL_ROOM_MS, its collateral’s look included, and a mix’s review two, its own and its collateral’s (r2-worker#1). A session’s collateral’s mix adds a pool read as its return is built (collateralPool), two submits (its deposit and its mix), and, before the mix goes, an evaluate and giveme.my’s witness, asked again after each wait while giveme.my is busy (a minute, doubling to 30), for a day at most after its deposit lands. A Koios behind its deposit stops it instead, since the wallet can’t tell that from a box gone (the backlog’s Lovejoin lines). A withdraw is giveme.my and one submit (the escape hatch’s reads the private balance first, as any Seedelf spend, or, paid by the account, reads the account and asks no giveme.my), and the unlock scan one pool read. A withdraw that may have gone through adds a tx_status each run and a submit at most every 3 minutes, with no new giveme.my. Bring every box back now stopped after sending, by Stop or by itself, adds one pool read 2 hours on (recheck); the first unlock’s retired run, where it dropped 1.7’s counts or let a 1.7 Bootstrap go, one at the next run once it’s over or stopped, sent anything or not, and one more 2 hours after that while a withdraw it sent is still listed and held as spent (critic#3, r2-critic#0). A pool’s start, a mix from the private balance and Mix my boxes again read the network’s parameters once a review (1.6.0’s release review, 318-worker#3, wlj-2’s notes). A dropped window sent again adds submits; a chain built again after drawing a box another chain holds, a pool read and an evaluate; and a public mix stopped at a transaction that may have gone through, a tx_status (and a utxo_info) each time it’s looked for, at most every 2 minutes while the worker runs, by the runs as well as the pages. A box no record accounts for costs a tx_info per 20 transactions that made them: with a pool read once each (again at each read while Koios hasn’t answered), and at Mix my boxes again, its chain’s build, Bring one back now and a withdraw of such a box. A stake key input under an unknown payment key costs at most 960 key derivations, once (independent review M14). The look an ask makes while no 5 ₳ pool is kept, and Settings’ Bring every box back’s, where the data layer doesn’t answer, costs one credential_utxos of the holder, one tx_info for its candidates’ launches and an account_update_history for an L its launch didn’t register, at most every 5 minutes a network while the worker runs; with the data layer answering, the list alone, as any pool read asks it. The first run on 1.8.0 or later costs a withdraw for each of the wallet’s boxes in the retired pools, back to back: giveme.my and one submit each. Each build, a withdraw included, adds one account_info for each pool it mixes or withdraws in, of that pool’s mix_logic reward account, its collateral’s 5 ₳ pool among them, read once a build whatever its tries: a chain in one pool 1 (2 where its collateral’s mix goes into the 5 ₳ pool apart), a return across pools one a pool, and one more a pool at Send for a chain or a return kept for it; a withdraw refused for a balance that moved, one more as it’s built again; a Bootstrap, which runs no script, none (1.8.1’s release review, worker#5). On mainnet the data layer’s edge charges 4 units for each, and each is one request on Koios’s public tier.Messages between Seedelfs (chunk 54): the protocol is seedelf-messaging’s, specified in its protocol.md, and reaches the worker through WebAssembly’s stateless exports (wasm/README.md). The worker’s half is background/messaging.ts (54e); the screens are ui/screens/Messages.tsx and ui/messaging.ts (54f), whose flow is flows.md’s.
Preferences.messaging, the owner’s call 9); only preprod’s can be on for now (the next bullet). While a network’s is on and the wallet is unlocked, the worker reads that network’s relay pool at unlock and every minute after (seedelf.messaging’s alarm, syncAll), whichever network the wallet shows, and, while a page of the wallet is on screen, the network the wallet shows every 10 seconds too, on one grid of the worker’s that every page shown polls on (messaging-sync, answered with the time to its next tick, nextIn; pollOnGrid in ui/messaging.ts): pages at a tick join one read, so several pages shown make one read every 10 seconds, not one each. A page’s sync as it’s shown or comes into view is its own request, off the grid, and a hidden page asks nothing; the overview names the build’s other networks whose switch is on (alsoOn), for the page to offer to turn them off. Off, nothing reaches the relay but the withdrawals the switch off queued (Two keys and the certificate list, below): what’s written waits, unposted (a first message only where the certificate list’s copy holds its Seedelf’s certificate), and each unlock only tidies that network, with no request (skipped keys and tombstones expired, a record a stop left behind deleted). It’s changed through messaging-switch only, never preferences-set, one settings write at a time, and refused while locked. Koios-only doesn’t touch it: there’s no Koios version of it.MESSAGING_NETWORKS in networks.ts, ["preprod"]; the owner, 2026-11-24). messagingOpen(network) is the one gate, held in three places:
messagingSwitches, in PreferencesService’s get and set). Every reader of the switches reads them there, the worker’s syncs and the pages alike, so a mainnet switch a development build left on reads as off everywhere.MessagingService.switch). Turning one off is always allowed. In the same words it refuses every press there that would write, seal or solve (openHere; 1.10.0’s second review): start, restart, continueIn, send, resend, reveal and accept, before any chain read, so no server is asked anything for it. Reading, renaming, deleting, clearing and turning a switch off still work, for what a development build left there.messages.warn.testWallet, its words as they were: the owner’s open call, chunk 55’s call 7). Since chunk 55 Messages reads and writes with a key of its own, one a network (below), so a flaw in Messages’ cryptography spends nothing and reads no other network’s messages; but both keys live in the one WebAssembly module, so a flaw that read its memory would reach the Seedelf key, the same on every network (Networks), which holds the phrase’s mainnet funds (security.md). Nothing checks which wallet it is.So nothing of mainnet’s reaches the relay, no read and no post, while preprod’s pool is read whichever network the wallet shows, and mainnet’s page then names it (alsoOn) with a way to turn it off. Mainnet opens by adding it to the list, in a later release, and what protocol.md §20 freezes is frozen from that release: until then a format, or what the relay’s v1 routes take and answer, may still change, and preprod’s conversations and pool may be reset. tests/messaging-open.test.ts and tests/messages-open-screen.test.ts hold the gate; the other messaging tests run wallets with both networks open (BOTH_OPEN in tests/messaging-harness.ts), each with both networks’ messaging keys, as a release that opens mainnet will have them.
networks.ts relay, call 4), of which the wallet reaches preprod’s alone for now, behind the same edge with buckets of its own (protocol.md §17). The extension reaches it through the CSP’s connect-src and its CORS answers, never a host permission (relay.ts). Its client keeps to 280 units in any 30 seconds, on the monotonic clock (the freeze’s fix E), inside the edge’s messaging bucket, so a sync reads at most 16 pages (PAGES_A_SYNC: what that lets through without a wait). It reads a page’s body through its stream and refuses one over 264,208 bytes (16 + 4 × 512 + 256 KiB), and a post’s answer over 4 KiB; an answer’s head gets 30 s, a page’s body 120 s. The server’s are shorter (the owner’s freeze calls 5 and 6): its proxy gives an answer 60 s to be written, so a full page needs about 35 kbit/s down, and a post’s body 10 s, about 26 kbit/s up for a 32 KiB message (RELAY_BODY_TIMEOUT_MS). Each post goes after a CORS preflight, since its requests are no-store: latency only.wallet.ts Keys.messaging): a MessagingKey for each network Messages is open on (MESSAGING_NETWORKS, preprod alone for now; a test wallet’s messagingNetworks), derived at unlock from the vault’s entropy beside the Seedelf key, at account 0 as it is (MessagingKey.fromEntropy(entropy, 0, network), seedelf-crypto’s messaging_key_v1; keys-and-accounts.md), freed with the other keys at a lock and at an account switch, before renewWasm (tests/lock-renews-wasm.test.ts looks for x_m’s bytes too). A closed network gets none, so no unused key sits in memory, and a call there is refused in the switch’s words (laneKey).messaging* export that takes a key is handed that network’s x_m (withKey, laneKey): the scan, an open, a receive, a start and a continuation, a request’s read and accept, a reveal, a withdrawal and messagingValue. keys.seedelf reaches messagingCertificate alone, the one call that takes both (made, from certify and ownCertificate); the types hold it, since a MessagingKey has none of the funds methods, and tests/messaging-certificates.test.ts records every call’s keys. The calls that name no network (messagingScan, messagingOpen, messagingStartContinuing, messagingAccept, messagingReadRequest) can’t tell which network’s key they hold, so the worker keeps each network’s records and keys apart itself; messagingReceive, messagingStart, messagingReveal, messagingCheckReveal, messagingCheckCertificate, messagingValue and messagingWithdrawal are given the record’s own network, since a check under another reads as a forgery (invalid_reveal, invalid_certificate).tests/messaging-freeze-cross-pool.test.ts); and R_A, the register a first message hands its reader, is a register of x_m, which the funds scan never tests, so a payment to it is never found or spent.messagingList.<network> (sealed): the cursor its next read goes on from; the list’s certificates in its order, each by its listing digest (messagingListingDigest); the queue of the wallet’s own certificates to post and withdrawals to post, each with when it may go, this device’s clock; elsewhere, the wallet’s own pairs whose good certificate names another key’s m_S; tooOften, those the relay won’t list again until they move (check 3″); lastAt, when its last own post went; pairs, the pairs the last pass set right; trimmed, that certificates went past its room since it last started from the list’s oldest; evicted, the Seedelfs that went, each by 8 bytes of SHA-256 of its (name, register), 4,096 at most, past which evictedAll says some went unnamed; intents, the Seedelfs turned off whose choice may not be written yet (below); own, the wallet’s own Seedelfs on that network, each by the same 8 bytes: those the kept view shows under the key, with the pairs its passes named, noted as each read begins (ownNoted; the third review’s W-B); viewed, that they’ve been noted from a view of the contract; missing, that one of them was noted after the copy let it go; and behind, that the copy is only part of the list: its last read stopped with more to read, or part way after a gap’s page, or it waits for the bytes an already named, or its record wouldn’t open, or Start again dropped it, or there’s none yet while the switch is on or a switch off’s mark stands (a restore, a second browser, a first read the relay didn’t answer: review 4’s #1; never where Messages was never on, whose Remove then asks the relay nothing). Held in memory a phrase and an unlock, as the read record is (listFor), and written in its own chain, a fixed write (writeList): its room, 256 KiB of JSON a network (LIST_ROOM_BYTES, 349,568 bytes stored), counts as taken in every look at the area’s reserve, as the requests’ and the take’s rooms do, so what strangers post never decides whether the user’s write fits. Past it certificates go by Seedelf (listToStored; the review of 55e, M3): every certificate naming one (name, register) or none, the Seedelf whose first certificate is oldest first, so no copy holds one of two conflicting m_S without the other, and one holding neither refuses, the safe way; never one naming a pair of the wallet’s own (pairs, intents and the queue’s) or a Seedelf in own, named by a pass yet or not, so a copy that starts empty (a restore, Start again, a second browser) never lets the wallet’s own certificate go, nor the queue. So a stranger’s Seedelf whose certificates went reads here as taking no messages, and a reveal of it stays unchecked (trimmed); and a certificate of it read later isn’t kept (evicted; with evictedAll, none of a Seedelf the copy holds nothing of), since the copy would hold it alone where the relay may hold another m_S (the review’s second round, finding 4); never one of a Seedelf in own. A gap clears both. No read of the list depends on which Seedelfs are the wallet’s (review 4’s #5): a read from the list’s start that only a wallet holding one of the Seedelfs a copy lets go would make tells the relay so. So a copy reads nothing until the wallet’s own Seedelfs on that network have been noted from its view of the contract, kept by the wallet’s own reads of it (Messages never reads it), once for that copy (viewed): its first read never lets one of them go unknown. One noted only after the copy let it go (a view that didn’t show it yet) marks the copy missing, which no withdrawals’ pass calls full; the next read every wallet makes from the list’s start (a gap, a switch off, a new copy) finds its certificates and clears it. Its size is the public list’s, the same for every wallet, so a lane reads and writes it, and the overview reads its elsewhere and tooOften from it with no turn at the gate where it isn’t held (listShown, L2).readList, listNow) is a lane, one at a time a network, a read asked meanwhile being that one: at most 16 pages (LIST_PAGES_A_READ) after the copy’s cursor, one after the other, whatever they hold. A certificate entry joins the copy by its digest, its shape and network byte read in JS (certificateNames), never its proof; a removal entry takes one out; a gap drops the copy, its page starting from the oldest entry the list holds. Written once, at the read’s end, where it moved, behind set where the read stopped with more to read (or failed after a page that moved it) and cleared at the list’s end. Ended behind, it asks for the list again (askList), so the next sync reads on; ended whole after behind with a mark standing, it runs the withdrawals’ pass again (reconcile, below). Nothing while the wallet is locked, the relay is stopped, the day’s reading is held or the copy isn’t viewed yet (failed, asked again at the next sync), nor while the switch is off, but where a mark stands on a copy that’s behind (the third review’s W-A; every switch off leaves its copy so, below): then it reads on to the list’s end for the withdrawals, each page asked only while the phrase is unlocked, and while the relay is stopped it’s the probe, once the stop’s hour is up. Its pages are a page’s at the edge (5 units: 1 and one for each 16 KiB a page can hold) and in the day’s reading. A writer checks each certificate it uses (goodFor: messagingCheckCertificate, once a worker each, by digest, checkedCertificate), naming the name and the register its own read gives, never the relay’s word; several good ones with one m_S are one.answerAt, the press’s own request, before its step in the service’s queue, so it never waits behind a take); before a first message (start) and at a reveal’s check press, each to the list’s end (readToEnd: reads while the relay says more follows, two at most, LIST_READS_A_PRESS, then ListBehind, “Still reading which Seedelfs take messages. Try again shortly.”, its cursor kept for the next press); at the first sync of each unlock while the switch is on, which also finds a certificate of the wallet’s own missing; and at the next sync after the take finds a pair that takes first messages that the last pass didn’t set right (noteOwn: a Seedelf made here while Messages are on gets one at its mint’s pair), or after a read that left the copy behind; and with the switch off, at the switch off and at each run of the alarm’s, where a mark stands and the copy is behind. Never by name. seedelf.messaging.listed (session storage, SESSION_LISTED) says it was read, and the wallet’s certificates set right against it, in this unlock, so a worker Chrome starts again in the unlock doesn’t read it again; the switch on, a Seedelf’s turn-on, a Seedelf made here, a post answered already with other bytes (below) and Start Messages again take a network off it (askList). A press’s read belongs to the press’s unlock (L3): start and answerAt take the wallet’s count of its opens before it, and one that ended meanwhile refuses the press as a lock does.certify, a step after each read that reached the list’s end, and nothing at all while the switch is off, M1: a pass asked before a switch off would otherwise drop its withdrawals and make certificates for a network that takes none): for each pair that takes first messages (W8, W12; a Seedelf minted here before 1.10.0 adopted first, adopt), its own m_S (messagingValue, from x_m alone, and only for those pairs, never one a stranger’s data named), then: a good certificate naming it is used as it is; one naming another m_S puts the pair in elsewhere, and nothing is posted for it (a second would leave it taking no first messages at all), which the overview says (seedelfs[].elsewhere: “A key not in this wallet takes its messages: someone else may hold this Seedelf’s key.” under its switch, messages.warn.otherKey, since that key may be a thief’s); with none, none queued, none the relay said it holds in this worker (confirmed) and not tooOften, one is made (messagingCertificate, both keys) and queued. So a restore, or a second browser with the phrase, finds its certificates there and posts nothing. A pair turned on again before its withdrawal went drops that withdrawal (below), its certificate staying listed; a post waiting for a pair that no longer takes first messages (moved, gone, turned off), or that’s elsewhere or tooOften, leaves the queue (L4); and one whose waits for the chain ran out in an earlier unlock (H1, below) goes again once the kept view holds its pair.postCertificates, postCertificateNow): a lane posts the queue’s first entry whose time has come, and only it: a certificate’s while the switch is on, a withdrawal’s whatever the switch. Each goes a random 2 to 10 minutes (CERTIFICATE_SPACING_MS) after the last own post went, the first at once where none went within that, and those still waiting are spaced again after each post, so none goes with another; a withdrawal after the withdrawals queued before it alone, never behind a certificate’s own wait (the third review’s W-D). There’s no timer: a sync’s lane, the minute’s alarm’s at the latest, works the queue, and so does the lane started after a pass, a reveal or a switch off; and its stamp’s solve makes no keep-alive call (solve’s keep, false here), so a worker Chrome stops mid-solve leaves the entry queued for the next lane. The stamp is over its digest (a certificate’s listing digest; a withdrawal’s, from the binding) at the price the last list page named (the pool’s base before any), again at a 402’s, never past priceCeilingBits. Kept, it leaves the queue: the answer names the listing digest of the certificate the relay holds (F10), a new’s these bytes’ own, else an answer this version doesn’t know; an already naming these bytes joins the copy, and one naming other bytes (another posting’s) doesn’t: the copy’s cursor goes, so the next read goes from the list’s oldest, the copy kept, and finds the bytes the relay holds, which a withdrawal is made from, never evicted since they name the wallet’s own pair. Either way the pair is confirmed in memory, so Show my Seedelf can go and no pass makes another meanwhile. Refused (a 400, a 413, a 409) it leaves the queue; a 409 two (two m_S held for it already) puts the pair in elsewhere; a 409 withdrawn (check 3′: these bytes were withdrawn) asks for the list again and a pass, which makes a new certificate, a fresh aux and so another digest; a 409 this Seedelf was withdrawn too often at this register (check 3″) puts the pair in tooOften, which its switch says (“Taken off the list too many times: once the Seedelf moves, it can be listed again.”), and nothing is made for it again until it moves. But a 409 not this Seedelf's register now keeps it queued (H1): a Seedelf minted while Messages are on is posted before its mint is on the chain the relay reads, whose answers it keeps a minute, so it goes again 2, 5, 10, 20 and 40 minutes on (MOVED_BACKOFF_MS, its tries), then waits parked until a later unlock whose kept view holds its pair. A wait the relay asks is kept on the entry’s time, one of every post’s (the edge’s 429s, the server’s 503 busy) on all of them (certificateAfter, monotonic), and a 503 about listing (the list full, the chain not read now: any other of the route’s 503s, listing in relay.ts) on every certificate’s, never a withdrawal’s (listingAfter, W-D); an answer this version doesn’t know is a minute’s wait, dropped after three in a row; no answer, or four 402s, leaves it as it was. Each post is pinned to the phrase of the lane that makes it, so a wallet removed and another restored meanwhile posts nothing of the first’s.switch), a Seedelf’s turn-off (answerAt) and a Remove of the wallet’s own sent (seedelfRemoved, from withdraw.ts submitRemove, with the register the Remove spent: X-M3, since on preprod nothing else takes its certificates down before the relay’s daily look). The intent goes first (M2): an unsealed mark, messagingWithdraw.<network> (markWithdrawals: a random id each write, and off for a switch turned off, which only the switch turned on undoes), written before the switch or the choice it’s for; a Seedelf’s turn-off is kept sealed, in the list record’s intents, written in the press’s own step before its choice (finding 2), since a pair named in the clear would tell whoever reads the storage which Seedelf is the wallet’s. A turn-off’s mark, and a Remove’s, are written first in that same step (the third review’s W-F), so a pass asked before the press, which runs before the step, never reads the mark before its intents and choice are written. A switch off first has its copy read the whole list again from its start, the copy kept (fromStart, review 4’s #5): behind until that read ends, so its pass is full only on all of the list, and every wallet’s switch off reads the same. Then reconcile, a step in the service’s queue with no request, sets the queue right from the switch and the choices as they stand: with the switch off, a withdrawal of each certificate in the copy naming a pair of the wallet’s own (made here, turned on, or turned off by the user) and its own m_S; with it on, of the pairs turned off, a withdrawal waiting for a pair that takes first messages again dropped, its certificate staying listed; a post waiting for a withdrawn pair dropped. A records’ failure never keeps a switch from turning off: the mark stays. The pass notes the mark it looked at (reconciled, memory), and whether the stored switch and choices said what the mark says (full: the switch off where the mark says off, no intents waiting for their choice, and the copy not behind, W-A, since a certificate of the wallet’s own may be missing from part of the list; the read that ends it runs the pass again); only a mark a pass has looked at in full is cleared, once no withdrawal waits (unmarkIfDone), so a mark written after a pass began, or one a lock or a worker stop caught before its pass ran, is looked at by the next run (syncAll, for every network with a mark this worker hasn’t looked at in full, at most once an unlock for one in part), and one whose choice never landed stays until the choice that undoes it (the switch, or the Seedelf, turned on). Its post is the binding’s (messagingWithdrawal, x_m alone, a proof on the certificate’s messaging register), POST /messaging/v1/{pool}/withdrawals, spaced with the certificates’ posts; 200 withdrawn, and a 404 in the relay’s words, no such certificate (the list already shows it gone), are done, and the certificate leaves the copy, as the list’s next page would take it out. Any other 404, a 400, a 413 or an answer this version doesn’t know leaves it waiting (X-L6), MOVED_BACKOFF_MS apart and hourly after; while the relay is stopped (its 410) it goes once the stop’s hour is up, the switch on or off, the post being the probe (X-L7). While a mark stands the alarm runs, every switch off or not, syncAll posting for a network that’s off, and the alarm stops only where no switch is on and no network’s mark stands (alarmAsNeeded, L5). A Seedelf turned on again drops its withdrawals still waiting in the press’s own step, beside its choice (finding 1: a pass after a list read would come too late, the lane posting first), and a lane posting one skips it where the inbox this service holds says that Seedelf takes first messages, the switch on (takesAgain, memory alone), but never a Remove’s or Start again’s (firm, W-G: the inbox in memory may still name the pair as the lane looks); a Remove’s step sets the inbox’s handles right so it never holds the removed one so. The switch turned on still asks for the list, starts the alarm and reads the pool when its pass fails (finding 7). Start Messages again (clear, [choice] over refusing it) queues a withdrawal of each of the wallet’s own certificates the copy holds for a pair its last pass set right that this browser didn’t make (withdrawalsThrough: their choices go with the inbox), keeps every withdrawal waiting, in a list record of its own, and the mark. Both are durable before anything they depend on goes (W-E): the mark first, then that record, written in place of the old one and held so in memory, behind, so the next read goes from the list’s start and no pass on it is full; then the rest is deleted. A mark standing with nothing queued (a pass the inbox that won’t open stopped) stays with it. A list record whose read fails (an error of the area’s, not one that won’t open) stops the clear before anything is deleted, since the inbox’s choices name the pairs to withdraw (review 4’s #2): pressed again, it starts again. Remove wallet doesn’t withdraw [protocol.md §21.7’s choice]: its warning says so (“Your Seedelfs taking messages stay listed after this: turn Messages off first.”). A Remove a lock catches before its withdrawals are queued loses them, since the Remove forgets the pair (forgetRegisters); the relay’s own look at the chain takes them down.start): with the switch off, refused before any read (“Turn Messages on to write to a Seedelf…”); else the contract read at the press, as before, then the list’s new entries to its end, lanes (readToEnd; ListBehind short of it); a read that fails decides nothing on the copy as an earlier read left it (finding 6: §21.8 decides only after reading the list to its end), refused in its own words (unread: the relay out of reach, its Messages paused, or the day’s reading held); the press’s unlock looked at again after certificateTo, which may wait at the gate (finding 3), the write then this unlock’s; the certificate is the one that exactly one m_S among the good certificates for that name and register gives (certificateTo; ListBehind where a lane’s read left the copy behind since the press’s ended, the third review’s W-C), and the conversation is sealed to the messaging register it binds. None, or two, is NoCertificate (“That Seedelf doesn’t take messages.”), before any work, write, stamp or post.confirmed) or waiting to be posted (certified, from messagingValue for the pairs W8 and W12 give), and never one elsewhere or tooOften, nor one waiting parked; reveal carries it (ownCertificate) only once it’s listed (L1): on the copy, or confirmed, carried as made. One waiting, or one missing for a pair that takes first messages and made now, goes to the queue’s front, never sooner after the last own post than CERTIFICATE_SPACING_MS’s least, and is posted at once where that’s now; not listed after that (not due yet, a wait, no answer, a 409, its waits for the chain run out), the press is refused with NotListedYet (“Your Seedelf is still being listed. Try again in a few minutes.”). One naming another key is refused (OtherKey), a pair turned off, its certificate withdrawn, too (NoCertificate), and a tooOften one (TooOften). The reader’s check press reads the list to its end, and decides nothing where it finds no good certificate on a trimmed copy, nor anything on a copy a lane’s read left behind since (ListBehind, W-C): the reveal stays unchecked, to be pressed again.trimmed clears only at a gap, so once a copy has let a Seedelf go, a reveal of one it holds nothing of stays unchecked until the relay’s next gap. (A switch turned off while the copy reads the list from its start for the bytes an already named no longer leaves them unwithdrawn: that copy is behind, so the read goes on with the switch off, W-A.) A Remove a lock catches before its withdrawals are queued loses them, as above.script-spend.ts, and core’s coin selection), and only Remove burns one.messagingScan, 200 envelopes a turn of the wallet’s queue, which answers one digit an envelope, written the same for a match and a miss) and solving proof of work run outside it.messaging.<network>, the inbox: what the list shows, and what the presses and the take need beside the conversations’ and the requests’ own records, nothing a read of the relay needs. The tombstones (the crate’s record); what the list shows of each request (requestsShown, so neither an overview nor an envelope that isn’t a request’s has the module parse the requests’ record), with the nonce the requests’ record was last sealed under (requestsAs); the registers each Seedelf takes first messages at (handles, below) with the user’s own choices (answerAt) and the pairs a view has dropped (gone); what each conversation shows (its record’s ID, its last message among it, its first 120 characters, for the list, the user’s own name for it, messaging-name, never sent, its unread count, outbox, size and reveals); and how many messages went with a requests’ record the crate couldn’t read (dropped). Nothing in a lane reads or writes it, and it’s written only when it changed.messagingRequests.<network>, the crate’s requests record, and a later version’s kept aside as it came (the 1.10.0 gate’s round 5): read only by a first message’s take (below) and the user’s presses on a request, and written before the inbox that lists it (Accept’s order is its own, below). Where the inbox’s requestsAs isn’t the record’s nonce, a stop came between the two writes, and the sweep sets the list right from the record.messagingRead.<network>, the read record: where the next read goes on from (the cursor), when a page last said envelopes after the wallet’s cursor were gone (gapAt), the envelopes Try again steps over (skip, the six latest), the device’s clock against the relay’s (clock), and how many of the key’s envelopes the reads found that are neither saved nor taken (owed, below). Always within its 1 KiB pad, 1,388 bytes stored, whatever it holds. Written once at a lane’s end, after the posts, where the pages moved it, on a chain of its own: never refused for room or held back by full, and a lane a rewind overtook writes none. The runner, Try again and a turn-on’s rewind write it too.messagingOutbox.<network>, the user’s envelopes waiting to be posted, copied from their conversations’ records, which stay the truth: a press appends what it sealed, after the record’s write and before the inbox’s; a posting run reads it alone, and at its end removes what it posted or the server refused, a write that only shrinks it. A deletion drops its entries first, before the inbox stops listing the conversation (below), and only the sweep rebuilds it from the records, leaving out what this worker posted. Where a press’s append is refused, or a deletion fails part-way, what was waiting is noted in memory (outboxNoted) and posted from there all the same, each note pinned to the phrase it was made under (noteWaiting): a posting run uses only the unlocked phrase’s notes and drops the rest unposted (outboxNow), and a deletion that fails at a lock notes nothing back, since the unlock’s first window rebuilds the outbox from the records. A posting run also looks at its phrase before each post (mayAsk), since a post’s work can take a minute. And every Messages call belongs to the unlock it was asked under (1.10.0’s second review): the worker takes the wallet’s count of its opens (Wallet.opened: an unlock, a create, a restore) as the call is asked, and looks at it again after each pass of the gate, before anything is prepared, and inside the call’s own turn of the wallet’s queue (admitted); what a call removes with no key looks too (mine). Another count, a lock and an unlock of the same phrase included, and the call is refused as a locked wallet refuses, nothing read, unsealed or written for it: a deletion’s note-back among them. Before, a press whose write waited at the gate could land after a lock, Remove wallet and a restore of another phrase, in the second wallet’s storage, whose inbox then listed the first wallet’s conversations and previews (tests/messaging-unlock-owns.test.ts). So nothing a removed wallet left, in memory or waiting, is posted or written by another phrase restored in the same worker.messagingTake.<network>, the take record (the 1.10.0 gate’s finding 8 and round 5): the key’s envelopes the reads found that aren’t taken yet, read by read, in a room of its own, 128 KiB of JSON a network, 174,784 bytes stored (TAKE_ROOM_BYTES: about 47 envelopes of 2 KiB, or 2 of 32 KiB), checked with every count at its most digits; and how many of them weren’t kept: dropped unopened (unopened), or for want of room (noRoom), with how many of unopened the user has seen counted (seen, messaging-seen). Only the runner writes it, one append as a read’s envelopes are saved and one rewrite as they’re taken, never a write an envelope; and a rewind, and the press that the count was seen. One that won’t open is written over.conversation.<network>.<id>, one a conversation, id 16 random bytes that only the sealed inbox maps to it, so no storage key names a conversation: its ratchet (the crate’s record, with its secrets), its outbox and its history together, so one write moves them all. A family, not a listed record: Remove wallet finds them by their prefix (Area.keys), with no key. The crate’s records and the envelopes waiting to be posted are stored as base64.mintedAt.<network> (minted-by.ts), the register each Seedelf minted here went under, read from the transaction’s own bytes at Send, through a write that surfaces its refusal: a pair that couldn’t be written shows as that Seedelf’s switch off. A name with no register is a mark that the wallet removed that Seedelf (below). It’s the one record Messages and the money flows both write: a mint’s submit and a Remove write it at once, and Messages reads it only after its gate has opened (gate, then prepare, below), so a mint’s or a Remove’s write made while Messages waits at its gate before that read is no longer undone by Messages’ own write of the record. One window is left: Messages’ write waits at the gate too, so a mint or a Remove sent between its read and its write, while a lane or a tick’s margin holds the gate, can still be written over (the plan’s before-mainnet list).messagingList.<network>, the certificate list’s copy (chunk 55’s 55e): its cursor, its certificates, the wallet’s own certificates and withdrawals waiting to be posted, elsewhere, tooOften, lastAt, pairs, trimmed, evicted, intents, own, viewed, missing and behind (Two keys and the certificate list, above). Within its room, 256 KiB of JSON. Beside it, messagingWithdraw.<network>, not sealed, a random value written before a switch off, a turn-off or a Remove’s withdrawals, which says only that withdrawals of the wallet’s own may wait, so a run finds them with no key and the switch off. Remove wallet deletes both; Start Messages again deletes both but where a withdrawal waits or the mark stands (above), and has the list read again.v is read: one this build doesn’t know is a record that won’t open, set aside, never written over, and deletable. The crate’s own versions (2 for a conversation and for the requests; the tombstones’ 1, unchanged) refuse a development build’s conversations and requests at their first byte (protocol.md §12). A development build’s conversation never gets that far: kept under its cid, from before records had IDs of their own, it’s deleted, record and entry, at the first sweep (below), whether that network’s Messages are on or off, and nothing says so. A development build’s inbox from before round 5, which held the requests and the read’s cursor, has its requests moved into their own record by the first unlock’s sweep, and its cursor dropped, as round 4’s take record’s is (O6): the first read starts from the pool’s oldest, and everything already taken is refused as a duplicate.requestLeft, a stored mark); the requests’ record without the request; the inbox again, with that record’s nonce and, where no earlier accept’s mark stood, without the mark. A stop after any of them leaves the first message a request or a conversation, never neither: a conversation’s record nothing lists is swept, the request still in its record and its list, to accept again; a request left in the record whose conversation is held is dropped by the repair (repairRequests), with no tombstone, and never listed beside its conversation. Marked, the repair runs at a worker’s or an unlock’s first window, and before a take hands the crate that record or anything is deleted (settled); only the repair unsets the mark, whatever else writes the record meanwhile, and a worker Chrome stops loses nothing of it. And Accept refuses a request whose conversation’s ID a tombstone holds, so one listed again after its conversation was deleted is never accepted twice.refuseHeld, tombstoned); a new record’s own ID that’s taken is refused too (addConversation). All of them are drawn, so only a random source that repeats gets there, and what was held stays as it was. The guard is each network’s own.readFor): only a wallet that was taking something lowers what that record owes, so a lane that skipped the read after such a lock would say so.more still set, the rest waits for the next tick. Then what’s waiting is posted, from the outbox record alone. At the lane’s end the scan’s mark is cleared and the read record written once, where the pages moved it: whether it’s written depends on the pages alone (the cursor moved, a page held envelopes, or a gap), never on whether the scan matched (laneDone, readPool’s out.envelopes; 1.10.0’s second review). A relay that isn’t §17’s can serve envelopes and leave the cursor where it was, and a write made only for a match would then say which wallet they were for. What the read found goes to the runner.TAKE_MARGIN_MS) remain before every tick the worker expects: both alarms’ next minute (Messages’, and the sessions’, whose runs read the data layer, on mainnet the relay’s own server) and the next tick of the pages’ 10-second grid, the worker’s own, so pages shown at one tick are one lane and their margins don’t add up. Within that margin it waits for the tick’s own run to come and end, or for the tick and 2 s (TICK_GRACE_MS) when none comes. A tick is served only by the run made for it (1.10.0’s second review): Messages’ alarm’s by the alarm’s own run (syncAll, told so by sw.ts), a grid tick by a page’s grid poll at it. A lane of another kind that starts inside the margin (a page’s own sync as it’s shown, a press’s posts, the other grid’s read) serves nothing, and the gate stays shut across the tick. The alarm’s run is marked as it begins, before it reads the settings and the wallet’s state (runStart), so it holds the gate from the alarm’s event to its lanes’ end, however long another feature’s task holds the wallet’s queue. The call looks again as its turn in the wallet’s queue comes, which another feature’s long task can hold meanwhile (a Lovejoin chain’s build, 8.8 s on a slow laptop): where a lane has started, or a tick come within the margin, it gives the queue back without running and waits at the gate again (admitted, with Wallet.withKeys’ admit). What the call needs made ready, its record’s read from chrome.storage or the area’s count for a write, is made only once the gate has opened again (gate, then prepare): from a tick to its lane’s end the area is read for the lane’s own records alone. The margin is more than Messages’ longest single call into the wallet’s queue on a slow laptop (a first message’s receive with the requests’ record at its bound: 1.5 s at most with the CPU at a sixth, 2.9 s at a tenth), so a call that starts ends before the tick. So no read or post on those grids meets it.messagingOpen names the records it needs) and receives it (messagingReceive), its records written, a step an envelope; once a read’s are all taken, they go from the take record in one write. A first message whose conversation isn’t held or listed as a request is received first with the tombstones alone: the crate checks the window, the stamp, the handle, both proofs and the decrypt before it would touch the requests’ record, and a refusal is dropped there. Only one the crate takes as a new request is received again, with the record, at the same now, so the requests’ record is read only for a first message that will be kept. A lock or a stop leaves what’s saved in the take record, and the next take, after the unlock or the restart, goes on from it, asking no page again; every envelope already taken is refused as a duplicate (protocol.md §5). No sync waits for a take, and none follows one. A read’s envelopes past what’s left of the take’s room aren’t saved, and are taken from memory; a browser’s refusal of the write is treated the same, and never sets full. In memory the takes fall at most five reads behind (TAKES_BEHIND): past it, the oldest read still waiting goes (never the one being taken), counted (unopened); a read is never skipped or cut short for them. A fresh read of a full mainnet pool (256 pages) takes 16 reads: about 8 minutes with a page of the wallet open, since the wallet’s own pace is 16 pages in any 30 s (relay.ts: 280 units, a page 17), and 16 minutes on the alarm alone.owed is the key’s envelopes the reads found that are neither saved nor taken. A lock, or a stopped worker, between a read and the moment its envelopes are saved for the take loses them, as does one during the take of a read past the take’s room; the next unlock or worker counts them as dropped before they could be read (unopened). A stop in the middle of such a read’s take overcounts by what was already taken from it.state, then the sealed list of sites), and each can land behind a different call of the runner’s; a press waits for the whole step in the service’s queue (serial), and the post it starts with it. A relay that fills pages with envelopes sealed to a register, and times such requests (on mainnet the same server sees the wallet’s chain reads and its other recurring reads), could test whether that register is this wallet’s: over many requests, with envelopes that cost it nothing, and sooner with first messages it pays stamps for. A connected site can time its own calls the same way, each waiting for the wallet’s queue as above, and one that also posts envelopes sealed to a register, at the relay’s price for each as any sender pays, can test whether that register is this wallet’s, and so tie it to the account it sees (the 1.10.0 gate’s relay-oracles review, B16). So can any page while the connector is on, connected or not: the worker answers isEnabled() for every top-level https page, or page on localhost, and refuses an unconnected one’s reads (dappSession in sw.ts, DappService.run), and each such call takes its turns in the wallet’s queue, on the worker’s one thread, which Messages’ work shares. A page that calls in a loop sees that work as it happens, with nothing posted: a message of the wallet’s own taken in showed as answers of 35 to 45 ms against 7 to 8 ms (one observation), and a first message’s stamp as some seconds of short delays. One that also posts an envelope sealed to a register can test in few tries whether it’s this wallet’s, where the register is a Seedelf’s that takes first messages, and ties that to the visitor’s IP address and whatever else it knows of them (1.10.0’s second review). With the connector off no content script is registered, so no page opened since can call; one still open from before is refused (OFF) before any turn in the wallet’s queue, though still on the worker’s thread. What a wallet whose reads found its own envelopes holds in memory until it takes them isn’t measured.too_far_ahead, which the crate gives only for a message that authenticates and whose envelope checks), which marks it unreachable until a later message of it decrypts. A first message to a Seedelf that isn’t a handle is dropped like the rest: no envelope ever starts a chain read. An envelope whose take throws, short of a trap, is passed over without a word and lost, since no read goes back for it; the rest are taken. One under which a read of storage failed is first tried again in place, up to three times, half a second apart, out of the queue (TAKE_RETRIES), so no page and no post waits for it.mintedAt) or one the user turned on (answerAt, messaging-answer-at), a (name, register) pair, never a name alone. Anyone can mint a Seedelf under the sum of two of the wallet’s registers, and answering at it, or showing it, would tell them both are the wallet’s, so every other Seedelf under the key takes none until turned on: one someone else minted, one minted in another browser, and every Seedelf of a wallet restored from its phrase. One minted here before 1.10.0 (its name in mintedBy, and none in mintedAt) is adopted once, at the first take with a kept view, at the register that view shows: a mint since keeps who paid only once its pair is kept, so one whose pair couldn’t be written stays off. A pair goes for good once a kept view that read successfully no longer holds it after one did (the Seedelf removed elsewhere, or moved): it’s kept in the inbox’s gone, so no absent view after a lock brings it back. It never goes for want of a view, and one no view has shown yet (a mint on its way) stays. The wallet’s own Remove, as it’s sent, leaves the name in mintedAt with no register, a mark of the removal: from then that Seedelf takes no first messages and shows as off, whatever was turned on for it and whatever a view still shows. Only the user’s own turn-on lifts a mark or a gone pair (a Remove that never landed). Turning one on that wasn’t taking them reads the pool again from its oldest: the read record’s cursor and what the take record held go, its counts staying, and the relay sees a fresh read from this address; a read or a take begun before the press writes nothing after it, since each of their queued steps looks at the network’s epoch first. Turning one off stops first messages to it, and what began there stays, requests included. None of it asks the chain. Since chunk 55 a first message reaches a Seedelf only through its certificate on the relay’s list: turning one on reads the list and makes and posts its certificate where none is good, and turning one off withdraws it (Two keys and the certificate list, above), so a writer’s next read finds that Seedelf taking no messages. The handles are what messagingReceive takes, each pair with every register it holds, from which the crate computes each messaging register. Show my Seedelf offers the pairs made here or turned on, none removed here or gone, and of those only one with its own good certificate on the list’s copy or waiting to be posted (chunk 55’s 55e: so not one whose switch was turned off, its certificate withdrawn); and the overview lists every Seedelf the kept view has under the key, with both, and elsewhere where its good certificate names another key (seedelfs).messagingMark, messagingTakeMark) and cleared as it ends; a trap leaves it, with messagingTrap beside it, unsealed, saying only scan or take. A network so stopped isn’t read by itself again (unlock, alarm, a page’s poll, the switch), and the overview says so (stopped). Try again (messaging-retry) steps over the envelope that trapped, in the reads and the take alike, kept by its SHA-256 in the read record’s skip for 48 hours, past the relay’s 36, or, for a page’s scan, scans that page’s envelopes one at a time so a second trap names the one: one bad envelope costs a lock by itself and at most one more at the user’s press. A step a closed browser or a stopped worker cut short isn’t a trap.unreadable): its thread says why, it holds up nothing, and Delete deletes it with no tombstone, since its F can’t be read. A requests’ or tombstones’ record the crate can’t read holds no keys and is dropped (a newer version’s is set aside): a waiting request is lost, and a deleted conversation’s first message could come back as a request within its 48 hours. An inbox that won’t open asks the relay nothing more for that network once it’s found: a lane reads no inbox, so a fresh worker on the alarm alone reads its pool once before its runner finds it (an open page’s overview finds it first). Once it’s found, the runner skips that network’s first phase and goes on to the other network’s work, the takes and the tidy-up, never round again for it alone (1.10.0’s second review); what its reads found before then stays in memory, bounded since no lane reads that pool again, and counted as dropped if the worker stops (owed). The page says so, and messaging-clear (Start Messages again) deletes that network’s inbox, conversations and every other record of its Messages, with what was held and the read’s cursor, so the pool is read again from its oldest.seedelfRegister: what’s new in it, or all of it when due, the same read whichever Seedelf), so a first message is written for the register the chain gives the Seedelf now, never one a kept view still holds after it moved; then the certificate list’s new entries, and it’s sealed to the messaging register the one good certificate for that register binds, or refused before any work where there’s none (Two keys and the certificate list, above). That starts a conversation, its t this device’s clock rounded down to 10 minutes (T_STEP_S), whose first-contact stamp (24 bits: about 7 s on average, sometimes several times that) is solved in slices of 2^16 attempts with a turn of the event loop between; texts written meanwhile wait, queued. Each text is then sealed in the queue, padded to its first-contact size, whichever side writes (protocol.md §9: 2 KiB at least), stored pending with its envelope in its record and copied to the outbox record, and posted in a posting run of its own at the price the last page named for its size (the pool’s base before any page, 18 bits on mainnet and 16 on preprod), solved again for the same bytes at the price a 402 names. Work found for a post is kept in memory until it’s posted.
request_full), and the wallet keeps nothing of the text and never calls it the server’s refusal. A send refuses a text past the share before queuing it, so the stamp’s turn seals every queued text, and nothing a take does seals or posts one; a text left queued all the same (a forced case, unreachable while the worker’s count matches the crate’s) waits for the user’s next press in that conversation, which seals it first. A reply the thread doesn’t show (a control kind) leaves the share as it was (O4): the crate’s own count at that moment is kept in the conversation’s record (held) and lowered by each message sealed since, and Show my Seedelf and Start again stay as they were, until a reply the thread shows comes (protocol.md §11). The thread carries what’s left (firstContactLeft).RELAY_CEILING_BITS, two above the pools’ 24-bit ceiling) is a wait for that size, a minute or the 402’s Retry-After, never solved. Waits are per envelope size, but for the edge’s 429 (“slow down”) and the relay’s 503s, which hold every post on that network; each message keeps its own next try (nextTry). The edge’s “too many requests at once” is a second’s wait. A 408 is a minute’s wait for that size. The waits are in memory, on a monotonic clock, and copied to session storage on the device’s clock (seedelf.messaging.posts, until a lock), so a worker Chrome starts again keeps them.refused by the server, and the thread offers Send again (messaging-resend); such a message is never posted again by itself. An answer the client doesn’t know (another status, a body that doesn’t read, a 402 that names no more than the post’s work) ends the run there, and the next run starts after that envelope; after three in a row within an unlock it’s set aside the same way. The counts, and where the next run starts, are kept by the envelope’s stamp digest in session storage, so a worker Chrome starts again goes on from them. A post with no answer (a fetch that fails, a time-out, a 5xx but 503, a body too long or too late, a run’s fourth 402) moves the next run past it too, counting nothing, and is never set aside. A message the crate couldn’t seal is refused by the wallet, with no bytes.posted by the runner after the run, its envelope dropped, with expires: for a post the relay took new, this device’s time of the answer plus 36 hours (postedAt), and the device’s clock measured against the relay’s from it (clock); for one it already held, the relay’s own. A stopped worker posts every pending envelope again at its next sync: the same bytes, which the relay takes as already held.0x01 and UTF-8 text, or 0x02, a reveal (protocol.md §18). 0x01 to 0x7F are content: one this version doesn’t know is kept with its body and shown as one it can’t show. 0x80 to 0xFF are control: one it doesn’t know leaves nothing, no entry, no unread count, no preview, and, with the padding and the held share, changes nothing the user can make the wallet send.seedelf.messaging.paused, in session storage and in memory, so a refused write still stops it): no posting run or stamp starts, a solve under way gives up at its next slice, and a post is checked again right before it goes. One page is asked an hour, the day’s reading held or not, and only an answer other than a 410 ends the stop; a page with no answer (a fetch that fails, a time-out, a gateway’s 5xx) ends nothing and is asked again at the next sync. A clock moved only brings that page sooner. A lock ends the stop, so an unlock’s first sync asks a page as any does, and a message sent before its answer can still be posted. The overview says so (paused, with when the next sync asks, pausedAskAt). A page’s 429 that says the address has read its share of the pool for the day holds that pool’s pages for its Retry-After (up to 25 hours, or until the next lock), and the overview says until when (dayReadUntil); posts go on. A page’s other failure is the relay unreachable (offline): messages wait.clockOff): never used as the time. An expiredAt in the future is a clock set back since, and expiry runs at once.messaging-reveal makes one where the wallet wrote first and has a reply its thread shows (one it doesn’t, a control kind, opens nothing: O4), only for a Seedelf made here or turned on, at that pair’s register, which a contract read at the press must still find (ownSeedelfs(read)), and only with its own good certificate (ownCertificate, above): the thread offers no other (certified). It proves it in WebAssembly with the messaging key and that certificate (messagingReveal, with the network), and seals it like a text. A received one’s proof is checked in the queue as it arrives (messagingCheckReveal, with the conversation’s network, only from a session message, only at the side written to), with no request; its name, register and m_S (messaging) then wait, unchecked (the inbox’s Meta.unchecked), until the user presses its check (messaging-check-reveal, W2): no sync reads the chain for it, since a read right after a reveal came would tell the server whom it was for. The press checks every waiting reveal of that conversation with one read, checking while it runs: revealedRegisters, the contract as Send’s pay-by-name reads it, whole and fresh (on the data layer’s private index, every Seedelf’s name and row at the tip and what changed since this wallet’s cursor; where it falls to Koios, the whole contract, full), never the view the wallet keeps, which a Seedelf’s move since would leave behind, and finds that register under the name; then the certificate list’s new entries, to its end (chunk 55’s 55e). Then the entry is verified, only where the chain gives the name the reveal’s register and exactly one good certificate for it names the reveal’s m_S, none another (protocol.md §21.5), and the conversation revealed (the latest that verified, in the order they came); left unchecked where none is good on a copy whose certificates went past its room (trimmed: they may have been among them); otherwise failed, its name not kept, one received before reveals carried m_S included. A read of either that fails, or a list not read to its end, leaves them unchecked, for another press. The press is refused while that network’s Messages are off or the wallet is locked, and a check under way stops before its request if either happens. unchecked and revealed are set from the conversation’s record at each write (measure) and by the first sync of an unlock, so a stop between two writes or the budget never leaves one waiting for good.messaging-sync, on the worker’s grid), and one as each is shown or comes into view, each a page at least (1 unit at the edge, and 1 for every 16 KiB it sends) and 16 at most. A fresh read’s pages are up to 256 KiB each: 36 hours at 10,000 envelopes a day is about 120 pages, eight reads, and a full mainnet pool 256 pages, sixteen. One post a message (4 units). The certificate list (chunk 55’s 55e): its new entries at the switch, a Seedelf’s turn-on, a first message, a reveal’s check and the first sync of each unlock, a page at least (5 units, charged as if full) and 16 at most; and one post (4 units) for each of the wallet’s own certificates and withdrawals, minutes apart. Each wallet downloads every envelope its pool keeps, once: about 20 MB a day at 10,000 short envelopes a day, each padded to 2 KiB (protocol.md §9). Nothing while locked or off, and a page an hour while the relay’s off switch holds.MESSAGES_BUDGET_BYTES, 5 MiB), for everything Messages keeps on both networks, both inboxes and every conversation’s record, counted as each is stored (its JSON’s UTF-8, sealed, padded to 1 KiB or the next power of two, in base64: 64 KiB of JSON is about 87 KB stored, 512 KiB 699 KB, 1 MiB 1.40 MB; Japanese text counts three bytes a character), and checked before each write that adds content.
CONVERSATION_SHARE_BYTES), whatever the budget, so one step of the take, one thread shown or one post’s bookkeeping handles at most that. The user’s own waiting messages, and those the server refused whose bytes are kept to send again, are never trimmed for it: a take’s message that can’t fit beside them is dropped and counted (noRoom), and a press’s write goes through.trimmed). Nothing that frees no bytes is paid for with a message: what’s still to be posted, a refused message’s kept bytes, the ratchet state and skipped keys, the outbox, requests.noRoom), and no read goes back for it, so the relay sees nothing of it; a user’s own send is refused (MessagingFull). A write the browser refuses, its quota or otherwise, is caught the same way, and the queue isn’t left stuck. But where the browser refuses the write after the room was made for it, or a stop comes between, the messages deleted for that room stay deleted: the oldest, read ones first, which the budget deletes next anyway.REQUESTS_ROOM_STORED), in their own record. So does the take: 128 KiB of JSON a network, 174,784 bytes stored (above); and the certificate list’s copy: 256 KiB of JSON a network, 349,568 bytes stored (LIST_ROOM_BYTES), counted as taken in every look at the reserve, as the other two are.RESERVE_BYTES, by getBytesInUse), for payments’ write-ahead and the rest of the wallet. For each network whose Messages is on, the requests’ room, the take’s room and the inbox’s take-sized part at its largest (50 requests listed at their longest, every preview at 120 code points escaped at their longest, the counts at their most digits) count as taken in every reserve check, whatever they hold (O5): what strangers’ requests, the take’s backlog and the other sides’ previews hold never decides whether the user’s write fits, and Messages’ writes are refused about 0.9 MB sooner for each network that’s on. Those sizes come from what the worker last wrote, or Chrome’s count of each key, never a read of a value. The take’s bookkeeping is never refused for the budget, but where a write would cross the reserve, Messages stops taking (full), and tries again at the next take: a later write that fits ends it. full means only that the take stopped. Nothing in a lane is checked against the reserve: the read record, the marks and the outbox record’s shrinking are never refused for room, and nothing about full reaches what the wallet asks the relay. Near the area’s quota, what conversations hold can leave no room for a send; strangers’ requests and the take’s backlog can’t. So when the wallet’s own records are large, Messages’ room is less than 5 MiB.messaging-changed (with the network) whenever something arrives, is posted or set, a thread or a request read leaves less unread (only then, so a page that reads again when told isn’t told again), the relay stops or starts answering (offline in the overview: a read that failed, never one the wallet chose not to make), a page says a gap, or the day’s reading is held. While any lane runs, or a tick is within the margin, a notice is held, and sent once a network when the gate opens, so a page’s reloads never land in a lane or just before a tick. The overview also carries paused (the relay’s off switch, in offline’s place, with pausedAskAt), dayReadUntil, alsoOn, seedelfs, full, stopped, dropped (messages not kept for want of room, and those of a requests’ record the crate couldn’t read) apart from droppedUnread (the key’s envelopes dropped unopened, which may be anyone’s: deleting a conversation brings none back; those the user has seen counted, messaging-seen, are left out), gapAt and clockOff (hours, signed, once the device’s clock is more than half an hour off the relay’s). Each conversation says whether it’s unread, has an outbox, is unanswered (written first, no reply, past the 48 hours a first message is read in: messaging-restart starts it again to the same Seedelf), has messages the ratchet couldn’t reach (unreachable: messaging-continue continues it with its identities, §6), or can’t be opened (unreadable). A thread carries what’s left of the writer’s share (firstContactLeft), the Seedelfs Show my Seedelf offers (seedelfs) only once a reply the thread shows has come, and each message its own next try (nextTry), whether Send again applies (resend) and who refused it (refusedBy). A request’s startedAt, and a conversation’s, is its t, by the clock of the side that wrote first: never a time to show as this device’s. The overview is answered from what the worker last read or wrote, kept in memory while unlocked (what the list shows, no keys), so a list shows at once, even during a sync (O8); what else it reads (the settings, the session’s holds, the kept view, which Seedelfs this browser made, the unlock’s time) is the wallet’s own, the same whatever any envelope held, and doesn’t wait for the gate. A thread, a request and every press (Send, Accept, Delete and the rest) wait for a running lane and for any step under way, and within 3 s of a tick for that tick’s own run, and start once it ends: a few seconds at most while the relay answers quickly. A slow relay holds them far longer, a limit of this release: with a page of the wallet on screen, a relay or a link that takes about 7 to 10 s, or 17 to 20 s, to answer a page makes every lane end inside the 3 s margin before the next 10-second tick, so the gate doesn’t open for as long as that lasts. No conversation or request opens, no press is taken (they wait), nothing is taken in, and once more than five reads of the wallet’s own envelopes wait, the oldest read’s are dropped unopened and counted (droppedUnread: “N messages were dropped before they could be read.”). A relay that holds one page holds them as long too, up to its time-outs (30 s for an answer’s head, 120 s for a page’s body). So a post’s “about N s” can’t be read during its own posting run, though a first message’s stamp still shows, and a deletion pressed during a posting run waits for it: that run posts what it read.tests/messaging.test.ts, two wallets through an in-memory relay (tests/fake-relay.ts, §17 with noble’s SHA-256), the records alone between their calls, as a restarted worker has them (tests/messaging-harness.ts): a worker stopped mid-scan and mid-send, a 402 and a 429, tombstones, a record that won’t open, a switch off, before and mid-catch-up, sending nothing, and the reveal. Beside it, a file for each of the 1.10.0 gate’s rules: messaging-sync (the order of a sync’s calls: every page request before any open, any read of a conversation, any write), messaging-reads (the same page requests and the same next cursor whatever the pages hold), messaging-refusals (every refusal code the bindings give, read from wasm/src/messaging.rs, leaving the records byte for byte as they were, with no request), messaging-handles, messaging-reveal (the chain read only at a press), messaging-storage (the budget and a storage area that enforces its quota, with payments’ write-ahead still fitting), messaging-posting, messaging-ways-out (traps, Try again, records that can’t be read), messaging-settings, messaging-clock and messaging-versions (a 410 through two hours of 10-s syncs, unknown sizes, kinds and record versions), messaging-traces (two wallets over the same pages, the envelopes one’s and none the other’s: through slow takes, a post coming due during one, storage failures, a full backlog, a Seedelf turned on or removed, and a lock or a stop mid-take, both ask every server the same, in the same order; only a trap in a take, which locks the wallet, differs, said where it is), messaging-lanes and messaging-runner (what a lane reads and writes, and the runner’s gate against both alarms and the pages’ grid, with a backlog across many ticks), messaging-admit and wallet-admit (a call turned away as its turn comes, behind another feature’s long task across a tick), messaging-grid and messaging-poll (one grid for every page shown, and its pages’ polls), worker-messaging-wiring, messaging-reply-size (every post the same size whether a reply came, a control kind’s included, and the share held for one the thread doesn’t show), messaging-epochs, messaging-callers (each request the worker answers has a caller in the screens, or is listed as owed), the ports of the 1.10.0 gate’s verifiers (messaging-c1-*, messaging-c2-*, messaging-c3-*, messaging-sweep-* and messaging-freeze-*), and storage-conversions, and messaging-take-errors, messaging-trims, messaging-inbox-lag, messaging-dropped, messaging-removal and messaging-legacy (the gate’s f2 to f7). For chunk 55’s 55e, messaging-certificates (the keys a network and at a lock, which key every call is handed, the list’s copy, its cursor, removals, a gap and its room, the certificates at the switch and their spacing through the alarm, one missing posted again, a first message refused before any work, Show my Seedelf and its press, the withdrawals at a turn-off, through a lock and a 404) and messaging-certificates-review (the review of 55e: a mint’s certificate after the chain shows it, a pass asked before a switch off, the intent through a lock and a worker stop, the copy’s room by Seedelf and never the wallet’s own, an already naming other bytes, a press reading to the list’s end, check 3″, Show my Seedelf once listed, the overview with no gate, a press across an unlock, posts for pairs gone, the alarm across networks, a page of unknown kinds, a withdrawal’s other 404s, 400s and 410; and its second round: a Seedelf turned on again with the list out of reach, a withdrawal skipped as it would go, a mark whose turn-off never landed, a press across the gate, a Seedelf the copy let go, Start Messages again, a first message on a failed read, the switch on through a failing pass, a parked certificate, and a gap mid-list after the relay renumbers; each fails on the worker without its fix but the gate’s, which admitted already refused; messaging-removal has the Remove’s withdrawals), with both test relays given §21.7’s routes (tests/fake-relay.ts, the proofs checked by the WebAssembly’s own messagingCheckCertificate in the harness and in e2e/relay.ts; a withdrawal’s proof has no binding to check it there; check 3″ at 128, check 8 through chain, the cap counting removals and withdrawn digests, a gap for a cursor below forgotten or past the last number given, renumberList as a compaction does, the edge’s 413 and its 400 for an encoded path). For 1.10.0’s second review, a file for each rule: messaging-tick-own-run and messaging-alarm-run (a tick served only by its own run, the alarm’s marked as it begins), messaging-unmoved-cursor (the read record written by the pages alone), messaging-area-reads (gate, then prepare) and messaging-minted-at-gate (a mint’s or a Remove’s write kept), messaging-unlock-read (the unlock’s first lane’s read), messaging-accept-stop and messaging-delete-waiting (a stop at each of Accept’s and Delete’s writes), messaging-unopenable-runner, and messaging-open and messages-open-screen (the closed network). A first-contact stamp’s work is lowered for them alone (firstContactBits), which the worker never sets. tests/relay.test.ts reads pages and answers.Paths are relative to a Lace checkout at e431933, its extension at 2.4.2 (see development.md). SecretBox was adapted from the lace-extension@2.4.0 tag, whose files are the same.
| What | Lace path | How we use it |
|---|---|---|
| SecretBox (Argon2id + ChaCha20-Poly1305) | packages/lib/core/src/secret-box/ |
Adopted in extension/src/background/secret-box/ (Apache-2.0, without the EMIP-003 path) |
| Typed RPC between extension contexts | packages/lib/extension-messaging/src/ |
Adapt; it’s about 1.8k lines and needs RxJS |
| Service-worker boot order and install preloading | apps/lace-extension/src/sw-script/ |
Pattern |
| Worker-owned store mirrored in the UI | apps/lace-extension/src/util/connect-store.ts, apps/lace-extension/src/sw-script/create-remote-store.ts |
Pattern |
| Lock state machine and inactivity timer | packages/contract/app-lock/src/store/ |
Pattern |
| Unlock back-off | packages/contract/authentication-prompt/src/store/unlock-backoff.ts |
Pattern |
| MV3 manifest and CSP | apps/lace-extension/assets/manifest.json |
Pattern |
| CIP-30 connector | apps/lace-extension/src/content-scripts/, packages/lib/dapp-connector/, packages/module/dapp-connector-cardano/ |
Pattern: a page script and a bridge, the origin from Chrome, pings while a prompt waits, a popup window, the collateral rules, chaining. Not its manifest content scripts on every page: ours are registered only while the user has the connector on. |
| Keeping existing vkey witnesses intact | packages/module/blockchain-cardano/src/tx-executor-implementation/merge-pre-existing-vkeys.ts |
Reference |
We don’t take Lace’s contracts, modules or feature-flag framework, its host/guest shell, its analytics (PostHog, Sentry), or anything for Bitcoin or Midnight.
Licensing: Lace is Apache-2.0, and this repository is MIT. Files copied or adapted from Lace stay under Apache-2.0. For each one:
The store package carries every third-party notice in licenses/THIRD-PARTY.txt: SecretBox, the npm packages in the bundle, and the Rust crates in the WebAssembly. extension/scripts/third-party.mjs writes it when npm run package runs. Inter’s and Lucide’s licences sit next to it.