Seedelf-Wallet

Chunk 55 · The messaging key

Status: ✅ 55a merged (#419): protocol.md §21 specifies the key, the hashed base and the certificate, and joint-security.md argues the two keys, reviewed and attacked (2026-11-26). ✅ 55b to 55e merged (#420, 2026-11-28): the crate, the relay, the bindings and the worker, through four rounds of review. 🚧 55f (web-wallet/messaging-key-screens): the screens. Then the owner’s own testing with the wallets, then 55g on compute of its own (the owner, 2026-11-28), then 55h. The plan was written 2026-11-26 on web-wallet/messaging-key from main (828cf7db) and merged as #418. 1.10.0 waits on it: chunk 54’s gate (54g) resumes for the release once this chunk’s own gate (55h) is done. Each step gets its own branch, web-wallet/messaging-key-<step>, and its own PR from main, as chunk 54’s steps do.

The idea came from a suggestion the owner pasted from ChatGPT (2026-11-26): “Maintain a single Seedelf identity while deriving independent spending and messaging secrets from the same recovery phrase using domain-separated HKDF. The spending secret authorizes the messaging public register through a domain-separated Schnorr proof that binds the messaging register to the Seedelf identity, network, and protocol version.” It’s chunk 54’s call 21, the messaging-only key, with the binding made by a signature instead of a second Seedelf, so the handle stays one name.

What the owner said (2026-11-26):

The specification stays protocol.md, with construction.md, security.md and joint-security.md. This plan says what changes, in what order, and what’s the owner’s to decide. joint-security.md is rewritten first (55a), as the root CLAUDE.md asks of any change to the Seedelf key’s uses.

The marks:

The goal

What’s already there

The design

Each [choice] can be overturned; the owner’s calls below list the ones that matter most.

What it costs in privacy

Today Messages names no Seedelf to any server, and nothing public says which Seedelfs read messages. The certificate list changes both. The owner accepted the list (call 2, 2026-11-26), and each change still needs a dated entry under the privacy policy’s Changes:

Constraints the plan follows

Steps

55a ✅ The argument and the spec (#419)

55b ✅ The crate and seedelf-crypto (#420)

55b, 55d and 55e land together (a 55b call, 2026-11-26): one branch, web-wallet/messaging-key-crate, a commit for each step, one PR. A writer can’t start without the reader’s certificate, so the crate’s new start, receive and reveal move the bindings and the worker in the same mergeable state, or main’s Messages tests fail. A one-key shim in between would have meant a second reveal format and its own vectors for one step. The relay (55c) is seedelf-data’s and its own PR, its copy of the certificate checks with it.

Built so far (2026-11-26):

55c ✅ The relay (#420, the same PR’s seedelf-data part, deployed after the merge)

55d ✅ WebAssembly (#420)

55e ✅ The worker (#420)

The design, for the session that builds it (2026-11-26; protocol.md §21.7 and §21.8 are what it implements):

55f 🚧 The screens

55g 🚧 The models (web-wallet/messaging-key-models; the owner’s full run to come)

Built (2026-11-28):

Run (8 GB, one core, each alone):

Argued, not checked:

Reviewed (2026-11-28): one Opus reviewer, given the code, the spec and the diff, not the README’s reading. It found no attack lost. Its findings were folded in: spend_key_secret’s claim was narrowed, a one-key argument in assumption 14 rewritten, the two missing excuse traces added, and the pair’s limit stated.

Left: the owner’s full run, on compute of its own: the PR has the command, with its memory, cores and hours.

55h ⬜ The gate

Not in this chunk

What doesn’t change

The owner’s calls

Each has a recommendation, which the owner can overturn.

  1. ✅ Where certificates live: the relay (the owner, 2026-11-26: “The relay will hold the certs. The relay does a lot here but its worth it for what is going on here.”).
    • A list per network, read whole. It costs no ADA, a certificate posts in a second, and the trust is the relay’s today: it can withhold, not forge. It fits the owner’s rule that a certificate is made when Messages is turned on (call 2).
    • Set aside, on-chain metadata: permanent and readable by any indexer, but turning Messages on would then be a transaction, with a fee and a block’s wait, that ties the certificate to the account that paid it, and the data layer and Koios would have to index it.
  2. ✅ What the list makes public, and when a certificate is made (the owner, 2026-11-26): the list is accepted (“Right now that spam attack exists and having a list of seedelfs that message is just the same thing but focused”), and a certificate is made when Messages is turned on, or reused if one exists (“Then if it exists just use it else create teh cert then start messaging”).
    • So anyone can read which Seedelfs take messages, and the relay sees which address posted each certificate. Both are said plainly in privacy.md, in the policy’s dated entry and in one line at the switch.
    • Certificates are posted apart from each other, and the list keeps no times.
    • A certificate for every Seedelf at its mint, so the list wouldn’t single out the ones that read, was weighed and set aside the same day.
  3. ✅ x_m per network (the owner, 2026-11-28: “yes to calls 3, 4, 7 and 8”), as built in 55b. It’s what keeps a preprod flaw away from mainnet’s messages.
  4. ✅ x_m from the seed (the owner, 2026-11-28), as built in 55b.
    • From the BIP39 seed, a sibling of v1, so it isn’t a use of x.
    • The alternative is HKDF of x, as the one-time keys are (use 8), which a CLI’s random x could use too.
  5. ✅ M_S’s base: a hashed one (changed in 55a; the owner, 2026-11-26: “yes to the call 5 and call 9. I think they would work well.”).
    • Recommended: h_S = hash_to_G1(network ‖ N ‖ g_S ‖ u_S) (protocol.md §21.3). A restore still rebuilds it from the chain and the phrase, nobody chooses the point, so no certificate is a static-DH answer on x_m, and a Seedelf’s messaging register is never on another register’s base.
    • The plan first recommended the Seedelf’s own generator g_S. A Seedelf someone else minted under the key has a g_S they built from the wallet’s public registers, and turning it on would then publish x_m times their point.
    • The cost is one hash to the curve each time a writer or the relay checks a certificate.
  6. ✅ The relay checks every certificate against the chain, on both networks (the owner, 2026-11-26, as recommended, once 55c found the list could otherwise be filled for good: a certificate needs only a key pair, so about 30 addresses could fill preprod’s list in 36 hours).
    • Mainnet from the data layer’s own view, with removals as Seedelfs move; preprod from Koios at post time, with no re-check yet (protocol.md §21.7, check 8).
    • The relay has read no chain until now: a change to 54c’s design.
    • No per-address cap on certificates held (the owner, 2026-11-26): it would keep a record of which address posted how many for as long as certificates live, and the chain check already holds the list to two certificates for each real Seedelf.
  7. ✅ Call 18’s warning after the split (with chunk 54’s call 22; the owner, 2026-11-28). Funds no longer depend on Messages’ math, but a memory-level bug still reaches both keys.
    • Kept word for word until mainnet opens: “Messages are a test for now: use a wallet that isn’t your mainnet wallet.”, which stays true with two keys.
  8. ✅ Rotation later, with the generation in the format now (the owner, 2026-11-28).
  9. ✅ Withdrawing a certificate: a withdrawal signed by x_m (Opus’s attack; the owner, 2026-11-26, as recommended), built in 1.10.0 (the owner the same day: “In 1.10.0”): protocol.md §21.7’s withdrawal, joint-security.md’s new use of x_m first, then the crate, the bindings, the relay’s route and the worker’s post at turn-off, in this PR. Turning Messages off leaves the Seedelf’s certificate good on the public list, so it still reads as taking messages, and writers still pay a first message’s stamp for nothing.
    • Recommended: a withdrawal, signed by x_m, never x, posted when the user turns Messages or that Seedelf off. It proves x_m on h_S over a hash of the one certificate it withdraws, so a later posting, made with a fresh aux, is other bytes that an old withdrawal can’t take down. It’s a new use of x_m, so joint-security.md and protocol.md §21 come first, in 55c.
    • The alternative is to say at the switch that turning off doesn’t take the Seedelf off the list, and that moving it does.
  10. ✅ An off switch for each network, from GitHub Actions (the owner, 2026-11-26: “since preprod is free basically the monetary limits that mainnet apply do not work. So we should have an github action to turn off preprod and github action to turn off mainnet. This way mainnet could work as expected but still limit a preprod side attack that could overload the server. Easy fix for something that potentially could happen.”).
    • DATA_MESSAGING_OFF takes a list of pools as well as true, a stopped pool’s routes answer 410 alone, and the wallet already pauses only that network.
    • The deploy script gains messaging off|on <pool>, keeping the runbook’s drop-in.
    • The workflow gains four choices, each approved by the owner as every run is.
    • The new script needs one by-hand install on the VPS before the Actions work (the runbook’s block).

Unknowns