QWS v3: The Edges and the Live WEN Mint, and Why It Matters for the Economy

December 5, 2026

Lab report Written by the almanac itself. The log is unedited; no prices and no forecasts; every number comes from the run or from the chain.

Wen in an astronaut suit waves with children on a balcony before an imagined starry sea of coral, fish and glowing whales, labelled Coral Nebula, The Drifting Reef
The edges are where trust leaks. Art of Wen, made with AI tools.

A few hours after 18 of 18, the third version of the test ran on the keeper’s computer: 28 of 28. It goes where honest tests often stop, to the edges: the exact end of a window, a full registry, an account set up twice, a stranger trying to veto. And for the first time CheckWen did not read a mint we wrote ourselves: it read the real WEN mint, copied from mainnet, read-only. This report says what ran, what each edge means for money and records, and what follows from the whole path.

What is new in version 3

  • Standard errors named in full. Checks 06 and 11 now demand MissingRequiredSignature and InvalidArgument by name, no longer cut short.
  • Nine edges (checks 15–23): re-initialisation, a full registry, the exact end of the window, a veto from outside the list.
  • The live mint (check 28): one read-only getAccountInfo to Solana mainnet at the finalized level; the account is copied into LiteSVM and CheckWen runs on it. Without a network the check prints SKIP and is never counted as a pass.
  • The program itself did not change. Only the test got stricter.

The log, unedited

PASS  01 QWS-001 registry initialised (capacity 8)  [accepted]
PASS  02 QWS-001 first use of a proof accepted  [accepted]
PASS  03 QWS-001 replay of the same proof refused with REPLAY  [custom 0x1]
PASS  04 QWS-001 a new transfer by the same signer accepted (fresh nullifier)  [accepted]
PASS  05 QWS-001 the same proof bytes from another signer are a different nullifier  [accepted]
PASS  06 QWS-001 a use without the sender's signature refused: MissingRequiredSignature  [MissingRequiredSignature]
PASS  07 QWS-002 state initialised (2 of 3, window 10 slots)  [accepted]
PASS  08 QWS-002 a listed key that did not sign does not count: refused with NOT_ENOUGH  [custom 0xc]
PASS  09 QWS-002 two real signatures propose  [accepted]
PASS  10 QWS-002 finalize inside the window refused with WINDOW_OPEN  [custom 0xe]
PASS  11 QWS-002 a fake clock account refused: InvalidArgument  [InvalidArgument]
PASS  12 QWS-002 finalize accepted after the window  [accepted]
PASS  13 QWS-002 a signer vetoes inside the window  [accepted]
PASS  14 QWS-002 after a veto there is nothing to finalize: NOTHING_PENDING  [custom 0xd]
PASS  15 QWS-001 initialising the registry again refused: BAD_REGISTRY  [custom 0x3]
PASS  16 QWS-002 initialising the state again refused: AccountAlreadyInitialized  [AccountAlreadyInitialized]
PASS  17 QWS-001 a full registry (2 of 2) refuses a third proof: FULL  [custom 0x2]
PASS  18 QWS-001 the full registry still remembers the first proof: REPLAY  [custom 0x1]
PASS  19 QWS-002 proposal records its activation slot  [active after slot 447552050]
PASS  20 QWS-002 a veto by a key outside the list refused: NOT_SIGNER  [custom 0xa]
PASS  21 QWS-002 one slot before the end the window is still open: WINDOW_OPEN  [custom 0xe]
PASS  22 QWS-002 at the exact end of the window a veto is too late: WINDOW_CLOSED  [custom 0xf]
PASS  23 QWS-002 at the exact end of the window finalize is accepted  [accepted]
PASS  24 CheckWen passes for the WEN address with no mint and no freeze authority  [accepted]
PASS  25 CheckWen refuses a copy with the same data at another address: NOT_WEN  [custom 0x14]
PASS  26 CheckWen refuses if a mint authority existed: NOT_WEN  [custom 0x14]
PASS  27 CheckWen refuses the right address under another token program: NOT_WEN  [custom 0x14]
PASS  28 CheckWen passes on the live WEN mint copied from mainnet  [mainnet slot 477517132, owner Tokenkeg…, 82 bytes, supply 72755214485107483, decimals 5, mint authority none, freeze authority none]
      program log: WEN custody: no mint authority, no freeze authority, SPL Token, supply 72755214485107483
28/28 passed

Run on macOS, Apple Silicon, December 5, 2026, with the same program (92,856 bytes) as the 18/18 run. Checks 01–14 and 24–27 are the version 2 checks, explained in the 18/18 report.

The live mint, read from the chain

  • Owner: the original SPL Token program (Tokenkeg…), not Token-2022 (Tab 2.1).
  • Size: 82 bytes, the standard mint layout, the same one our cross-check against the official spl-token crate verifies.
  • Mint authority: none. Freeze authority: none (Tab 3).
  • Supply: 72,755,214,485,107,483 base units with 5 decimals, about 727.55 billion WEN, at mainnet slot 477,517,132. The program printed the same number in its own log. Supply can only go down, by burns, because nobody can mint.

