Security
Making Rooq post-quantum
Private trades have to stay private for decades. Here's how we're moving Rooq to post-quantum cryptography, and in what order.
5 min read

A private trade has to stay private long after it closes. A trade's size, side and entry price matter to the person who placed it years later, and everything Rooq writes to a chain stays there for good. That's why post-quantum security matters to a privacy protocol earlier than it matters to almost anything else.
Rooq is moving to post-quantum cryptography. This post covers what we're building, why it's in this order, and what you'll see as it ships.
| What changes | Standard | Status | |
|---|---|---|---|
| 1 | Encrypted notes and position records | X-Wing: ML-KEM-768 (FIPS 203) with X25519 | In design |
| 2 | How account secrets are created | Passkey PRF or a random seed, never a public key | Passkeys work today; the move tool is in design |
| 3 | The proofs that move your money | Hash-based proofs (Spartan and WHIR) | Prototype next |
| 4 | Deposit and withdrawal signatures | Post-quantum smart accounts (Falcon, ML-DSA) | As each chain supports them |
The deadline is already set
NIST's transition guidance (IR 8547) deprecates elliptic-curve key exchange after 2030 and disallows it after 2035, whatever the key size. Google estimates that breaking 256-bit elliptic curves would take fewer than 1,200 logical qubits, and has set its own migration deadline for 2029. The web has already moved: Chrome, Cloudflare and OpenSSH negotiate hybrid post-quantum keys by default.
For a privacy protocol the risk runs backwards in time. Encrypted data published today can be stored and opened later, once a large enough quantum computer exists. So the work starts with whatever is already public.
1. Notes sealed with a hybrid post-quantum key
Every note and position record on Rooq carries an encrypted payload so its owner can find and read it: the amount, and for a position the market, side, size, entry and margin. Today that payload is encrypted with elliptic-curve keys on the Grumpkin curve, and our circuits check that encryption is done correctly.
We're adding a second, post-quantum layer. Each note's key will also be sealed with X-Wing, a hybrid of ML-KEM-768 (the NIST post-quantum standard, FIPS 203) and X25519. It belongs to the same hybrid family as the post-quantum key exchange in TLS. The note body is then sealed under a key that needs both layers, so breaking the elliptic curves alone opens nothing.
The layer our circuits already check stays in place, so the data liquidation depends on is still guaranteed to be readable by the parties who need it. The post-quantum layer is bound to each note by a commitment inside the proof, so it can't be swapped after the fact.
This comes first because it's the only part of the work that protects data that's already public. Every note created after it ships can't be opened by breaking elliptic curves, which is what a quantum computer would do. Existing notes upgrade when you move them into a new one, which any trade or transfer does.
2. Account keys no public key can reveal
Spending on Rooq already rests on hashes. You spend a note by proving, in zero knowledge, that you know the secret it was created for. The commitments, nullifiers and owner tags are Poseidon2 hashes, which a quantum computer can only search faster, not break.
The weak point is how an account's secret is created. Accounts opened by signing with a wallet derive their secret from that signature. A quantum computer that recovers the wallet's elliptic-curve key could sign again and open the account.
Passkey accounts don't have this problem. Their secret comes from a value the passkey computes inside the authenticator and never reveals, which no public key can be used to rebuild. New accounts will start there, or from a random seed you back up yourself. For existing accounts we're building a one-step move to a post-quantum-rooted account.
3. Proofs that don't rest on pairings
Rooq's proofs use UltraHonk with KZG commitments, which rely on elliptic-curve pairings. Zero-knowledge proofs don't leak your data later, so this isn't a harvest-now risk. But once a large quantum computer exists, pairing-based proofs could be forged.
Hash-based proof systems don't have that weakness, and they're now practical for circuits like ours. Noir, the language our circuits are written in, can already be proved with Spartan and WHIR, and early measurements put verifying WHIR on an EVM chain in the same gas range as the verifier we run today. We'll prototype it on our smallest circuit first, verify it on chain without wrapping it back in a pairing-based proof (that would bring the old assumption back), and publish the numbers before moving the rest.
4. Wallets that can sign post-quantum
Deposits and withdrawals are signed by an ordinary wallet, so that layer moves with the chains. Ethereum plans to let users move to post-quantum signatures through smart accounts, with proposals for Falcon and ML-DSA verification built into the chain. Starknet already runs on hash-based STARK proofs and lets every account choose its own signature scheme. We'll support post-quantum smart accounts for deposits and withdrawals on each chain as soon as it can verify them.
What you'll see
- An app update that upgrades your private address to the new format on its own. The SDK gets the same change in the same release, so integrations are covered too.
- A note format that's a little larger on chain, about a kilobyte per note for the post-quantum ciphertext. We'll publish the cost per transaction.
- The design, the code and the test vectors in the open, part by part, before each part ships.
Rooq is on testnet, and none of this is audited yet. The risks page covers what else to keep in mind while we build.