PQS DEVNET
PQS · Post-Quantum SolanaQ-Day, simulated

This is the
private key.

loading…
Ed25519 · owner of the vault
Published on purpose. Import it in any wallet. It's what a quantum computer would hand an attacker.
It owns a vault holding
—SOL

Every Solana wallet is one key. This vault needs two signatures: the key above, and a one-time hash-based signature that no quantum algorithm can forge. Take the SOL if you can.

1 · The key

A normal Solana wallet.

The key above opens an ordinary wallet. Import it in Phantom, it's yours. That wallet holds nothing worth taking.

2 · The vault

An address with no key at all.

The SOL sits here. It's a program address: no private key exists for it, nobody holds it.

—
Track it live ↗
3 · The lock

Two signatures. You have one.

To move SOL out, the program wants the key above and a one-time hash signature whose secret was erased. A quantum computer can rebuild any Solana key from its address. It can't reverse a hash. That's what post-quantum means.

—attempts rejected on-chain
—open since
0attacks run from this page
—vault address
pqs attack console · devnet
30 hash chains · each one must land exactly on the vault's public key
01 · Why it holds

One lock is already broken.
The other one is math.

On Solana your address is your public key. Shor's algorithm, on a large enough quantum computer, turns that public key back into a private key. We skipped the wait and published it. What's left is a Winternitz signature over Keccak: to forge it you have to invert a hash, and no quantum algorithm does that.

BROKEN · PUBLISHED ABOVE

Lock 1 · your wallet

Ed25519, the curve behind every Solana address. Phantom, Solflare, Ledger. Nothing changes for you here.

math
elliptic-curve discrete log
quantum
broken by Shor
here
key public, on purpose
HOLDS

Lock 2 · one-time hash signature

WOTS (Winternitz) with w = 256 over Keccak-256, 30 chains, 840 bytes. Every key signs exactly one message, then the vault moves on.

math
preimage of Keccak-256 (224 bits)
quantum
Grover only: ~112 bits
here
one-time secret destroyed
A

No backdoor for us

The bounty vault's one-time secret was generated in memory and wiped. Nobody can produce its signature. Not even us.

B

Anyone can add to it

The vault is a program address, not a wallet. Anyone can send SOL in. Only the hash signature can take it out. Watch it live on-chain.

C

Then, no upgrade

The build hash is published next to the code so anyone can check it. Once the bounty has held, the upgrade authority gets burned and the program can never change.

02 · For your SOL

Every key signs once.
Then it's gone.

A PQS vault is just an address derived from your wallet and a one-time key. Deposit with a normal transfer. When you spend, the program checks both signatures, sends the amount out and rolls the rest into your next vault, in one transaction. One 32-byte backup covers every key you will ever use.

vault 010.00key burned
spend 1 SOL→wallet sig + WOTS #0
vault 19.00key burned
spend 2 SOL→wallet sig + WOTS #1
vault 2 · live7.00fresh key
1,193 B

One transaction

A full spend, both signatures included, fits in 1,193 of Solana's 1,232 bytes. No splitting, no multi-step dance.

0 forks

Works today

No new syscall, no runtime change. A normal program on the Keccak syscall Solana already has.

grief-proof

Can't be forced to reuse a key

Nobody can make a signed spend fail with dust or front-running. Reusing a one-time key is the one mistake WOTS can't survive.

03 · Bunker mode

Keep staking.
Lock the stake post-quantum.

Staked SOL is where the real money sits. In bunker mode both authorities of a stake account, staker and withdrawer, belong to PQS. Rewards keep flowing. Nothing moves without both signatures.

  • 01A normal stake account, delegated to any validator.
  • 02Staker and withdrawer are PQS one-time keys, per stake account.
  • 03Your wallet alone can't withdraw, split or re-delegate. The stake program refuses it.
  • 04Delegate, deactivate, withdraw: wallet + hash signature, then both authorities rotate to the next key in the same instruction.
withdraw with the wallet onlyrefused
split with the wallet onlyrefused
re-delegate with the wallet onlyrefused
replay key #krefused
wallet + WOTS #kok → key #k+1
withdraw tx (v0 + lookup table)1,211 / 1,232 B
04 · Spec

Small enough to audit
in an afternoon.

HashKeccak-256 truncated to 224 bits, Solana keccak syscall
Winternitzw = 256 · 28 message chains + 2 checksum chains · 840-byte signature
Chain stepF(P, i, j, x) = keccak(P ‖ i ‖ j ‖ x)[..28], P = owner address (WOTS+ / XMSS style, RFC 8391)
Public keykeccak(pk₀ ‖ … ‖ pk₂₉), used as a PDA seed. No state accounts.
Signed messagekeccak("PQS-v1" ‖ program ‖ vault ‖ amount ‖ destination ‖ next vault)
InstructionsSpend · StakeDelegate · StakeDeactivate · StakeWithdraw · ComputePad
Program—
random forgeries rejected1,000 / 1,000
valid signatures accepted200 / 200
wrong owner · wrong amount · replayrejected
dust grief · below-rent spendcan't block
bunker: wallet-only withdraw / splitrefused
Rust ↔ TypeScript instructionsbyte-identical
independent review findingsall fixed
05 · Status

What's real today.

DONE

Vault + bunker program

Rust, open source, MIT. TypeScript SDK and CLI.

DONE

Review + tests

Independent review, every finding fixed with its own regression test.

NOW

Mainnet + public bounty

Program live on mainnet. Owner key published. Bounty vault open to anyone.

NEXT

Bigger bounty → authority revoked

The bounty grows. Upgrade authority burned. Then the app.

Research code. The bounty is the test. Not audited. Don't put SOL you can't lose in a PQS vault yet.