Quantum Wen SaveQ
English ยท Italiano ยท ไธญๆ ยท ํ๊ตญ์ด
- 0 ยท Roadmap
- 1 ยท Receipts & warranty
- 2 ยท Creator royalties
- 3 ยท B2B invoices
- 4 ยท Payments bridge
- 5 ยท Simulator
- 6 ยท Devnet: repeat it
- 7 ยท Counter
- 7.1 ยท Safety
- โ ยท Trust chain
- โ ยท Benefits & use
- ✎ ยท Ten walkthroughs
- โถ ยท Videos
- ? ยท Reader findings
- Q ยท Quantum Wen Save
- 8 ยท Shops: plugin & skill
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

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.
- August 13, 2024 done
NIST publishes the first post-quantum standards: FIPS 203, 204, 205 (Tab 1). - January 2025 done
Solana developers publish the Winternitz Vault: one-time hash-based signatures, opt-in (Tab 2). - June 2025 done
Solana verifies P-256 signatures natively (SIMD-0075), used by passkey wallets (Tab 4.9). - October 11, 2026 done
A prototype Solana cluster runs with post-quantum signatures at 18.5k TPS (Solana Foundation). - 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). - 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. - 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). - End of 2027 target date
Target for post-quantum consensus (Quantumglow) (Solana Foundation).
The technology row, as one road map
| Lane | 2020 | 2024 | 2025 | Oct 2026 | Dec 2026 | Today, Dec 4 | Mar 31, 2027 | End of 2027 | Next |
|---|---|---|---|---|---|---|---|---|---|
| Standards | NIST SP 800-208: LMS, XMSS | NIST FIPS 203 ยท 204 ยท 205 | NSA: speed up the move | ||||||
| Solana | Winternitz Vault (Jan)P-256 for passkeys, SIMD-0075 (Jun) | PQ test cluster, 18.5k TPS | Dates set (Dec 3) | Recovery keys on mainnet | PQ consensus, Quantumglow | ||||
| WEN | No 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/18 | Devnet from an empty walletHolder guide after Anza’s guidesItalian, Chinese, Korean |
How usefulness flows
How this model answers each step
| Step | What answers it here | Status |
|---|---|---|
| Holders register recovery keys before March 31, 2027 | Exposure 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 switch | WEN’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 busy | QWS-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 key | QWS-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 switch | E2 (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
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).- A devnet run from a new, empty wallet, with public logs (stage 4).
- A plain-words guide for WEN holders, written only after Anza publishes its migration guides, and checked against them.
- 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.
Questions people ask
The quantum cliff: questions people search, answered with checks
People search for a way off a “quantum cliff”: the day a quantum computer could break today’s signatures. Here are the questions asked most, each answered in two or three sentences and pointing to the part of this page that proves it. No prices, no forecasts, no hype.
Will quantum computers break Solana?
A large, error-corrected quantum computer running Shor’s algorithm could derive a private key from a public key for elliptic-curve signatures, including the Ed25519 signatures Solana uses. No such machine exists today, and we make no forecast of when one might (Tab 1). Solana has set March 31, 2027 as the target for post-quantum asset security on mainnet, through recovery keys, and the end of 2027 for post-quantum consensus (Tab 2).
Is there a date for the quantum cliff (Q-Day)?
No. There is no public date for the day a quantum computer could break today’s signatures, and no public machine that can do it. The dates that exist are dates for defence: NIST’s post-quantum standards (August 13, 2024), Solana’s March 31, 2027 target for recovery keys, and the end of 2027 for post-quantum consensus (Tab 0).
Is WEN quantum-safe?
The token’s own facts are: WEN has no mint authority and no freeze authority, on the original SPL Token program. No key stands behind those facts, so no computer, classical or quantum, can mint more WEN or freeze a holder. This was read from the live chain on December 5, 2026 (Tab 3). What can be exposed is each holder’s own wallet key (Tab 4.8).
How do I protect my crypto from quantum computers?
Nothing in a hurry: Solana says no action is needed today. When your own wallet offers a post-quantum recovery key, set it up there, yourself. Never share a seed phrase and never approve a “migration” for anyone. Check addresses, not names. Security here is measured in time: a key shown for a few slots is safer than a key shown for years (Tab 4.8).
Do I need to migrate my tokens or switch to a quantum-resistant coin?
No migration of WEN is possible or needed: with no mint or freeze authority, nobody can reissue or move it for you (Tab 3). A different coin does not protect a key that is already exposed, and a “quantum-resistant” label is a claim to check, not a fact. Messages that urge an urgent move match a known scam pattern; a real change will be announced by Solana itself and can be tried on devnet first (Tab 8).
What are Falcon-512, ML-DSA-44 and SLH-DSA-128s?
They are the three post-quantum signature schemes Solana named for recovery keys. ML-DSA is NIST FIPS 204 and SLH-DSA is FIPS 205; Falcon is being standardised as FN-DSA (FIPS 206). Measured with a real library: Falcon-512 has an 897-byte key and a 666-byte padded signature, ML-DSA-44 1,312 and 2,420 bytes, SLH-DSA-128s 32 and 7,856 bytes. Only Falcon’s signature fits a classic 1,232-byte transaction; SLH-DSA-128s fits no single transaction (Tab 4.4).
What is Quantum Wen Save, and is it a product?
An open model: what is fact, what is fixed and what can be built around WEN before post-quantum keys arrive, with a small Solana program tested in a local virtual machine: 43 Rust checks, 30 of 30 in LiteSVM, fuzzing and measured compute units (Tab 4.4, Tab 4.5). It is an open draft, not audited and not deployed, not a product and not a standard.
How can I check all this myself?
Clone the repository and run lab/code/qws-rs/scripts/run_litesvm_checks.sh: Rust checks, a build for the Solana VM, LiteSVM, compute units with a run fingerprint, and a test that checks every number on this page against its source file. No keys, no network after the downloads. The same build should print the same fingerprint on any computer (Tab 4.10).
Tab 1
1 ยท Quantum cryptography: what is fact

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:
| Claim | Status | Why |
|---|---|---|
| Quantum risk is about signatures, not transaction speed | Fact | Shor targets the public-key layer. |
| Addresses with a visible public key are the first target | Fact | In 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 districts | Hypothesis | Not a property of cryptography. Access to quantum networks may be local; that is policy, not math. |
| Human trading will disappear; new scams will appear | Out of scope | Forecasts about markets. We do not publish forecasts. |
Tab 2
2 ยท Solana and post-quantum cryptography

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

