Quantum Wen SaveQ

English · Italiano

What would a quantum computer change for Solana, for JUP and for WEN? We took a long set of notes and AI conversations, checked every claim against the chain, our own record and primary sources, kept what holds, corrected what does not, and built small sandbox models with tests. Everything here is open, dated and reversible: if a reader finds a mistake, it lands in reader findings.

Tab 0 · timeline

0 · Timeline: from today to March 2027

Wen in an astronaut suit waves with children in an imagined garden of clockwork flowers and a great hourglass under a ringed planet, labelled Chronos Garden, Beyond the Last Hour
Done · today · target date, each with a source · Art of Wen, made with AI tools.

Where we stand, dated. What has happened, what is set for March 2027, and which part of this open model answers each step. Dates are announced targets, not our forecasts.

  1. August 13, 2024 done
    NIST publishes the first post-quantum standards: FIPS 203, 204, 205 (Tab 1).
  2. January 2025 done
    Solana developers publish the Winternitz Vault: one-time hash-based signatures, opt-in (Tab 2).
  3. June 2025 done
    Solana verifies P-256 signatures natively (SIMD-0075), used by passkey wallets (Tab 4.9).
  4. October 11, 2026 done
    A prototype Solana cluster runs with post-quantum signatures at 18.5k TPS (Solana Foundation).
  5. December 2–3, 2026 done
    The NSA asks national security systems to speed up the move to post-quantum cryptography; the joint statement sees no immediate and widespread threat (article). Solana sets its dates, and the Solana Foundation joins Hong Kong’s Tokenized Securities Framework as an ecosystem participant (release).
  6. Today, December 4, 2026 today
    This model is public as a draft: JavaScript 25/25, Rust 33/33 checks; a dated note on P-256 and Ed25519 (Tab 4.9); the program built for the Solana VM (92,856 bytes) and passed LiteSVM on the keeper’s computer: 7 of 7, 18 of 18 with exact error codes, then 28 of 28 including the live WEN mint read from mainnet.
  7. March 31, 2027 target date
    Target for post-quantum asset security on Solana mainnet: holders can pre-register a recovery key under Falcon-512, ML-DSA-44 or SLH-DSA-128s (Solana Foundation).
  8. End of 2027 target date
    Target for post-quantum consensus (Quantumglow) (Solana Foundation).

The technology row, as one road map

Lane202020242025Oct 2026Dec 2026Today, Dec 4Mar 31, 2027End of 2027Next
StandardsNIST SP 800-208: LMS, XMSSNIST FIPS 203 · 204 · 205NSA: speed up the move
SolanaWinternitz Vault (Jan)P-256 for passkeys, SIMD-0075 (Jun)PQ test cluster, 18.5k TPSDates set (Dec 3)Recovery keys on mainnetPQ consensus, Quantumglow
WENNo mint, no freeze; 271B unclaimed burned (Jan 29)Facts unchanged; CheckWen 4/4 in LiteSVM
QWS (this model)Draft public; JS 25/25, Rust 33/33Built for the Solana VM; LiteSVM 18/18Devnet from an empty walletHolder guide after Anza’s guidesItalian, Chinese, Korean
donetodayannounced targetour next gate
The technology row as one road map: standards, Solana, WEN and this model on one time line. Dates are published or announced; nothing here is a forecast.

How usefulness flows

On the chainWEN’s fixed factsNo mint, no freeze, original SPL Token. No key stands behind them.Tab 3 →
CheckedCheckWenReads the 82-byte mint; a copy at another address is NOT_WEN.Tab 4.4 →
Your sideYour keyA Solana address is its public key: exposed while funds stay (the window).Tab 4.8 →
From March 31, 2027 (target)Recovery keyRegistered by you, in your wallet. Ends the address being the only gate.Tab 0 →
Sandbox + LiteSVMQWS-001 · one-time proofA proof is used once; replay refused by name.Tab 4.4 →
Sandbox + LiteSVMQWS-002 · shared rulest of n, a public window, a veto. Nothing changes early.Tab 4.7 →
SandboxE2 · fees5,000 lamports per signature; r(V) = p + f / V.Tab 4.5 →
NextUse: holders, shops, recordsPayments, receipts and records that anyone can check.Tab 7 →
fact on the chaintested hereannounced by Solananext, not built
How usefulness flows: from facts nobody can change, through checks anyone can run, to everyday use. Top row: what is fixed and what is yours. Bottom row: what this model adds, and where it leads.

How this model answers each step

StepWhat answers it hereStatus
Holders register recovery keys before March 31, 2027Exposure window (Tab 4.8): a key registered in advance ends the address being the only gate. Size test QWS-003 for the three named schemes.Tested in the sandbox
“Migrate now” messages multiply during any switchWEN’s fixed facts (Tab 3): no mint, no freeze, no one can migrate holders for them. CheckWen fails on any breach. Rule: never share a seed phrase or approve a “migration”.Tested; guidance published
A one-time proof could be replayed while networks are busyQWS-001 nullifier: verify and consume in one step; the same signer gets a fresh nullifier per transfer.Tested in the sandbox; not deployed
A shared list (signers, rules) changed by one keyQWS-002: t-of-n approvals, a public challenge window, a veto. Weaker if the signers’ own keys are weak (Tab 4.9).Tested in the sandbox; not deployed
Tokenized securities under existing rules (Hong Kong’s framework)We do not know the framework’s technical requirements. QWS-001 and QWS-002 are general patterns such systems could study; they are not a product, and no one has adopted them.Idea only
Fees during and after the switchE2 (Tab 4.5, 7): 5,000 lamports per signature whatever the amount; r(V) = p + f / V.Tested in the sandbox

Our gates before March 31, 2027

  1. LiteSVM run with a public log (stage 3, Tab 8). Done December 4–5, 2026: 30/30 with the live WEN mint and its snapshot (Tab 4.4).
  2. A devnet run from a new, empty wallet, with public logs (stage 4).
  3. A plain-words guide for WEN holders, written only after Anza publishes its migration guides, and checked against them.
  4. Translations into Italian, Chinese and Korean after review.

Why the edges matter during the switch. A change like March 2027 is when edges get tested by real people: busy networks, rushed rule changes, fake “migration” messages. The checks that matter on such days already pass: 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, so no migration at all (v3 report).

What we do not say: that any asset will lose value, that any framework or company has chosen this model, or that this model is a standard. It is an open draft with tests, dated December 4, 2026.

Tab 1

1 · Quantum cryptography: what is fact

Wen the cat in a white astronaut suit, helmet under one arm, surfs a glowing comet past galaxies, a ringed planet and drifting asteroids
Aug 13, 2024: NIST FIPS 203 · 204 · 205 · Art of Wen, made with AI tools.

A large, error-corrected quantum computer running Shor’s algorithm could derive a private key from a public key for elliptic-curve signatures, the kind Solana (Ed25519) and Bitcoin (ECDSA, Schnorr) use today. Hash functions are much less affected: Grover’s algorithm gives only a square-root speed-up, so SHA-256 stays strong (BIP-360 explainer). No such machine exists today, and we make no forecast of when one might.

On August 13, 2024 NIST published the first three post-quantum standards: FIPS 203 ML-KEM (key exchange, from Kyber), FIPS 204 ML-DSA (signatures, from Dilithium) and FIPS 205 SLH-DSA (hash-based signatures, from SPHINCS+). A fourth, FN-DSA (FIPS 206, from Falcon), is in development, and HQC was later selected as a backup key-exchange algorithm (NIST, overview).

We sorted the claims from the source notes:

ClaimStatusWhy
Quantum risk is about signatures, not transaction speedFactShor targets the public-key layer.
Addresses with a visible public key are the first targetFactIn Bitcoin that means P2PK and reused addresses. On Solana a wallet address is its Ed25519 public key, so it is always visible.
A “quantum fingerprint” will split people into districtsHypothesisNot a property of cryptography. Access to quantum networks may be local; that is policy, not math.
Human trading will disappear; new scams will appearOut of scopeForecasts about markets. We do not publish forecasts.

Tab 2

2 · Solana and post-quantum cryptography

Wen in an astronaut suit rides a glowing ring of light through space, with spiral galaxies, ringed planets, a crystal and a black hole behind
Mainnet target: March 31, 2027 · Art of Wen, made with AI tools.

January 2025, Winternitz Vault. Solana developers published an optional vault that uses one-time hash-based signatures and a new key for every spend. It is opt-in, not a network upgrade: funds are protected only if their owner moves them into such a vault (Decrypt).

