
A large quantum computer would break the elliptic-curve cryptography most of crypto runs on. For a privacy protocol the risk starts today: data published now can be stored and decrypted later, once such a machine exists. That attack is called "harvest now, decrypt later".
Sotto's privacy is built so that there is nothing for it to open. This post is where everything stands: what is done, what we are building, what comes next, and what is not covered.
Done: quantum-resistant privacy
Quantum computers break elliptic curves (with Shor's algorithm) but barely weaken hash functions and 256-bit symmetric ciphers. Sotto's privacy rests on those.
- Spend keys. To spend a note you prove you know a secret whose Poseidon hash is the note's key. There is no signature on an elliptic curve, so there is no public key to break.
- Pool state. Every note is a Poseidon2 commitment, every spend leaves a nullifier hash, and the Merkle tree is Poseidon2. No amount or owner sits inside them for a quantum computer to open.
- Notes. When you receive a note, its details (amount, token, the secret that spends it) are published on chain encrypted, so only your wallet can read them. That encryption is post-quantum:
- notes to yourself (deposits, change, the gas note, swap results) use a 256-bit symmetric key derived from your seed (XChaCha20-Poly1305). No public key exists for it;
- notes to other people use hybrid encryption: X25519 together with ML-KEM-768, the post-quantum key exchange NIST standardised as FIPS 203. An attacker would have to break both;
- your private address,
sotto1…, carries a fingerprint of your ML-KEM key. The full key is published separately and checked against that fingerprint before every send, so nobody can swap it.
- Exits to a fresh address. By default a withdrawal goes to a new address that has never signed a transaction. An address is a hash of its public key, and the key appears on chain only with the first signature. Until you spend from that address, a quantum attacker has nothing to work on.
We tested the notes on Elysium mainnet with real funds: a deposit encrypted to the depositor alone, a send that only its recipient could open, and a full restore from the recovery phrase.
Building now: a quantum emergency exit
The one part of Sotto a quantum computer could still attack is the proof system. Spend proofs use UltraHonk on the BN254 curve, and a large quantum computer could in principle forge such a proof. That would not reveal anything about you, but it could be used to take funds from the pool. So we built an emergency mode for that day: the pool stops accepting proofs and lets every user withdraw using hash checks only.
The prototype is written and tested against real proofs from the current circuits:
- Freeze first. Once the emergency is raised, the pool stops taking proofs and deposits at once, so forged proofs can't drain it while the timelock runs.
- Hash-only exits. Each user proves ownership of a note by revealing its secret, and the contract checks it with the same Poseidon hashes the pool already uses. A note leaves once, either through a proof or through the exit, never both.
- No front-running. You commit to your exit first and reveal later. If a bot copies your secret, the earlier commit still wins.
- A stolen admin key can't steal. The worst it can do is freeze the pool and force exit-only mode; it can't pay anyone.
The current vault has no upgrade path by design: no function can change its verifiers or move funds without a proof. So the emergency mode ships with the next version of the vault, and moving to it will be your choice. It goes through an outside review before release.
Next: hash-based proofs
The long-term fix is a proof system built on hashes instead of elliptic curves. The most promising path we have found compiles our existing Noir circuits to a hash-based prover and verifies the proof on Elysium directly, with no elliptic-curve wrapper. Wrapping a hash-based proof inside a classic SNARK would bring the quantum weakness straight back.
The plan:
- A prototype on testnet: proving time on your device, proof size and on-chain cost.
- On mainnet, every spend carries both proofs and both must verify, before the old one is retired.
Each step goes through tests and an outside review before it ships. We will publish the numbers as we go.
Not covered
- Spend proofs use UltraHonk on BN254 until the hash-based proofs ship. This is about the safety of funds, not your privacy.
- Wallet signatures use ECDSA: MetaMask, the relayer, and Elysium itself. That is outside Sotto's control and applies to every EVM chain.
So we say it as it is: Sotto is a quantum-resistant privacy layer. The parts that keep what you hold and who you pay private are built to hold against a quantum computer. Protecting the funds the same way is the next step on this list.