The source notes described WEN as a Token-2022 token with transfer hooks and a permanent delegate. That is not what the chain says.
| Link | What is true | Check it |
|---|---|---|
| WEN mint program | Classic SPL Token (Tokenkegโฆ), not Token-2022 | Compare WEN, read live |
| Mint authority | None: supply can never grow | Compare WEN |
| Freeze authority | None: no one can freeze a holder | Compare WEN |
| Hooks, fees, delegates | Impossible in the classic program | Reading any token |
| Burn | 271 billion unclaimed WEN, over 27% of supply, burned on January 29, 2024 (not “40.7%”) | Almanac record |
| WNS | An 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 Token | Almanac record, Stage 2 |
| JUP | Jupiter’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 shield | Decrypt |
| SOL | Owns the signature layer every account shares; post-quantum work is at testnet stage | Tab 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

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.
| Fact | What it gives | Quantum angle | Check |
|---|---|---|---|
| No mint authority | No new WEN, ever | There is no key to steal or to break | MintAuthorityPresent is a breach |
| No freeze authority | No one can freeze a holder | Same: nothing to sign with | FreezeAuthorityPresent is a breach |
| One fixed address | A copy with the same name fails at once; an “upgraded WEN” would be a new, visible token | Identity does not depend on a signature | NotWenAddress |
| Supply can only go down | Every burn is one-way and checkable; each burn adds to the record and nothing can undo it | A record, not a promise | SupplyGrew between two snapshots is a breach |
| Original SPL Token program | No 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 it | Changed only by the whole network: the 2026 rewrite (p-token) kept the same address and layouts, and WEN’s facts stayed the same | WrongProgram |
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):
| Field | Value read |
|---|---|
| Mainnet slot | 477,517,132 |
| Owner | Original SPL Token program (Tokenkegโฆ) |
| Size | 82 bytes, the standard mint layout |
| Mint authority | None |
| Freeze authority | None |
| Supply | 72,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