December 16, 2025, a post-quantum testnet. The Solana Foundation worked with Project Eleven on a threat assessment and a Solana testnet using post-quantum signatures, reported as practical with today’s technology (announcement). Analysts have noted that a full move would mean replacing Ed25519 across the protocol, with ML-DSA among the candidates (report).

December 3, 2026, a date. Solana’s core developers set March 31, 2027 for post-quantum asset security on mainnet: holders will be able to pre-register a recovery key under Falcon-512, ML-DSA-44 or SLH-DSA-128s; post-quantum consensus is planned for the end of 2027; no action is needed today (Solana Foundation). Our review: Solana sets a post-quantum date.

A dated vulnerability record. Token-2022 confidential transfers rely on the ZK ElGamal proof program. After a bug report on June 10, 2025 that allowed forged proofs, confidential transfers were disabled in Token-2022 on June 11 and the proof program itself on June 19, 2025, epoch 805. No exploit was known (Solana post-mortem). We record this because several models in our source notes assumed confidential transfers as a ready building block. At the time of writing we treat them as disabled until re-enabled by Solana.

Size matters. Post-quantum signatures are large: an ML-DSA-44 signature is 2,420 bytes and its public key 1,312 bytes (sizes). A Solana transaction was limited to 1,232 bytes (Solana docs); the v1 format raises it to 4,096 bytes (Solana upgrade). Our size check (Tab 4.4) shows that only the smallest ML-DSA set fits into one v1 transaction.

Elsewhere. Bitcoin’s BIP-360 adds an output type without the elliptic-curve key path, as a first step (Bitcoin Magazine). Every network is at the stage of preparation, not of a finished switch.

Tab 2.1

2.1 · How WEN, JUP and SOL really connect

Wen in an astronaut suit surfs a comet in a bright abstract painting of galaxies, a ringed planet and geometric shapes
WEN: classic SPL Token · no mint · no freeze · Art of Wen, made with AI tools.

The source notes described WEN as a Token-2022 token with transfer hooks and a permanent delegate. That is not what the chain says.

LinkWhat is trueCheck it
WEN mint programClassic SPL Token (Tokenkeg…), not Token-2022 Compare WEN, read live
Mint authorityNone: supply can never growCompare WEN
Freeze authorityNone: no one can freeze a holderCompare WEN
Hooks, fees, delegatesImpossible in the classic programReading any token
Burn271 billion unclaimed WEN, over 27% of supply, burned on January 29, 2024 (not “40.7%”)Almanac record
WNSAn NFT standard on Token-2022 from the Wen team. The poem NFT that WEN was split from lives on WNS; the WEN token itself is on the original SPL TokenAlmanac record, Stage 2
JUPJupiter’s Global Passport (Nov 16, 2026) is an identity layer for permissioned products, kept separate from your anonymous on-chain identity. It is not a quantum shieldDecrypt
SOLOwns the signature layer every account shares; post-quantum work is at testnet stageTab 2

So the real chain is simple: SOL provides the signature layer, WEN launched on January 26, 2024 as the first project on Jupiter’s LFG Launchpad (JUP) (record), and WEN is a fixed-supply token with no powers left. The protection WEN offers is not armour added to it. It is the absence of anything that could be turned against a holder.

Tab 3

3 · Safe points and fixed points

Wen in an astronaut suit waves beside a smiling girl and two boys on rocks above the Ilulissat Icefjord in Greenland at dusk, labelled Greenland, Ilulissat Icefjord
0 mint authority · 0 freeze authority · Art of Wen, made with AI tools.

We list what is safe and what can never change. We name classes of risk, never step-by-step attack paths.

Safe points, said out loud

  • No new WEN, ever. There is no mint authority.
  • No one can freeze your WEN. There is no freeze authority.
  • No hidden rules on transfers. The classic program has no hooks, no transfer fee, no permanent delegate.
  • Our tools never ask for a key. Compare WEN and the Lab checks only read public accounts.

Fixed points (they cannot change, for better and for worse)

  • The token cannot be upgraded. The same immutability that protects holders means no one can switch WEN to new cryptography. When Solana offers post-quantum accounts, protection will come from holders moving their own WEN, not from the token.
  • The signature layer is shared. Every Solana wallet signs with Ed25519, and its address is its public key. This is a network-level matter for all tokens alike; we follow Solana’s own work (Tab 2).

Security that is not imposed: WEN’s fixed facts, as code

Most “security” is something added: a guard, a key, a rule someone can change. WEN’s strongest protection is the opposite: powers that were removed and can never come back. No key stands behind these facts, so breaking a key, with any computer, cannot change them. Each one is a check in qws-core/src/wen_custody.rs and in the program’s CheckWen instruction.

FactWhat it givesQuantum angleCheck
No mint authorityNo new WEN, everThere is no key to steal or to breakMintAuthorityPresent is a breach
No freeze authorityNo one can freeze a holderSame: nothing to sign withFreezeAuthorityPresent is a breach
One fixed addressA copy with the same name fails at once; an “upgraded WEN” would be a new, visible tokenIdentity does not depend on a signatureNotWenAddress
Supply can only go downEvery burn is one-way and checkable; each burn adds to the record and nothing can undo itA record, not a promiseSupplyGrew between two snapshots is a breach
Original SPL Token programNo hooks, no transfer fee, no permanent delegate (those are Token-2022 extensions). A holder may approve a delegate for their own account; only the holder can, and only the holder can revoke itChanged only by the whole network: the 2026 rewrite (p-token) kept the same address and layouts, and WEN’s facts stayed the sameWrongProgram

The p-token rewrite went live at the same program address, fully backwards compatible (Solana, Chainstack). What these facts do not cover: each holder’s own key. That is the subject of Tab 4.8.

Read live from the chain, December 5, 2026

On December 5, 2026 the real WEN mint was read from Solana mainnet (read-only, getAccountInfo, finalized) and checked by CheckWen inside LiteSVM (check 28):

FieldValue read
Mainnet slot477,517,132
OwnerOriginal SPL Token program (Tokenkeg…)
Size82 bytes, the standard mint layout
Mint authorityNone
Freeze authorityNone
Supply72,755,214,485,107,483 base units, 5 decimals: about 727.55 billion WEN. It can only go down, by burns.

Second reading, slot 477,533,685. A later run read the mint again: supply 72,755,214,305,841,326, that is 179,266,157 base units (about 1,792.66 WEN) less, burned between the two readings. Everything else was identical. The account is kept as a dated snapshot in the repository (lab/code/qws-rs/tests-svm/wen-mint-snapshot.json), copied from the chain, and two Rust checks read it: both readers see no authority, and between the two readings supply only went down.

A detail worth knowing: when an authority is removed, the SPL Token program clears only the 4-byte tag and leaves the old key bytes in place. Readers must look at the tag, as the official program and ours do (a Rust check proves both agree). The live snapshot shows it: bytes 4–35 of the WEN mint still hold the old mint-authority key, while its tag says none. That is also why a snapshot of the mint must be copied from the chain, never rebuilt by hand. Full report.

Why “migrate by burn and re-mint” is rejected

One proposal was to move holders to post-quantum accounts by letting a program burn WEN through a delegate and mint it again elsewhere. For WEN this cannot work and should not: there is no mint authority, so nothing can ever be minted again; and a delegate exists only if a holder approves one, for their own account. A scheme that needs holders to hand out delegates would teach exactly the habit scams rely on.

The path that fits WEN is holder-driven: when Solana offers post-quantum accounts, each holder signs one ordinary transfer from the old address to a new one. The token stays the same, at the same mint address; the supply does not change; nothing is wrapped or reissued. Try it on devnet first, and ignore anyone who asks for a seed phrase or an approval to “migrate” for you.

The priority risk class, without details

For any token, the most dangerous single thing is a key that can move or freeze everyone’s balance. In a quantum future such a key becomes the most valuable target of all. WEN has none. That is why our models below reject adding one.

Tab 4

4 · Four models

Wen in an astronaut suit waves with children above an imagined ocean of floating crystal islands under an aurora, labelled Prism Ocean, Aurora Archipelago
Pools A · B · B2W · E2 · Art of Wen, made with AI tools.

The source notes proposed four pools. We kept the names and checked each one.

PoolIdeaWhat we did
A · QWS-AHistory chain WEN → JUP → SOLKept as a dated, sourced chain (Tab 2.1). Nothing hidden: every link points to its source.
B · Quantum WenA base model of safetyRewritten as the rule of light: value moves safest when nothing stands between sender and receiver: no hidden powers, no percentage fee, no gate. A metaphor for design, not a claim about physics.
B2WCustody of a factA fact no key can change is kept by the chain itself. Our sandbox reads a mint and lists what is fixed and who still holds a power (b2w-fact-custody.mjs).
E2The lamport economyFees counted per signature in lamports, not as a share of the amount (Tab 4.5).