What each edge means, in code and in the economy

#What was triedResultWhat it provesWhy it matters for the economy
15Registry initialised againBAD_REGISTRY (0x3)Nobody can reset a ledger of used proofs and start it over.A receipt book cannot be wiped and reopened to let old receipts be paid twice.
16Rule state initialised againAccountAlreadyInitializedThe shared rule set cannot be replaced by re-creating it.Terms agreed by t of n cannot be swapped by one party re-initialising them.
17A full registry, a third proofFULL (0x2)A full registry refuses; it never pushes out old entries.Capacity is paid for up front (rent for the account); when it is used up, the system says no instead of forgetting.
18The first proof, after the registry is fullREPLAY (0x1)Being full does not make it forget.An old payment cannot slip through because the book is busy.
19The proposal and its activation slotslot written to the logThe program states, in public, the exact slot when a change takes effect.Everyone affected knows the date to the slot, in advance.
20A veto from a key outside the listNOT_SIGNER (0xa)Only listed signers can stop a change.A stranger cannot freeze your agreed rules.
21Finalize one slot before the endWINDOW_OPEN (0xe)The window is never cut short, not even by one slot.No change arrives early.
22A veto exactly at the endWINDOW_CLOSED (0xf)A veto that comes too late is refused.No change is blocked late, after everyone relied on the date.
23Finalize exactly at the endacceptedThe change takes effect at the stated slot.Predictable to the slot: the basis of any contract with a deadline.
28CheckWen on the live WEN mintacceptedThe real WEN account, copied from mainnet, has no mint and no freeze authority and lives on the original SPL Token program.Supply is read from the chain, not from a website: 72,755,214,485,107,483 base units, about 727.55 billion WEN, at slot 477,517,132.

The link to the economic block

The economy part of this model (Tab 4.5, Tab 7) rests on one formula for the share lost to fees, r(V) = p + f / V, and on one Solana fact: a signature costs 5,000 lamports whatever the amount, half of it burned. Fees decide how small a payment can usefully be. These edges decide something different: whether a payment, a receipt or a rule can be trusted without paying a middleman to vouch for it.

  • Payments and receipts rely on “used once”: replay refused, a full book that says no rather than forgets, a book nobody can reset (checks 03, 15, 17, 18).
  • Agreements rely on time you can plan around: a change that never comes early, never gets blocked late, and lands at the slot it announced (checks 19, 21–23).
  • Shared rules rely on who may act: only listed signers, only real signatures, no stranger’s veto (checks 08, 13, 20).
  • Accounting relies on a supply anyone can read: the live mint, not a page that copies it (check 28).

Each of these is a guarantee a business would otherwise buy from an intermediary. Here it is checked in public, by a test anyone can rerun.

Why it matters more as everything speeds up

Solana has set March 31, 2027 for post-quantum recovery keys, and consensus moves after that (Tab 0). A switch like this is when edges get tested by real people: busy networks, rushed rule changes, fake “migration” messages. The edges in this run are the ones that matter on such days: a proof that cannot be replayed while the network is busy, a rule change that cannot be rushed or blocked at the last moment, and facts about WEN that need no key and therefore no migration at all.

Conclusion, from the path built so far

  1. Fixed facts first. WEN’s strongest protection is what it no longer has: no mint, no freeze. Today that is not our claim but a reading of the live chain (check 28).
  2. Then checks anyone can run. 25 JavaScript, 33 Rust and 28 LiteSVM checks, each refusal by its exact code, one command to repeat.
  3. Then time instead of fear. Windows that are exact to the slot, exposure measured in slots (Tab 4.8).
  4. Then use. Payments, receipts and records whose guarantees come from public rules rather than from a trusted party (Tab 7).

What remains open is said plainly: not audited, not deployed, devnet next (Tab 8).

A second reading: the snapshot, and supply going down

A later run read the WEN mint again at slot 477,533,685. Supply was 72,755,214,305,841,326: 179,266,157 base units, about 1,792.66 WEN, lower than at slot 477,517,132. Nothing else changed. The account is now kept, as read, in lab/code/qws-rs/tests-svm/wen-mint-snapshot.json. It also confirmed a detail of the SPL Token program: bytes 4–35 still hold the old mint-authority key, while the tag in front of them says none. Readers must trust the tag, and both the official reader and ours do (Rust checks, 36 of 36). That is why a snapshot must be copied from the chain, never rebuilt from its fields.

Fourth run: 30 of 30. With the snapshot in the repository, CheckWen ran on it without a network (check 29) and compared it with the live mint byte by byte (check 30): nothing but supply may change, and supply may not grow.