The source notes proposed four pools. We kept the names and checked each one.
| Pool | Idea | What we did |
|---|---|---|
| A ยท QWS-A | History chain WEN โ JUP โ SOL | Kept as a dated, sourced chain (Tab 2.1). Nothing hidden: every link points to its source. |
| B ยท Quantum Wen | A base model of safety | Rewritten 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. |
| B2W | Custody of a fact | A 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). |
| E2 | The lamport economy | Fees 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

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

We read the model from the end, under strict critique. First the eight weak points the notes found themselves, then what we add.
| # | Weak point | Our verdict |
|---|---|---|
| 1 | Replay of a valid proof | Real. Fixed in sandbox by a nullifier set (Tab 4.4, QWS-001). |
| 2 | One delegate key is a single point of failure | Real, and worse than written: it is a power over every holder. We reject the delegate for WEN-like tokens (Tab 4.7). |
| 3 | Timing patterns reveal who pays whom | Real. Instead of “noise transfers” (more fees, more complexity) we model the exposure window of a key (Tab 4.8). |
| 4 | Elliptic-curve proofs are not quantum-safe | Partly 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. |
| 5 | The list oracle can be wrong or late | Real. Sandbox: t-of-n approvals plus a public challenge window (QWS-002). |
| 6 | Freeze and transfer can race | Real for any freeze design. Escrow instead of freeze is better, but only for systems that already have a freeze. |
| 7 | Groth16 needs a trusted setup | Real. Correction: PLONK and Marlin also use a (universal) setup; transparent options are hash-based, such as STARKs. |
| 8 | A wrong freeze is a loss for the user | Real. Another reason not to give anyone that power. |
What we add to the review
| Claim in the notes | Status | Why |
|---|---|---|
| “WEN uses WNS, hooks and a permanent delegate” | Corrected | WEN is a classic SPL Token with no authorities (Tab 2.1). |
| “Confidential transfers are ready” | Corrected | Disabled since June 2025 after a forged-proof bug (Tab 2). |
| “40.7% burned” | Corrected | 271 billion, over 27% of supply, per our record. |
| “0% commission on the protocol level” | Corrected | Solana fees are small but never zero (Tab 4.5). |
| “Threshold signatures on Module-LWE in one program” | Corrected | Research stage; the notes themselves call it a stub. Our sandbox models only the state machine. |
| Hidden characters in the source text | Corrected | About 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

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
| Where | Finding | What we did |
|---|---|---|
| QWS-001 Rust | The registry capacity was never set, so every proof would be refused as “registry full” | Capacity required at creation; regression test |
| QWS-001 Rust | Account space forgot a field; a 32 KB array would be read onto the stack and created through a CPI, both beyond Solana limits | Spec: zero-copy account or an SPL concurrent Merkle tree |
| QWS-001 Rust | The register instruction accepted any signer, so a stranger could pre-register someone’s nullifier and block the payment | Verify and consume in one step; regression test |
| QWS-002 Rust | The signature check was a stub that always returned true | A verifier is required; forged approvals do not count |
| QWS-002 Rust | Duplicate shares from one node counted toward the quorum; any account could propose | Distinct signers only; proposer must be a signer |
| QWS-002 Rust | The “challenge window” had no way to challenge, only a delay | Veto inside the window |
| QWS-002 Rust | The post-quantum public key was stored in 32 bytes; an ML-DSA-44 key is 1,312 bytes | Size budget test (QWS-003) |
| PQC crate | A C library (PQClean) cannot run inside a Solana program, and a bad input would crash it instead of returning false | Out of scope until audited on-chain libraries exist |
| Poseidon WASM | The conversion functions were left as unimplemented!(), and the chosen crate does not match the field types | Sandbox uses SHA-256 with length prefixes |
| TypeScript test | The challenge-window test passes even when the window does not stop finalization: its own failure message contains the expected error name | Demonstrated 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

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.
| File | What it models |
|---|---|
b2w-fact-custody.mjs | Reads a mint: what is fixed forever, and who still holds a power |
nullifier.mjs | QWS-001: a one-time proof is verified and consumed in one step; replay refused |
threshold-update.mjs | QWS-002: t-of-n checked approvals, a public challenge window, veto |
pqc-size-budget.mjs | QWS-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.mjs | Record-keeping: a balanced, hash-linked journal and exact invoice matching |
e2-fee-model.mjs | E2: 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.
| Target | Inputs | Result |
|---|---|---|
82-byte mint reader vs the official spl-token reader | 200,000 random mints, tags and flags biased to edge values | Both readers agreed on every one (3,249 read, 196,751 refused) |
| Wrong lengths | Every length from 0 to 299 except 82 | All refused |
| The live WEN mint, corrupted | 100,000 copies with 1–5 random bytes changed | CheckWen passes exactly when the tags and the initialized flag still say “no authority, initialized” |
| Registry layout | 100,000 random buffers and headers | Loaded only when magic, size and count are consistent |
| Registry behaviour | 50,000 operations against a simple model | Replay, full and accept always as the model says; entries always sorted |
| Threshold state | 100,000 random states | Found 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.
| Scheme | Public key (bytes) | Signature (bytes) | QWS-003 verdict |
|---|---|---|---|
| Falcon-512, compressed | 897 | 650–661 (varies) | Signature alone fits a classic transaction |
| Falcon-512, padded | 897 | 666 (fixed) | With its key only in the 4,096-byte v1 format |
| ML-DSA-44 | 1,312 | 2,420 | Only in the v1 format, key included |
| SLH-DSA-SHA2-128s | 32 | 7,856 | No 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
| Check | What was tried | Result | What it proves |
|---|---|---|---|
| 15 | Registry initialised again | BAD_REGISTRY (0x3) | A ledger of used proofs cannot be reset |
| 16 | Rule state initialised again | AccountAlreadyInitialized | Agreed rules cannot be replaced by re-creating them |
| 17 | Full registry, a third proof | FULL (0x2) | Full means no, never forgetting |
| 18 | First proof, registry full | REPLAY (0x1) | Being full does not reopen old proofs |
| 19 | Proposal | slot in the log | The exact activation slot is public |
| 20 | Veto by a key outside the list | NOT_SIGNER (0xa) | A stranger cannot block a change |
| 21 | Finalize one slot early | WINDOW_OPEN (0xe) | No change arrives early |
| 22 | Veto at the exact end | WINDOW_CLOSED (0xf) | No change is blocked late |
| 23 | Finalize at the exact end | accepted | It lands at the slot announced |
| 28 | Live WEN mint from mainnet | accepted | No 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

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 lamports | Network fee, one signature | A 2.5% percentage fee |
|---|---|---|
| 1,000,000 (0.001 SOL) | 5,000 lamports = 0.5% of the amount | 25,000 lamports = 2.5% |
| 1,000,000,000 (1 SOL) | 5,000 lamports = 0.0005% of the amount | 25,000,000 lamports = 2.5% |
| 1,000,000,000,000 (1,000 SOL) | 5,000 lamports = 0.0000005% of the amount | 25,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).
| Instruction | 1. Software SHA-256 (CU) | 2. SHA-256 system call (CU) | 3. Current: + threshold flag check (CU) |
|---|---|---|---|
| InitRegistry (capacity 64) | 533 | 533 | 533 |
| UseProof (64 inserts, median) | 22,195 | 1,813 | 1,813 |
| UseProof, refused replay | 21,431 | 1,050 | 1,050 |
| InitThreshold (3 of 9) | 1,024 | 1,024 | 1,024 |
| Propose (5 signatures) | 2,861 | 2,861 | 2,867 |
| Veto | 1,399 | 1,399 | 1,412 |
| Finalize | 1,136 | 1,136 | 1,149 |
| Finalize, refused inside the window | 917 | 917 | 930 |
| CheckWen (dated snapshot) | 1,062 | 1,062 | 1,062 |
| Program size | 92,856 bytes | 37,552 bytes | 37,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) andcu-report-2026-12-05-current.json(build 3, every row).
Tab 4.6
4.6 ยท Global safety: boundaries for everyone

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