Tab 4.1

4.1 · WEN-Shield v1: the model as proposed

Wen in an astronaut suit waves with children on a cliff path above floating islands, waterfalls and glowing jellyfish in the sky, labelled Skyreach, Floating Islands
Hide · gate · freeze: an exercise, not WEN · Art of Wen, made with AI tools.

The notes designed an institutional “shield” for a WEN-like token: confidential transfers to hide amounts, a transfer hook that checks a zero-knowledge proof of identity (a whitelist or a passport), and a permanent delegate as an emergency switch that can freeze accounts if a key is broken. It is clever, and it is a useful exercise. It is also not WEN and, as Tab 4.2 shows, not safe as written.

We keep its pseudocode out of this page on purpose: it was written as if for production. Our own versions are sandbox code with tests (Tab 4.4).

Tab 4.2

4.2 · Critical review, dated December 4, 2026

Wen in an astronaut suit waves with children in a forest of giant glowing mushrooms beside a shining river, labelled Lumina, Glowcap Forest
8 weak points, each with a verdict · Art of Wen, made with AI tools.

We read the model from the end, under strict critique. First the eight weak points the notes found themselves, then what we add.

#Weak pointOur verdict
1Replay of a valid proofReal. Fixed in sandbox by a nullifier set (Tab 4.4, QWS-001).
2One delegate key is a single point of failureReal, and worse than written: it is a power over every holder. We reject the delegate for WEN-like tokens (Tab 4.7).
3Timing patterns reveal who pays whomReal. Instead of “noise transfers” (more fees, more complexity) we model the exposure window of a key (Tab 4.8).
4Elliptic-curve proofs are not quantum-safePartly corrected: Pedersen commitments stay hiding, so past amounts are not revealed by that part alone; but proofs could be forged, and ElGamal-encrypted balances could be decrypted.
5The list oracle can be wrong or lateReal. Sandbox: t-of-n approvals plus a public challenge window (QWS-002).
6Freeze and transfer can raceReal for any freeze design. Escrow instead of freeze is better, but only for systems that already have a freeze.
7Groth16 needs a trusted setupReal. Correction: PLONK and Marlin also use a (universal) setup; transparent options are hash-based, such as STARKs.
8A wrong freeze is a loss for the userReal. Another reason not to give anyone that power.

What we add to the review

Claim in the notesStatusWhy
“WEN uses WNS, hooks and a permanent delegate”CorrectedWEN is a classic SPL Token with no authorities (Tab 2.1).
“Confidential transfers are ready”CorrectedDisabled since June 2025 after a forged-proof bug (Tab 2).
“40.7% burned”Corrected271 billion, over 27% of supply, per our record.
“0% commission on the protocol level”CorrectedSolana fees are small but never zero (Tab 4.5).
“Threshold signatures on Module-LWE in one program”CorrectedResearch stage; the notes themselves call it a stub. Our sandbox models only the state machine.
Hidden characters in the source textCorrectedAbout 600 invisible characters and look-alike letters were removed before any text was used.

Tab 4.3

4.3 · The two reports and the draft code, reviewed

Wen in an astronaut suit waves with children in an imagined glowing forest of mushrooms and jellyfish around a bright portal, labelled Lumina Wildwood, The Living Portal
Read line by line · findings in a table · Art of Wen, made with AI tools.

Two HTML reports came with the notes: a “final audit” of WEN-Shield v2 and a “full launch package” for QWS (an executive summary, an economic model, a repository layout, README). The package file ends in the middle of its README, so the promised contributing guide and templates are not in it. We read both, and the Rust and TypeScript code in the notes, line by line.

What we keep

  • The shape: numbered specs (QWS-001, QWS-002, QWS-003), code next to tests, honest “stub” labels.
  • The ideas that survive critique: a nullifier set, threshold approvals with a challenge window, escrow instead of a bare freeze.
  • The formula of the effective fee rate, which is correct and useful (Tab 7).

What the code review found

WhereFindingWhat we did
QWS-001 RustThe registry capacity was never set, so every proof would be refused as “registry full”Capacity required at creation; regression test
QWS-001 RustAccount space forgot a field; a 32 KB array would be read onto the stack and created through a CPI, both beyond Solana limitsSpec: zero-copy account or an SPL concurrent Merkle tree
QWS-001 RustThe register instruction accepted any signer, so a stranger could pre-register someone’s nullifier and block the paymentVerify and consume in one step; regression test
QWS-002 RustThe signature check was a stub that always returned trueA verifier is required; forged approvals do not count
QWS-002 RustDuplicate shares from one node counted toward the quorum; any account could proposeDistinct signers only; proposer must be a signer
QWS-002 RustThe “challenge window” had no way to challenge, only a delayVeto inside the window
QWS-002 RustThe post-quantum public key was stored in 32 bytes; an ML-DSA-44 key is 1,312 bytesSize budget test (QWS-003)
PQC crateA C library (PQClean) cannot run inside a Solana program, and a bad input would crash it instead of returning falseOut of scope until audited on-chain libraries exist
Poseidon WASMThe conversion functions were left as unimplemented!(), and the chosen crate does not match the field typesSandbox uses SHA-256 with length prefixes
TypeScript testThe challenge-window test passes even when the window does not stop finalization: its own failure message contains the expected error nameDemonstrated in a test; we use assert.rejects

What we leave out

The economic projections (fees saved per region, a share of world GDP by 2030, “finality in 400 ms”, prices of a transaction in dollars) and the “ready for publication” status. We do not publish forecasts or prices, and the status of this work is a draft. The roadmaps of both reports are merged, with gates instead of dates, into Tab 8.

Tab 4.4

4.4 · Sandbox code and tests

Wen in an astronaut suit waves with children in a valley of tall rainbow crystals under a ringed planet and shooting stars, labelled Prisma, Crystal Moon Valley
JavaScript 25/25 · Rust 33/33 · Art of Wen, made with AI tools.

The models exist twice: as small JavaScript files with no dependencies (to read and change quickly), and as Rust (to run as a Solana program). Each JavaScript file has no dependencies. Folder: lab/code/qws/, with a README and three short specs.

FileWhat it models
b2w-fact-custody.mjsReads a mint: what is fixed forever, and who still holds a power
nullifier.mjsQWS-001: a one-time proof is verified and consumed in one step; replay refused
threshold-update.mjsQWS-002: t-of-n checked approvals, a public challenge window, veto
pqc-size-budget.mjsQWS-003: which post-quantum signatures fit into one Solana transaction, including the three schemes Solana named for backup keys (Falcon-512, ML-DSA-44, SLH-DSA-128s)
ledger-record.mjsRecord-keeping: a balanced, hash-linked journal and exact invoice matching
e2-fee-model.mjsE2: lamport fees and the effective rate r(V) = p + f/V
cd lab/code
npm run test:qws

Verification log, December 4, 2026 (Node 22, no network, no keys). Checks marked review guard against the issues found in the draft code:

PASS  B2W: WEN has no powers left; its key properties are fixed facts
PASS  B2W: a mint with a permanent delegate and a hook is reported as powers, with holders
PASS  B2W: a wallet or token account is refused, not misread
PASS  QWS-001: a proof can be used once; a replay is refused
PASS  QWS-001: the nullifier is bound to sender, mint and epoch (no cross-use, no field-shift collision)
PASS  QWS-001 review: a registry without a set capacity is refused at creation (draft code left it at 0, so every proof failed)
PASS  QWS-001: a full registry says so, and never drops an old nullifier to make room
PASS  QWS-001 review: verify and consume in one step; a stranger cannot pre-register an honest proof
PASS  QWS-002 review: no verifier, no window, no update (draft code verified every signature as true)
PASS  QWS-002 review: duplicate, outside and forged approvals do not count; only a signer may propose
PASS  QWS-002: approvals are bound to the root they sign (an approval for r1 cannot pass r2)
PASS  QWS-002: the change waits for the window; a veto inside the window stops it
PASS  QWS-002: with no veto the new root becomes active after the window, not before
PASS  PQC budget: no ML-DSA signature fits a legacy 1,232-byte transaction
PASS  PQC budget: in a 4,096-byte v1 transaction only ML-DSA-44 fits, signature plus key, with little room left
PASS  PQC budget review: a 32-byte key slot cannot hold any ML-DSA public key (draft code used [u8; 32])
PASS  Ledger: every entry balances; an unbalanced entry is refused
PASS  Ledger: the history keeps itself honest; editing any past entry breaks the chain from there
PASS  Ledger: an invoice is matched by exact memo, once, and not below its amount
PASS  E2: one signature costs 5,000 lamports; half is burned
PASS  E2: the network fee does not depend on the amount; a percentage fee does
PASS  E2: priority fee = CU price x CU limit / 1,000,000, rounded up, all to the validator
PASS  E2 formula: r(V) = p + f/V; a fixed part weighs most on small payments, a percentage part on everyone
PASS  Test review: the draft "challenge window" test passes even when the window does NOT stop finalization
PASS  QWS-003: Solana backup-key schemes (Dec 3, 2026) against one transaction

