Why now
Solana, Ethereum and Bitcoin wallets are elliptic-curve keys (ed25519 on Solana, secp256k1 on the other two). Their safety rests on one fact: from a public key, nobody can work out the private key. Shor's algorithm on a large enough quantum computer does exactly that. Whatever the date, the keys at risk first are the ones whose public key is already visible.
On Solana that is every wallet: the address is the public key. On Ethereum a key becomes visible with the wallet's first signed transaction; on Bitcoin with the first spend (Taproot addresses carry it from the start). In October 2026 an Ethereum Foundation researcher asked holders to start planning a move to keys that were never exposed, in case AI or a quantum computer finds a shortcut against elliptic curves.
Hash functions are a different story. The best known quantum attack on a hash, Grover's search, takes the square root of the work: a 256-bit hash still stands at about 2128 steps. A signature built only from SHA-256 does not care what happens to elliptic curves.
Your keys
Your browser makes 24 words from 256 random bits (the BIP-39 word list). With an optional passphrase they go through PBKDF2-SHA512 (2,048 rounds, the BIP-39 standard) and HKDF-SHA256 into a secret seed and a public seed. No wallet signature is part of it, so a wallet key broken tomorrow tells an attacker nothing about your vault.
From the two seeds come vault key #0, #1, #2, … Each is one Winternitz one-time key (WOTS, w = 16, SHA-256): 67 secret values, each the start of a hash chain 15 steps long. The ends of the 67 chains, with the public seed, hash to the key's key_hash.
To sign a 32-byte message, its 64 hex digits plus a 3-digit checksum pick how far down each chain the signature stops (digit d means d steps). Anyone can walk each chain the remaining 15 − d steps and must land on the public key. The checksum stops a forger from walking a chain further: making one digit bigger makes the checksum smaller. Signing twice with one key shows two positions on many chains, which is why every key is used once.
The keys exist only in the tab while it is open. If you ask, the page keeps your words on this device sealed with your PIN: PBKDF2-SHA256 with 600,000 rounds into an AES-256-GCM key. The server never receives the words, the seeds or the keys.
The vault chain
Vault #i lives at the program address program_address("vault", [1], key_hash_i): a plain Solana account with no data and no private key. A deposit is any transfer to it; nothing is registered on chain. A withdrawal signed by key #i pays the recipient and moves everything else of that asset to vault #i+1 in the same transaction, then leaves a tombstone that names #i+1. The page finds your live vault by following tombstones from vault #0.
Anything that lands at a retired address later (an old deposit link, the SOL left behind by a token withdrawal) can be moved by anyone, but only into the vault its tombstone names. The page shows such funds and moves them with one click.
The program
A native Solana program (no framework), program id 7jYrjCUJHCFMQ6EAFet9ekudxy98mFKNEheFNhKcwEXb. Status on mainnet: reading…. Its whole state is three kinds of accounts:
| Account | Seeds | What it is |
|---|---|---|
| vault | "vault", [1], key_hash | holds SOL and owns token accounts; no data |
| tomb | "tomb", key_hash | 80 bytes, permanent: the key is used, and which key comes next |
| buffer | "buf", payer, tag | 2,216 bytes: carries the 2,176-byte signature across transactions; refunded at withdrawal |
The message a vault key signs, rebuilt by the program byte for byte:
SHA-256( "pqvault/spend/v1" ‖ program ‖ vault ‖ recipient ‖ mint ‖ amount (u64 LE) ‖ next_key_hash )The mint is 32 zero bytes for SOL. An amount of 264 − 1 means everything the vault holds when the withdrawal lands. The program walks the 67 chains inside the buffer, hashes the result to a key hash and requires that it derives this vault's address. A different recipient, amount, mint, next key or vault gives a different address, and the program refuses.
No ed25519 key can move vault funds. The fee payer signs every transaction but owns nothing. The only other power over the program is its upgrade authority; after deployment it is to be removed so the rules cannot change, and the status above reads it from chain.
Instructions
| # | Name | What it does |
|---|---|---|
| 0 | init_buffer | creates the payer's buffer for one signature |
| 1 | write_buffer | writes a chunk of the 2,176-byte signature |
| 2 | close_buffer | gives an abandoned buffer's rent back |
| 3 | withdraw_sol | checks the signature, writes the tomb, pays SOL, moves the rest to the next vault |
| 4 | withdraw_token | the same for one token account (SPL Token or Token-2022) |
| 5 | forward_sol | moves SOL at a retired vault to the vault its tomb names; no signer needed |
| 6 | forward_token | the same for tokens |
A withdrawal is three transactions: two write the signature into the buffer, the third writes the last chunk and runs the withdrawal. They can all be retried: a failed withdrawal changes nothing, and the page replays the same signed message instead of signing a new one.
Errors
| Code | Name | When |
|---|---|---|
| 4 | BadSignature | the signature does not open this vault for this exact payment |
| 5 | Spent | the key already has a tombstone |
| 6 | NextSpent | the next key was already used |
| 7 | NextIsSelf | the next key is this key |
| 8 | OverBalance | more than the vault holds |
| 9 | RecipientRent | SOL to a new account below Solana's rent minimum |
| 10 | DustRest | the rest would leave an empty next vault below the rent minimum |
| 11–16 | account checks | wrong recipient, mint, token program, token account, missing or wrong tomb |
Costs
- Network fees for three transactions (5,000 lamports per signature, plus a priority fee).
- 1,056,640 lamports (about 0.00106 SOL) per withdrawal, kept forever as the tombstone's rent.
- The buffer's 11,907,520 lamports are paid at the start of a withdrawal and refunded at its end.
- Compute: the withdrawal transaction runs about 36,000 units plus 161 per SHA-256 call; one signature needs 45 to 990 calls (usually 360 to 680), so at most about 195,000 units for SOL.
- Sizes: 1,232 / 694–1,111 / 1,232 bytes for the three transactions.
All of this was measured on a local Solana machine (LiteSVM) running the built program at its real id: 88 checks, 0 failures. The run, line by line.
Tokens
SOL, SPL tokens and Token-2022 tokens can be held and withdrawn, transfer-fee tokens included (the recipient receives the amount minus the token's fee). Not movable out: tokens with a transfer hook, non-transferable tokens, frozen accounts and recipients whose token account requires memos. The page checks these before you sign.
Exposure check
The check reads public data only: a Solana node for Solana, a public Ethereum node for the transaction count, balance and code, and mempool.space for Bitcoin. Rules: a Solana address on the ed25519 curve is exposed; one off the curve is a program address with no private key. An Ethereum address is exposed once its transaction count is above zero; contracts have no key of their own. A Bitcoin Taproot address is always exposed, other address types once they have spent. Prices come from CoinGecko. The site stores only a count of checks.
Verify it yourself
The verify page takes a key hash, reads its tombstone from chain and the signed payment, and re-runs everything in your browser: the message, the 67 chains, the key hash and the vault address. The same code runs in the page and on the server: one file, /js/pq.js, built from @noble/hashes, @noble/curves and @scure/bip39 (MIT, licences).