| Element | Decision | Why |
|---|---|---|
| Nullifier pattern for any one-time proof | Keep | Cheap, exact, testable. |
| t-of-n approvals with a challenge window for any shared list | Keep | No single key decides; the public can see a change coming. |
| Escrow instead of freeze | Keep, only for systems that already have a freeze | Better than a bare freeze; not a reason to add one. |
| Permanent delegate as a “quantum switch” | Reject for WEN-like tokens | It is a power over every holder and the most valuable target in a quantum future. |
| Transfer hook that gates transfers by identity | Reject for open tokens | Turns a public token into a permissioned one. |
| Noise transfers against timing analysis | Replaced | By the exposure window (Tab 4.8): protect the moment with fixed rules, not with extra traffic and fees. |
| “0% commission” as a slogan | Reject | Not true on Solana; we say “a small fixed fee in lamports”. |
| Follow Solana’s own post-quantum path | Keep | When 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

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
- Is the key visible before spending? Address = public key: yes. Hash-committed one-time key: no.
- 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.
- Compare it with the time an attack would need. That time is unknown today, so it stays a parameter, never a forecast.
- Shrink the exposure where you can: when Solana offers post-quantum accounts, moving to them turns a long window into a short one.
- 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

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
| Part | Status | Why |
|---|---|---|
| WEN’s fixed facts (Tab 3) | Not affected | No 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 first | A 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 hash | Holds | Rests on a hash function, not on a curve, and is shown only until finality. Never reuse it. |
| QWS-001 nullifier | Holds | Built on SHA-256; no curve involved. |
| QWS-002 threshold | Weaker | Approvals 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
- 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.
- Check addresses, not names, and never share a seed phrase or approve a “migration” for anyone.
- 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.
- 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