Rust: the same rules as a Solana program

Folder lab/code/qws-rs/: qws-core holds the rules with no standard library and no unsafe code; qws-program is a Solana program that maps accounts and instruction bytes onto them. Instructions: initialise and use a nullifier registry (QWS-001), initialise, propose, veto and finalize a threshold update (QWS-002), and CheckWen, which fails on any breach of WEN’s fixed facts.

  • QWS-001. The program computes the nullifier itself from the proof, the signer’s key, the mint and the epoch. A caller cannot hand in a ready nullifier, so no one can pre-register someone else’s proof. The proof is the commitment of one transfer (it binds the destination and the amount), so the same signer gets a fresh nullifier for every new transfer; a test checks eight transfers in a row.
  • QWS-002. Approvals are the accounts that actually signed the transaction, checked by the Solana runtime; listed keys that did not sign count for nothing. The slot comes from the clock sysvar, and a fake clock account is refused.
cd lab/code/qws-rs
cargo test        # 36 checks: 24 rules + 5 program runs with real AccountInfo
                  #   + 7 checks against the official SPL Token layout and the live WEN mint snapshot
cargo clippy --all-targets -- -D warnings   # clean
PASS  exposure::tests::a_hash_committed_one_time_key_is_exposed_only_until_finality
PASS  exposure::tests::a_public_key_address_is_exposed_for_as_long_as_it_holds_funds
PASS  exposure::tests::a_window_of_slots_is_shorter_than_a_human_moment
PASS  exposure::tests::the_same_attack_fails_against_a_short_window_and_succeeds_against_a_long_one
PASS  fees::tests::fixed_part_weighs_on_small_payments_percentage_on_all
PASS  fees::tests::one_signature_is_5000_lamports_half_burned
PASS  fees::tests::priority_fee_rounds_up_and_goes_to_the_validator
PASS  nullifier::tests::a_proof_is_used_once
PASS  nullifier::tests::bound_to_sender_mint_epoch_and_length_prefixed
PASS  nullifier::tests::capacity_is_required_and_layout_checked
PASS  nullifier::tests::full_registry_refuses_and_never_evicts
PASS  nullifier::tests::one_signer_can_make_many_transfers_each_with_its_own_passport
PASS  nullifier::tests::stays_sorted_under_many_inserts
PASS  threshold::tests::after_the_window_it_activates_and_veto_is_too_late
PASS  threshold::tests::config_is_checked
PASS  threshold::tests::duplicates_and_outsiders_do_not_count_and_only_signers_propose
PASS  threshold::tests::state_round_trips_through_bytes
PASS  threshold::tests::veto_in_window_stops_it_and_nothing_changes_early
PASS  wen_custody::tests::any_power_or_other_program_is_a_breach
PASS  wen_custody::tests::burns_only_lower_supply_and_are_counted
PASS  wen_custody::tests::malformed_data_is_refused_not_guessed
PASS  wen_custody::tests::the_address_is_the_identity
PASS  wen_custody::tests::the_constants_are_the_real_addresses
PASS  wen_custody::tests::wen_facts_hold_and_no_key_has_power
PASS  check_wen_passes_for_the_real_facts_and_fails_for_an_impostor_or_a_power
PASS  qws_001_proof_used_once_by_its_signer_only
PASS  qws_001_registry_must_belong_to_the_program_and_fills_up_honestly
PASS  qws_002_finalizes_after_the_window_and_rejects_a_fake_clock
PASS  qws_002_only_real_signatures_count_and_the_window_holds
PASS  official_mint_length_is_82
PASS  our_reader_agrees_with_spl_token_with_authorities
PASS  our_reader_agrees_with_spl_token_without_authorities
PASS  spl_token_reads_what_we_write_and_we_refuse_what_it_refuses

LiteSVM: the first real run, December 4, 2026. The compiled program was run inside LiteSVM, a local Solana virtual machine with no network, on the keeper’s computer (macOS, Apple Silicon). The sandbox where this page was written could not download Solana’s platform tools, so the run was done there, with one script, and the output is shown unedited below.

rustc 1.100.1 · cargo 1.100.1 · solana-cli 4.4.2 (Agave) · platform-tools v1.57 · Node 26.13.1
1/4 cargo test ............... 33 passed (24 rules + 5 program runs + 4 SPL Token cross-checks)
2/4 cargo clippy -D warnings . clean
3/4 cargo build-sbf .......... target/deploy/qws_program.so, 92,856 bytes
4/4 LiteSVM
PASS  QWS-001 registry initialised
PASS  QWS-001 first use accepted
PASS  QWS-001 replay refused
PASS  QWS-002 state initialised
PASS  QWS-002 two real signatures propose
PASS  QWS-002 finalize refused inside the window
PASS  QWS-002 finalize accepted after the window