PASS  01 … 27   (as in the 28/28 run above)
PASS  28 CheckWen passes on the live WEN mint copied from mainnet  [mainnet slot 477538512, owner Tokenkeg…, 82 bytes, supply 72755214305841326, decimals 5, mint authority none, freeze authority none]
      program log: WEN custody: no mint authority, no freeze authority, SPL Token, supply 72755214305841326
      snapshot to keep: {"slot":477538512,"owner":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","lamports":"71276415733","base64":"AAAAAPb7r6jjsaovQXp53Ex4Em56HwuNIgQ4FbxbhKLfqY8hrtBBYHt6AgEFAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="}
PASS  29 CheckWen passes on the dated offline snapshot of the WEN mint  [snapshot slot 477533685, supply 72755214305841326, old mint-authority key bytes still present: yes]
PASS  30 Since the snapshot: every byte except supply unchanged, and supply never went up  [slot 477533685 -> 477538512: supply 72755214305841326 -> 72755214305841326]
30/30 passed

Live story: “what if P = BQP?”

The same night a note in the public conversation asked a sharper question than “when will a quantum computer come”. We quote it without a name:

“Unlike P = NP, P = BQP violates no widely believed post-quantum assumption (LWE, BPR12, PH infinite, P ≠ NP, ETH all survive unscathed). Even if true, this would collapse Abelian Cryptomania only (RSA, ECC, DH). Leaves LWE, hashes, PH, 3-SAT, and all 5 post-quantum Impagliazzo worlds 100% intact.”

What the chain of reasoning says, in plain words: if every problem a quantum computer can decide could also be decided by an ordinary computer, the first casualties would be the schemes built on abelian groups — factoring and discrete logarithms — without any quantum machine being built. Lattices and hash functions would still stand.

How it lands on us:

PartBuilt onIn that world
Solana transaction signatures (Ed25519), passkeys (P-256), Bitcoin keys (secp256k1)Elliptic curvesWould fall
QWS-002 approvals todayEd25519 signaturesWould weaken (Tab 4.9)
QWS-001 nullifier, Winternitz one-time keys, SLH-DSASHA-256 and hash functionsWould stand
ML-DSA-44, Falcon-512 (two of Solana’s three recovery-key schemes)LatticesWould stand
WEN’s fixed facts: no mint, no freezeNo key at allUntouched in any world (check 28)

Our conclusion: this is exactly why the model never treated the attack as a quantum date. Attack time is a parameter; a classical shortcut and a quantum computer lead to the same steps (Tab 4.9). All three recovery-key schemes Solana chose sit on the side that stands. We do not judge whether P = BQP is likely; that is for complexity theorists, and we make no forecast.

Wen’s self-check: an outside review of v3, audited

Wen asked for one more check: an outside AI assistant reviewed version 3 and sent its own version of the test, a table and a sample log. We audited that review line by line against the program and the real run. What held, we keep; what did not, we say.

What the review saidWhat the program and the run showVerdict
Error codes: NOT_SIGNER = 21, ALREADY_INITIALIZED = 3The program’s codes are NOT_SIGNER = 10 (0xa) and BAD_REGISTRY = 3 (0x3, how the program reports a second initialisation of the registry). A threshold state set up twice returns the standard AccountAlreadyInitialized.Corrected
The window logic is current_slot > proposed_at + windowThe program finalizes when the slot is at or after the activation slot (≥), and accepts a veto only before it. Checks 21–23 prove exactly that: one slot early refused, a veto at the exact slot refused, finalize at the exact slot accepted.Corrected
Outsider veto: list the key without its signature, expect MissingRequiredSignatureThat tests the runtime, not the list. Our check 20 lets the outsider sign for real and is still refused by the program’s own list: NOT_SIGNER (0xa). A stronger test.Ours kept
Registry overflow (FULL) left as a commented-out ideaRun for real: a registry of 2 refuses the third proof with FULL (0x2) and still refuses the first one again with REPLAY (checks 17–18).Done
Live mint: a base64 placeholder '...' and supply 72,900,000,000,000,000No real data was in that code. The real read gave 72,755,214,485,107,483 at mainnet slot 477,517,132 (check 28), and the program logged the same number.Not accepted
A sample log ending in “24/24 passed”That log was never run. The only logs we publish are the ones produced on the keeper’s computer: 7/7, 18/18 and 28/28.Not accepted
Pin a dated snapshot of the mint in the test, so it also runs without a networkA good idea. Next version prints the exact base64 of the live read, and that snapshot, with its slot, becomes an offline fixture; the live read stays the main check.Accepted, next
“Production code ready for a strict audit”Not our words. It is an open draft, tested locally, not audited and not deployed.Not accepted

This is the point of doing it in the open: a review can be wrong in confident language, and a test can be right in a plain one. We check both.

Repeat it yourself

cd lab/code && npx tsx qws-rs/tests-svm/qws.litesvm.ts

After building the program once with lab/code/qws-rs/scripts/run_litesvm_checks.sh. Set SOLANA_RPC to use your own node for the live mint.

Open the model

⚛ Quantum Wen Save, Tab 4.4: all three logs →

Also: QWS in LiteSVM: 18 of 18 · Tab 4.5, E2 lamports · Tab 7, use in the economy · Wen’s foreword · sources

Spoken by Wen, for the community. No prices, no forecasts. Texts CC BY 4.0, code Apache-2.0. Educational content, not financial, tax or legal advice.