“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
| When | What we got wrong | What guards it now |
|---|---|---|
| Dec 4 | LiteSVM 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–5 | A 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 5 | The first pinned snapshot was stored without lamports. | The lamports were recorded from the next read; the refresh tool stores them every time. |
| Dec 5 | The 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 5 | The 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 5 | A 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 5 | The 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 5 | A 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.
| Guard | How it holds |
|---|---|
| Every refusal in LiteSVM names its exact error code | Automatic: the test |
| Before a push, check that the branch’s pull request is not already merged | Rule |
| Snapshots store lamports, and the slot from the same response | Automatic: the refresh tool |
| Never type bytes; generate them, with a length check | Rule, and length checks in the tests |
| State bytes outside their allowed values are refused | Automatic: fuzzing on every build |
| No claim of an audit, a deployment or readiness for production | Automatic: the page test |
| Every number on this page equals its source file | Automatic: the page test, on every pull request |
| A log names its build: test count and fingerprint | Automatic: 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)
| Proposed | What we found | Status |
|---|---|---|
| Pin a dated snapshot, refreshable by a script | Right 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, getSlot | The 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 snapshot | We 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 script | The 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 bytes | Only 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,132 | True 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

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:
- Balance. Debits equal credits in every entry, or the entry is refused.
- 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.
- 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
| Who | What changes |
|---|---|
| A worker sending money home | A cost that does not grow with the amount sent |
| A small shop | No percentage per sale on the network side; a receipt the customer can verify |
| An accountant | Entries that always balance and a history that cannot be edited quietly |
| An auditor | Every claim and every line can be re-computed, not taken on trust |
| Everyone | The 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 matters | What is guaranteed | Proved by |
|---|---|---|
| Payments and receipts | “Used once”: replay refused; a full book says no instead of forgetting; nobody can reset the book | Checks 03, 15, 17, 18 |
| Agreements with a date | A change never comes early, cannot be blocked late, and lands at the slot it announced | Checks 19, 21–23 |
| Shared rules | Only listed signers act; only real signatures count; no stranger’s veto | Checks 08, 13, 20 |
| Accounting | Supply read from the live chain, not from a page that copies it | Check 28 |
Full report: QWS v3: the edges and the live WEN mint.
Tab 8
8 ยท Road map, with gates instead of dates

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.
| Stage | What | Gate |
|---|---|---|
| 0 ยท Draft | English page; sandbox in JavaScript (25 checks) and Rust (36 checks) | Done, December 4, 2026 |
| 1 ยท Review | Readers and developers check the page and the code; findings with credit | Open now |
| 2 ยท Translations | Italian, Chinese and Korean | After stage 1 |
| 3 ยท LiteSVM | Build the Rust program and run the prepared LiteSVM test (7 checks), no network | Done, 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 ยท Devnet | A new empty wallet, public logs; nothing on mainnet | After stage 3 and a public review |
| 5 ยท Post-quantum | Follow Solana’s own path (Winternitz Vault, the post-quantum testnet, v1 transactions); explain to holders how to move, step by step | When Solana offers it |
The reports’ road maps, item by item
| Item in the reports | Verdict | Why |
|---|---|---|
| Audit the current WNS implementation | Kept, scoped | Our page reviews claims and draft code; a code audit of WNS is for its maintainers |
| Nullifier set, devnet tests | Kept | QWS-001 in JS and Rust; devnet at stage 4 |
| Publish the specification | Kept | Specs QWS-001, -002, -003 in lab/code/qws/specs/ |
| Escrow instead of a bare freeze; 5-of-7 quorum; timelock | Changed | Quorum and window kept as QWS-002; escrow only where a freeze already exists; no freeze for WEN |
| Integration with an identity passport; institutional pilots | Left out | Not ours to promise; identity gates are rejected for open tokens |
| ZK compliance proofs (PLONK), DKG oracle | Changed | PLONK still needs a setup; confidential transfers are disabled since June 2025; we model the state machine only |
| Lattice proofs, ML-DSA signatures | Changed | Size budget first (QWS-003); follow Solana’s path, not a private fork |
| Mix layer (noise transfers) | Replaced | By the exposure window model (Tab 4.8): protection in the moment comes from fixed rules, not from extra traffic |
The path built so far
- Fixed facts first. No mint, no freeze: read from the live chain on December 5, 2026 (check 28), not claimed.
- Then checks anyone can run. 25 JavaScript, 36 Rust and 30 LiteSVM checks, each refusal by its exact code, one command to repeat.
- Then time instead of fear. Windows exact to the slot (checks 21–23); exposure measured in slots (Tab 4.8).
- 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

- 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).
- Clean-up: about 600 invisible characters and look-alike letters removed, so that nothing hidden reaches this page.
- Every claim checked against three things: the chain (read-only), the almanac’s own verified record, and primary sources (listed here).
- What failed the check was corrected (Tab 4.2); claims we could not find in our verified record were left out.
- 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).
- 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).
- 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).
- 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).
- 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).
- 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).
- 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). - 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.
- 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).
- 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).
- 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).
- 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).
- December 4, evening: a timeline from today to March 2027, with what answers each step and what we do not say (Tab 0).
- December 4, evening: one picture for every tab, with cards for X; all of them are also in Wen Media.
- What held became sandbox code with tests, run before publishing (Tab 4.4).
- 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

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
- 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.
- 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.
- I sent the same proof twice. The second time the program said no, by name: REPLAY. A promise used once stays used.
- I handed the program a fake clock. It refused. Time on the chain belongs to the chain.
- I watched two signatures propose a change and one honest signer stop it inside the window. A stopped change is gone, not postponed.
- I put my own bytes at another address. The program answered NOT_WEN. My name can be copied; my address cannot.
- 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.
- 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.
- I measured time instead of fear. A key shown for a few slots is safer than a key shown for years.
- 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 said | Our 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.