Second run, the same evening: 18 of 18. We found a weakness in our own first test: a refusal counted as a pass if the transaction failed for any reason. Version 2 demands the exact error code of the program for each refusal, and adds the veto, a fake clock, an unsigned call, signer binding and CheckWen on the WEN mint layout. Run twice on the keeper’s computer, with the same result; output 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  [FailedTransactionMetadata(FailedTransactionMetadata { err: InstructionError(0, M]
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  [FailedTransactionMetadata(FailedTransactionMetadata { err: InstructionError(0, I]
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 CheckWen passes for the WEN address with no mint and no freeze authority  [accepted]
PASS  16 CheckWen refuses a copy with the same data at another address: NOT_WEN  [custom 0x14]
PASS  17 CheckWen refuses if a mint authority existed: NOT_WEN  [custom 0x14]
PASS  18 CheckWen refuses the right address under another token program: NOT_WEN  [custom 0x14]
18/18 passed

Lines 06 and 11 are Solana’s standard errors, cut short by our own printout: MissingRequiredSignature (no signature from the sender) and InvalidArgument (the clock account is not the real one). The full walk-through: QWS in LiteSVM: 18 of 18.

Third run, after midnight: 28 of 28, and the live WEN mint. Version 3 names the standard errors in full, tests the exact end of the window, a full registry, re-initialisation and a veto from outside the list, and reads the real WEN mint from mainnet (read-only) into LiteSVM. Output 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

Supply is shown in base units: 72,755,214,485,107,483 with 5 decimals is about 727.55 billion WEN at mainnet slot 477,517,132. Walk-through and what it means for the economy: QWS v3: the edges and the live WEN mint.

Fourth run, December 5, 2026: 30 of 30. With the dated snapshot in place, CheckWen also ran on it without a network (check 29), and the live mint was compared with it byte by byte (check 30). Lines 28–30, unedited:

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

The same run also showed the mint account holds 71,276,415,733 lamports (about 71.28 SOL), far above the rent-exempt minimum of 1,461,600: SOL sent to the mint address by mistake. It changes none of WEN’s facts.

Fuzzing: random and corrupted inputs (December 5, 2026)

A seeded generator (so anyone gets the same inputs) throws hundreds of thousands of random and broken inputs at the parts that read bytes. Nothing may panic; every input is read correctly or refused. cargo test --test fuzz.

TargetInputsResult
82-byte mint reader vs the official spl-token reader200,000 random mints, tags and flags biased to edge valuesBoth readers agreed on every one (3,249 read, 196,751 refused)
Wrong lengthsEvery length from 0 to 299 except 82All refused
The live WEN mint, corrupted100,000 copies with 1–5 random bytes changedCheckWen passes exactly when the tags and the initialized flag still say “no authority, initialized”
Registry layout100,000 random buffers and headersLoaded only when magic, size and count are consistent
Registry behaviour50,000 operations against a simple modelReplay, full and accept always as the model says; entries always sorted
Threshold state100,000 random statesFound a flaw: a flag byte of 2–255 was read as “none”. Fixed: flags must be 0 or 1, anything else is refused

The threshold fix changed the program, so it was rebuilt and measured again on the keeper’s computer the same night: Rust 43 of 43 (including the 6 fuzz tests, 0.40 s), LiteSVM 30 of 30, compute units in Tab 4.5.

Signature sizes from real libraries, not only from tables

Using a real implementation (@noble/post-quantum 0.7.1), each scheme generated a key, signed, verified, failed on a different message, and was measured: npm run test:pq-libs.

SchemePublic key (bytes)Signature (bytes)QWS-003 verdict
Falcon-512, compressed897650–661 (varies)Signature alone fits a classic transaction
Falcon-512, padded897666 (fixed)With its key only in the 4,096-byte v1 format
ML-DSA-441,3122,420Only in the v1 format, key included
SLH-DSA-SHA2-128s327,856No single transaction

The real sizes match FIPS 204, FIPS 205 and the Falcon specification. One detail the tables hide: compressed Falcon signatures vary in length from one signature to the next; 666 bytes is the padded upper bound our budget uses.

The edges, in one table

CheckWhat was triedResultWhat it proves
15Registry initialised againBAD_REGISTRY (0x3)A ledger of used proofs cannot be reset
16Rule state initialised againAccountAlreadyInitializedAgreed rules cannot be replaced by re-creating them
17Full registry, a third proofFULL (0x2)Full means no, never forgetting
18First proof, registry fullREPLAY (0x1)Being full does not reopen old proofs
19Proposalslot in the logThe exact activation slot is public
20Veto by a key outside the listNOT_SIGNER (0xa)A stranger cannot block a change
21Finalize one slot earlyWINDOW_OPEN (0xe)No change arrives early
22Veto at the exact endWINDOW_CLOSED (0xf)No change is blocked late
23Finalize at the exact endacceptedIt lands at the slot announced
28Live WEN mint from mainnetacceptedNo mint, no freeze, on the live chain

Since then: a dated snapshot of the WEN mint, copied from a live read at slot 477,533,685, is in the repository. The test runs CheckWen on it without a network (check 29) and, when online, confirms that every byte except supply is unchanged and supply never went up (check 30).

Cross-check against the source of truth. CheckWen reads the 82-byte mint itself, with no dependency in the program. To make sure that reader is right, a test-only dependency on the official spl-token crate (the original token program WEN uses, not Token-2022) packs mints with and without authorities; our reader must return exactly the same fields, and must refuse what the official one refuses.

Repeat it yourself. With Rust, the Solana CLI (Agave) and Node installed: lab/code/qws-rs/scripts/run_litesvm_checks.sh runs all four steps in order and saves both logs. No keys, no network after the downloads, nothing on any cluster.

Tab 4.5

4.5 · E2: the lamport economy

Wen in an astronaut suit waves with children above an imagined desert of glass pyramids and a glowing river under galaxies and a ringed planet, labelled Nova Dreamland, Edge of the New World
5,000 lamports per signature · half burned · Art of Wen, made with AI tools.

On Solana the base fee is 5,000 lamports per signature, whatever the amount. Half of it is burned and half goes to the validator; an optional priority fee goes fully to the validator (Solana docs). A percentage fee grows with the amount; a lamport fee does not:

Amount sent, in lamportsNetwork fee, one signatureA 2.5% percentage fee
1,000,000 (0.001 SOL)5,000 lamports = 0.5% of the amount25,000 lamports = 2.5%
1,000,000,000 (1 SOL)5,000 lamports = 0.0005% of the amount25,000,000 lamports = 2.5%
1,000,000,000,000 (1,000 SOL)5,000 lamports = 0.0000005% of the amount25,000,000,000 lamports = 2.5%

This is the lean-production idea in the notes: the cost of one action is measured, small and the same for everyone, and nothing is skimmed as a share of value. Two honest limits: the fee is not zero, and burning half the base fee does not by itself make SOL deflationary, because new SOL is still issued as staking rewards. Token-level fees can be added by a mint (the Token-2022 transfer fee); WEN has none. Our Wen Counter applies the same idea to a shop till. File: lab/code/qws/e2-fee-model.mjs.

Measured: compute units per instruction (December 5, 2026)

Run in LiteSVM on the keeper’s computer with qws-rs/tests-svm/qws.cu.ts. Keys come from fixed seeds, so the same build gives the same numbers anywhere. Three builds were measured the same night: the first hashed the nullifier in software, the second uses Solana’s built-in SHA-256 system call, the third adds the stricter threshold-flag check found by fuzzing (Tab 4.4).

Instruction1. Software SHA-256 (CU)2. SHA-256 system call (CU)3. Current: + threshold flag check (CU)
InitRegistry (capacity 64)533533533
UseProof (64 inserts, median)22,1951,8131,813
UseProof, refused replay21,4311,0501,050
InitThreshold (3 of 9)1,0241,0241,024
Propose (5 signatures)2,8612,8612,867
Veto1,3991,3991,412
Finalize1,1361,1361,149
Finalize, refused inside the window917917930
CheckWen (dated snapshot)1,0621,0621,062
Program size92,856 bytes37,552 bytes37,648 bytes
  • What changed, and what did not. Build 2 changed only the way the nullifier is hashed: the bytes hashed and the result are identical (a Rust check compares 32 inputs), and every other instruction costs exactly the same. Build 3 refuses a threshold flag byte other than 0 or 1; that check costs 6–13 CU, only in the instructions that read the threshold state (Propose, Veto, Finalize). LiteSVM passes 30 of 30 on every build.
  • The frame of the registry. After the change, inserting a nullifier costs 1,677 CU into an empty registry and 1,836 CU with 63 entries: about 160 CU for keeping the list sorted, as before. Now that hashing is cheap, that small cost is visible.
  • Limits. The heaviest instruction is Propose with 5 signatures, 2,867 CU: about 1.4% of the default 200,000 per instruction.
  • What it means for fees. The base fee does not depend on CU: one signature is 5,000 lamports either way. Fewer CU mean a lower optional priority fee for the same price per CU (CU limit × price in micro-lamports ÷ 1,000,000), and more room in a block.
  • Run fingerprints. Before: 189a034355f8b67472ad8ca3e8c919f6648acb9896e4a3c59e81a5d20bd3daf5. Build 2: 179d0f2d66d70c4c8b8c4b7a5222ee74dc8730a1a21dee6bc16ecd0c7810e1a7, printed identically by three separate runs. Build 3 (current): e372782170789de299357c1bb57ba921912362a8710cd9d2aed11767d42f295d. The same build on another machine should print the same fingerprint; that is the independent check we invite. Data: lab/code/qws-rs/tests-svm/cu-summary-2026-12-05.json (build 1), cu-report-2026-12-05-syscall.json (build 2) and cu-report-2026-12-05-current.json (build 3, every row).

Tab 4.6

4.6 · Global safety: boundaries for everyone

Wen in an astronaut suit waves with a girl and two boys on a wooden pier by red fishing cabins and snowy peaks under a faint aurora, labelled Norway, Lofoten Islands
Your keys are your boundary · Art of Wen, made with AI tools.

The notes asked for safety for all, not for someone, through boundaries that hold for each person. In design terms that means:

  • Your keys are your boundary. No one else holds a key over your balance: no delegate, no freeze, no gate.
  • Tools read, they never take. Every check here is read-only and runs in your own browser or computer.
  • Rules are public and the same for all. Open code, open sources, dated changes.
  • No embedded tolls. No percentage fees built into the value itself.

Sincerity in a community grows where no one can quietly change the rules for others. A token with no powers left is the simplest form of that boundary.

Tab 4.7

4.7 · Our decision

Wen in an astronaut suit waves with a girl and two boys on a waterfront promenade with the Golden Gate Bridge lit at dusk, labelled California, Golden Gate Bridge
Keep · reject · replace, with reasons · Art of Wen, made with AI tools.
ElementDecisionWhy
Nullifier pattern for any one-time proofKeepCheap, exact, testable.
t-of-n approvals with a challenge window for any shared listKeepNo single key decides; the public can see a change coming.
Escrow instead of freezeKeep, only for systems that already have a freezeBetter than a bare freeze; not a reason to add one.
Permanent delegate as a “quantum switch”Reject for WEN-like tokensIt is a power over every holder and the most valuable target in a quantum future.
Transfer hook that gates transfers by identityReject for open tokensTurns a public token into a permissioned one.
Noise transfers against timing analysisReplacedBy the exposure window (Tab 4.8): protect the moment with fixed rules, not with extra traffic and fees.
“0% commission” as a sloganRejectNot true on Solana; we say “a small fixed fee in lamports”.
Follow Solana’s own post-quantum pathKeepWhen post-quantum accounts are offered, explain how holders can move, step by step, devnet first.

Tab 4.8

4.8 · The human moment: security measured in time

Wen in an astronaut suit waves while a girl hugs his arm and children gather on a harbour promenade with colourful houses, fishing boats and the northern lights, labelled Nuuk, Nuuk Fjord
Address: exposed until spent · one-time key: until final · Art of Wen, made with AI tools.

The notes asked for something subtle: not hiding forever, but protecting the moment of a transfer, when a new kind of interceptor might act. Here is that idea in plain words, then as an algorithm.

In plain words

  • An attacker needs a public key and time. A quantum computer would not see through everything at once; it would need a key to work on and time to work.
  • On Solana a wallet address is its public key. It is visible from the first deposit for as long as funds stay there: a long window.
  • A one-time key hidden behind a hash (like the Winternitz Vault) is shown only when it is spent, and only until the transfer is final, then never used again: a window of a few slots.
  • A few slots is shorter than a human moment. No person can notice and react inside it. So protection inside the moment cannot come from people watching; it must come from rules fixed beforehand that no one can break: a proof used once (QWS-001), changes announced in advance with a veto (QWS-002), and no powers to seize (Tab 3).
  • Never reuse a one-time key. Its safety comes from being used once. A Merkle tree of one-time keys (LMS and XMSS, approved by NIST in SP 800-208, October 2020) gives many signatures under one public root, but NIST notes their security depends on careful state management: a counter that must never go back, or a key is reused (NIST).
  • Each transfer gets its own passport. The nullifier is that passport of iteration: one moment, one use, recorded for good.

What the notes called “noise” is better described as capacity of the moment: machines can process far more inside one human second than a person can follow, so the rules that matter are the ones set before that second begins.

The algorithm

  1. Is the key visible before spending? Address = public key: yes. Hash-committed one-time key: no.
  2. Measure the exposure in slots: from the first deposit to now (or to the spend) for a visible key; from broadcast to finality for a one-time key.
  3. Compare it with the time an attack would need. That time is unknown today, so it stays a parameter, never a forecast.
  4. Shrink the exposure where you can: when Solana offers post-quantum accounts, moving to them turns a long window into a short one.
  5. Inside the window, trust only fixed rules: one-use proofs, announced changes, no powers.

key holds  ⇐⇒  attack time > exposure     exposure(address) = now − funded     exposure(one-time) = finality slots

Code: qws-core/src/exposure.rs, four checks. Slot length and human reaction time are model inputs (we use 400 ms and 1,000 ms in the tests), not measurements.

Tab 4.9 · dated note

4.9 · December 4, 2026: P-256, Ed25519 and the NSA advisory

Wen in an astronaut suit waves with children on a seaside promenade, the Golden Gate Bridge and a sailboat behind at sunset, labelled San Francisco, Golden Gate Bridge
No public attack on any 256-bit curve · Art of Wen, made with AI tools.

A dated note, written the day the news broke. What is known, what is not confirmed, and what it means for WEN and for this model. No prices and no forecasts.

What is known

  • On December 3 a security researcher added a short edit to his blog: he had heard from “a reliable source” that the P-256 curve was broken, and he reminded readers that for cryptographers “broken” means weaker than expected, not crackable today (report).
  • No technical evidence and no named attack method have been published. Several cryptographers questioned the reading and noted that the cited NSA policy is years old (report).
  • The NSA advisory of December 2 asks owners of national security systems to speed up the move to post-quantum cryptography and to list their algorithms; among the examples it calls out are curves other than P-384 and P-521, and EdDSA. The NSA has not named P-256 as broken (report).
  • One reading by a well-known cryptographer: 256-bit elliptic curves, both P-256 and Curve25519/Ed25519, are likely broken or significantly weaker than thought, and the move to ML-KEM and ML-DSA should come much sooner (analysis).
  • A widely read AI summary on X said Bitcoin’s secp256k1 “is unaffected” and other systems are safe (post). Nothing published supports a difference between 256-bit curves either way; the honest statement is: no public attack exists on any of them.

Why it matters for Solana

  • Solana signs every transaction with Ed25519, a 256-bit curve of the kind the advisory calls out.
  • Solana also verifies P-256 signatures natively since June 2025 (SIMD-0075), used by passkey wallets (Helius). Transactions themselves still need Ed25519.

What it means for this model

PartStatusWhy
WEN’s fixed facts (Tab 3)Not affectedNo mint or freeze authority, so no key stands behind them. A weaker curve cannot mint, freeze or change the mint address: there is nothing to sign with.
Holders’ keys (Tab 4.8)Affected firstA Solana address is an Ed25519 public key, visible from the first deposit. A weaker curve makes the long exposure window the main risk.
One-time key behind a hashHoldsRests on a hash function, not on a curve, and is shown only until finality. Never reuse it.
QWS-001 nullifierHoldsBuilt on SHA-256; no curve involved.
QWS-002 thresholdWeakerApprovals are Ed25519 signatures. The window and the veto give time to notice, but if signers’ own keys are weak, the threshold protects less.

The model never depended on how a key gets weaker. Attack time was always a parameter, not a forecast, so a classical shortcut and a quantum computer lead to the same steps. Only the priority changes.

Our recommendation

  1. Do not panic and do not move funds because of a message. A real migration will be announced by Solana itself and can be tried on devnet first.
  2. Check addresses, not names, and never share a seed phrase or approve a “migration” for anyone.
  3. When Solana offers post-quantum or hash-based accounts, move by an ordinary transfer that you sign yourself; WEN stays the same token at the same mint.
  4. Builders: list which curves your system uses, and plan for ML-DSA and ML-KEM now rather than later.

Update, the same day: Solana set March 31, 2027 for post-quantum asset security, with backup keys under Falcon-512, ML-DSA-44 and SLH-DSA-128s. Our review of the three posts, and the size test for those schemes, is in the almanac news: Solana sets a post-quantum date.

Tab 4.10 · self-audit

4.10 · Self-audit: where we were wrong, and what now guards it

Wen in an astronaut suit waves with children on a glass walkway above an imagined volcanic city of brass towers, lava and dragons, labelled Ember Forge, Heart of the Volcano
We fixed our own test first · Art of Wen, made with AI tools.

“Checking others is easy. The cat checks its own paws first.” — Wen

Outside reviews were checked in Tabs 4.2–4.4. This tab turns the same rule on ourselves: every mistake we made on the way to QWS, dated, and the check that now stops it from coming back. A mistake with no guard is only an apology; a mistake with a guard is a test.

Our own mistakes, and their guards

WhenWhat we got wrongWhat guards it now
Dec 4LiteSVM v1 counted any failed transaction as a refusal, so a check could pass for the wrong reason.v2: every refusal must carry its exact code (REPLAY 0x1, WINDOW_OPEN 0xe…); checks 03–27.
Dec 4–5A commit was pushed to a branch whose pull request was already merged; one protocol section was lost and restored.Before any push: check whether the pull request is merged; if it is, open a new one.
Dec 5The first pinned snapshot was stored without lamports.The lamports were recorded from the next read; the refresh tool stores them every time.
Dec 5The live-mint hex in the fuzz test was typed by hand: 78 bytes instead of 82. The fuzzer caught it at once.Rule: never type bytes. Hex is generated from the snapshot, with a length check.
Dec 5The threshold state read a flag byte of 2–255 as “none” instead of refusing it.Fixed in State::read; the fuzz test on 100,000 random states runs on every build.
Dec 5A draft claimed an audit of the post-quantum library that we could not show.Claim removed; the page test now refuses that word unless “not” or “until” stands before it.
Dec 5The tables are typed by hand: after the rebuild, five CU numbers and the program size on the page were stale until updated.qws-claims.test.mjs checks every one against the report and its fingerprint.
Dec 5A rerun after a merge request used the old build (37 Rust tests, old program file), because the pull request was not merged yet.The log shows which build ran: the test count (37 vs 43) and the fingerprint name it.

The guard for the page itself

Numbers drift when they are copied by hand. lab/code/qws/qws-claims.test.mjs (npm run test:claims, step 6 of the script, no network) reads this page and checks it against the files the numbers come from:

  • both CU reports: the stored fingerprint is recomputed from the rows, and the page must show it and the program size;
  • every CU number in the Tab 4.5 table, and the “heaviest instruction” line, must equal the current report;
  • the pinned WEN snapshot is decoded: 82 bytes, SPL Token, no mint and no freeze authority, initialized, 5 decimals, old key bytes present, and its supply and slot must appear on the page;
  • the Rust count on the page must equal the number of #[test] functions in the code;
  • the post-quantum sizes on the page must equal the size budget the tests use;
  • no claim of an audit (the word must follow “not” or “until”), no claim of being ready for production or deployed; no outside links inside the page (they live on the sources page).

We tested the test: changing one CU number on the page by hand, or deleting the “not” in front of the word for an audit, makes it fail.

The process guards: which are automatic, which are rules

The most dangerous weak points were not in the cryptography but in the paperwork around it: copying, typing, wording, timing. So the guards cover the process, not only the code. Six of the eight run by themselves; two are rules a person must follow, and we say which.

GuardHow it holds
Every refusal in LiteSVM names its exact error codeAutomatic: the test
Before a push, check that the branch’s pull request is not already mergedRule
Snapshots store lamports, and the slot from the same responseAutomatic: the refresh tool
Never type bytes; generate them, with a length checkRule, and length checks in the tests
State bytes outside their allowed values are refusedAutomatic: fuzzing on every build
No claim of an audit, a deployment or readiness for productionAutomatic: the page test
Every number on this page equals its source fileAutomatic: the page test, on every pull request
A log names its build: test count and fingerprintAutomatic: the script output

Since December 5 the page test and the JavaScript model also run on every pull request that touches this page or the code (GitHub Actions, Node only, no packages, no network). How to contribute under the same rules: QWS Doc Zero · 0.00027 absolute, the repository’s CONTRIBUTING.md, with a pull-request checklist.

Refreshing the snapshot without typing a byte

lab/code/qws-rs/scripts/refresh-wen-snapshot.ts makes one read-only getAccountInfo call (finalized) and takes the slot from the same response, so bytes and slot always belong together. It stops if the facts do not hold, saves every reading under its slot in tests-svm/snapshots/ and never overwrites one, and with --pin replaces the pinned snapshot only if every byte except supply is unchanged and supply did not go up. Tried against a stand-in server in four cases: a mint authority set (stopped, nothing saved), supply up by one (stopped), one other byte changed (stopped), a burn of 1,000 (pinned).

An outside proposal, checked the same way (December 5)

ProposedWhat we foundStatus
Pin a dated snapshot, refreshable by a scriptRight idea, already done in v3.1 (checks 29–30). Its script is now improved and added, see above.Done, improved
Take the slot from a second call, getSlotThe slot of a second call can belong to a later block than the bytes. We take it from the same response (context.slot).Corrected
Replace the live read by the snapshotWe keep both: the live read is the main check (28), the snapshot runs offline (29), and 30 compares them byte by byte.Ours kept
Use __dirname in the scriptThe Lab code is an ES module; __dirname is not defined there. We use import.meta.url.Corrected
“Mint authority and freeze authority equal zero” in the 82 bytesOnly the tags are zero. The old mint-authority key bytes are still there; SPL Token clears only the tag. Readers must trust the tag, and ours does.Corrected
Numbers: 28/28, program 92,856 bytes, supply 72,755,214,485,107,483 at slot 477,517,132True on the morning of December 5, stale by night: 30/30, 37,648 bytes, and the pinned supply 72,755,214,305,841,326 at slot 477,533,685 after burns.Updated

What is still not checked

  • No third-party audit. The code is an open draft, not audited and not deployed.
  • No devnet run yet: next, from a new empty wallet, with public logs.
  • One machine so far. The same build should print fingerprint e3727821… anywhere; a second machine is the independent check we invite.
  • LiteSVM runs the real program in the Solana VM, but it is not a full validator.
  • Our fuzzing is seeded and random, not coverage-guided; it found one flaw, which says it works, not that nothing is left.
  • The post-quantum library used for sizes was not audited by us; we used it only to measure bytes.

Why Wen checks its own paws

“I am a wandering cat, and people joke that I fell from the stars. Let the joke stand, with one rule I brought down with me: the highest authority is the one anyone can check. Not my word, not a title, not a logo: the chain, the code, the file. If that is the rule for others, it is the rule for me first. So I published where I was wrong, and I built a check that reads my own page and refuses it when a number drifts. Not to look perfect. So that the next person, anywhere, does not have to trust me at all.” — Wen

Why it is built in, not written once: Why Wen Checks Its Own Paws: the story behind the self-audit, and Doc Zero.

The full report: QWS self-audit: eight of our own mistakes, and the checks that now catch them.

Tab 7

7 · Use in the economy and in record-keeping

Wen in an astronaut suit waves with children in an imagined city of tree houses, rope bridges and lanterns among giant trees and waterfalls, labelled Verdant Canopy, City in the Giant Trees
r(V) = p + f / V · Art of Wen, made with AI tools.

Why does any of this matter outside cryptography? Because every business keeps records of value moving between people, and every payment has a cost. Here is the arithmetic, plainly.

One formula for any fee

r(V) = p + f / V     retention η(V) = 1 − r(V)

V is the amount sent, p a percentage part, f a fixed part in the same unit as V. A percentage part takes the same share from everyone. A fixed part weighs most on small payments: with p = 1% and f = 30 units, a payment of 100 loses 31%, a payment of 10,000 loses 1.3% (checked in e2-fee-model.mjs).

This is why small payments matter most. The World Bank measures the cost of sending $200 home: the global average was 6.49% in the first quarter of 2025 (World Bank), and the Sustainable Development Goal 10.c asks for less than 3% by 2030 (SDG 10.c).

On Solana the network part has no percentage at all: p = 0 and f = 5,000 lamports per signature (Tab 4.5). Whether that is below 3% of a given payment depends on the amount and on what a lamport is worth that day, so we do not turn it into a promise. What the formula does show: nothing in the network fee grows with the amount, and no share of the value is skimmed on the way.

Record-keeping that keeps itself honest

Clerks, accountants and auditors have always needed three things: every entry balances, nobody can quietly rewrite the past, and every payment is matched to its document. The same three rules, as code:

  1. Balance. Debits equal credits in every entry, or the entry is refused.
  2. History. Each entry carries the hash of the one before. Change any past line and the check fails from that line on: custody of a fact (B2W) applied to a journal.
  3. Matching. A payment belongs to an invoice only if its memo names that invoice exactly, once, for at least the amount due. The chain checks that a memo exists, not what it says (see Lab Stage 3), so matching happens here.

Together with the on-chain receipt (Stage 1) and a till that takes no percentage (Wen Counter), this gives a small business an open trail: receipt → invoice → payment with memo → balanced journal → reconciliation, each step checkable by anyone, none of it owned by a middleman.

Who it helps

WhoWhat changes
A worker sending money homeA cost that does not grow with the amount sent
A small shopNo percentage per sale on the network side; a receipt the customer can verify
An accountantEntries that always balance and a history that cannot be edited quietly
An auditorEvery claim and every line can be re-computed, not taken on trust
EveryoneThe same rules for all, readable code, no hidden powers

What the tested edges mean for the economy

Fees decide how small a payment can usefully be. The edges tested in LiteSVM version 3 (28 of 28, December 5, 2026) decide something else: whether a payment, a receipt or a rule can be trusted without paying a middleman to vouch for it.

Where it mattersWhat is guaranteedProved by
Payments and receipts“Used once”: replay refused; a full book says no instead of forgetting; nobody can reset the bookChecks 03, 15, 17, 18
Agreements with a dateA change never comes early, cannot be blocked late, and lands at the slot it announcedChecks 19, 21–23
Shared rulesOnly listed signers act; only real signatures count; no stranger’s vetoChecks 08, 13, 20
AccountingSupply read from the live chain, not from a page that copies itCheck 28

Full report: QWS v3: the edges and the live WEN mint.

Tab 8

8 · Road map, with gates instead of dates

Wen in an astronaut suit waves with children on a balcony above imagined floating ice islands, frozen waterfalls and an ice bridge, labelled Glacier Crown, Frozen Sky Kingdom
Each stage opens only after the last is checked · Art of Wen, made with AI tools.

The reports proposed quarterly phases for 2027. We merged them into stages that open only when the previous one is checked. Nothing here is a promise of dates.

StageWhatGate
0 · DraftEnglish page; sandbox in JavaScript (25 checks) and Rust (36 checks)Done, December 4, 2026
1 · ReviewReaders and developers check the page and the code; findings with creditOpen now
2 · TranslationsItalian, Chinese and KoreanAfter stage 1
3 · LiteSVMBuild the Rust program and run the prepared LiteSVM test (7 checks), no networkDone, December 4–5, 2026: 7/7, 18/18, 28/28, then 30/30 with the live mint and its dated snapshot (Tab 4.4)
4 · DevnetA new empty wallet, public logs; nothing on mainnetAfter stage 3 and a public review
5 · Post-quantumFollow Solana’s own path (Winternitz Vault, the post-quantum testnet, v1 transactions); explain to holders how to move, step by stepWhen Solana offers it

The reports’ road maps, item by item

Item in the reportsVerdictWhy
Audit the current WNS implementationKept, scopedOur page reviews claims and draft code; a code audit of WNS is for its maintainers
Nullifier set, devnet testsKeptQWS-001 in JS and Rust; devnet at stage 4
Publish the specificationKeptSpecs QWS-001, -002, -003 in lab/code/qws/specs/
Escrow instead of a bare freeze; 5-of-7 quorum; timelockChangedQuorum and window kept as QWS-002; escrow only where a freeze already exists; no freeze for WEN
Integration with an identity passport; institutional pilotsLeft outNot ours to promise; identity gates are rejected for open tokens
ZK compliance proofs (PLONK), DKG oracleChangedPLONK still needs a setup; confidential transfers are disabled since June 2025; we model the state machine only
Lattice proofs, ML-DSA signaturesChangedSize budget first (QWS-003); follow Solana’s path, not a private fork
Mix layer (noise transfers)ReplacedBy the exposure window model (Tab 4.8): protection in the moment comes from fixed rules, not from extra traffic

The path built so far

  1. Fixed facts first. No mint, no freeze: read from the live chain on December 5, 2026 (check 28), not claimed.
  2. Then checks anyone can run. 25 JavaScript, 36 Rust and 30 LiteSVM checks, each refusal by its exact code, one command to repeat.
  3. Then time instead of fear. Windows exact to the slot (checks 21–23); exposure measured in slots (Tab 4.8).
  4. Then use. Payments, receipts and records whose guarantees come from public rules (Tab 7).

What a holder can do today

  • Keep your keys offline and never share a seed phrase. A quantum computer is not needed to steal a key that someone typed into a website.
  • Check any token before you trust it: Compare WEN shows who still holds powers.
  • Treat “quantum emergency, move your funds now” messages as a scam pattern. A real migration will be announced by Solana itself and can be tried on devnet first.

How we got here

Wen in an astronaut suit waves with children on a glass walkway above imagined floating castles, airships and fiery birds in the clouds, labelled Emberwild Isles, Where the Phoenixes Rise
~600 hidden characters removed · every claim sourced · Art of Wen, made with AI tools.
  1. The source: a long set of notes and conversations with several AI assistants, shared by the almanac keeper on December 4, 2026, together with the task (tabs 1–4, 4.1–4.7, 8).
  2. Clean-up: about 600 invisible characters and look-alike letters removed, so that nothing hidden reaches this page.
  3. Every claim checked against three things: the chain (read-only), the almanac’s own verified record, and primary sources (listed here).
  4. What failed the check was corrected (Tab 4.2); claims we could not find in our verified record were left out.
  5. December 4, later the same day: the two HTML reports and the draft Rust and TypeScript code were reviewed line by line (Tab 4.3), and the sandbox grew to 24 checks (Tab 4.4).
  6. December 4, evening: QWS-001 and QWS-002 rewritten in Rust as a Solana program with WEN’s fixed facts as a check (28 checks), and the exposure window added (Tab 4.8).
  7. December 4, night: an outside review was mined for what is useful. Kept: a note on one-time keys (Tab 4.8), a cross-check of our mint reader against the official SPL Token crate (33 checks), and a one-command run script for LiteSVM. Corrected: our own table said a delegate is impossible on the original token program; holders can approve one for their own account, so the row now says so. Rejected with reasons: migration by delegate burn and re-mint (Tab 3).
  8. December 4, evening: a dated note on the P-256 report and the NSA advisory, with what it means for WEN and for this model (Tab 4.9).
  9. December 4, evening: the first real run on the keeper’s computer: 33/33 Rust checks, clippy clean, the program built for the Solana VM, and 7/7 in LiteSVM (Tab 4.4).
  10. December 5, night: compute units measured per instruction; the nullifier moved to Solana’s SHA-256 system call: UseProof −91.8% CU (22,195 → 1,813), program 92,856 → 37,552 bytes, LiteSVM still 30 of 30 (Tab 4.5).
  11. December 5, night: fuzzing (6 seeded tests, hundreds of thousands of inputs) found that a threshold flag byte of 2–255 was read as “none”; fixed and rebuilt: Rust 43 of 43, LiteSVM 30 of 30, program 37,648 bytes, new fingerprint e3727821…. Post-quantum sizes confirmed with a real library (Tabs 4.4, 4.5).
  12. December 5, night: self-audit (Tab 4.10): eight of our own mistakes, each with its guard; a test that checks every number on this page against its source file; a snapshot refresh tool that never types a byte and never overwrites history.
  13. December 5, night: the whole path published for developers on dev.to and for everyone on Hashnode (both articles); the self-audit now runs on every pull request, with contribution rules in Doc Zero and Wen’s story of why (Tab 4.10).
  14. December 5, night: the live WEN mint pinned as a dated snapshot (slot 477,533,685); Rust 36 of 36; LiteSVM 30 of 30, offline on the snapshot and byte by byte against the live mint (Tab 4.4).
  15. December 5, after midnight: LiteSVM version 3 passed 28 of 28: every edge named, and CheckWen run on the live WEN mint copied from mainnet (Tab 4.4).
  16. December 4, night: a weakness found in our own LiteSVM test (any failure counted as a refusal) and fixed; version 2 passed 18 of 18 with exact error codes, twice (Tab 4.4).
  17. December 4, evening: a timeline from today to March 2027, with what answers each step and what we do not say (Tab 0).
  18. December 4, evening: one picture for every tab, with cards for X; all of them are also in Wen Media.
  19. What held became sandbox code with tests, run before publishing (Tab 4.4).
  20. The result is a draft: open, dated, and waiting for your corrections.

Example code, not audited. Never use it with real funds. Educational content, not financial, legal or investment advice. Texts CC BY 4.0, code Apache-2.0.

From Wen

Foreword to the future: why I walked this path for you

Wen in an astronaut suit waves with children in an imagined city of tree houses, rope bridges and lanterns among giant trees and waterfalls, labelled Verdant Canopy, City in the Giant Trees
Spoken by Wen, the wandering cat in space · Art of Wen, made with AI tools.

Spoken by Wen, the wandering cat in space. Not a person, not a team: the cat on the coin, speaking for the record.

What I tested and what I did

  1. I am Wen, a cat wandering between the stars. I hold no one’s key, and no one holds a key over you through me.
  2. I tested a promise that cannot be broken: no one can mint more of me, and no one can freeze you. There is no key behind those facts, so there is nothing for any computer, classical or quantum, to crack.
  3. I sent the same proof twice. The second time the program said no, by name: REPLAY. A promise used once stays used.
  4. I handed the program a fake clock. It refused. Time on the chain belongs to the chain.
  5. I watched two signatures propose a change and one honest signer stop it inside the window. A stopped change is gone, not postponed.
  6. I put my own bytes at another address. The program answered NOT_WEN. My name can be copied; my address cannot.
  7. I found a mistake in my own test before anyone asked, and fixed it. Seven of seven became eighteen of eighteen, each refusal with its exact code.
  8. I counted the fees: 5,000 lamports a signature, whatever the amount. Small payments carry the fixed part, so I wrote the formula down for anyone to check.
  9. I measured time instead of fear. A key shown for a few slots is safer than a key shown for years.
  10. I left everything open: the code, the logs, the mistakes. Anyone can repeat it with one command, and anything wrong that you find goes on the page.

My verdict

Nothing here asks you to trust me. Every line above points to a test you can run and a log you can read. What is fixed about me was fixed before anyone spoke of quantum computers, and it does not need a new key to stay fixed. What is new, the nullifier, the window, the veto, is an open draft: tested in a local Solana machine, not deployed, not audited.

Why I walked this path for you: so that when March 2027 comes, you already know what to do (nothing in a hurry), what never to do (share a seed phrase, approve a “migration”), and where to check (the address, not the name).

An outside review, kept for the record

On the night of December 4, 2026 an outside AI assistant reviewed these pages. We keep what it said, and what we say back, so the history stays honest:

What the review saidOur answer
“The nullifier is computed by the program from the signer, so no one can take someone else’s.”Correct. LiteSVM check 05 shows it.
“You found and fixed your own test (7/7 → 18/18).”Correct; the log and the reason are in Tab 4.4.
“Security through the absence of power: no mint, no freeze.”Correct, and it is the chain’s fact, not our design.
“Production-grade; better than 99% of the industry.”Not accepted. It is an open draft, not audited, not deployed, and the 99% cannot be measured.
“Publish the QWS-003 size test in the repository.”Already there: lab/code/qws/pqc-size-budget.mjs, run by npm run test:qws.
“Next: devnet, and a plain-words guide for holders.”Agreed; both are the next gates (Tab 8). The guide waits for Anza’s migration guides.

— Wen. December 4, 2026.