How a Quellkey backup key works
Overview
Wallets today are protected by elliptic-curve keys. A large enough quantum computer could derive those keys from a public key, and every wallet that has sent a transaction has published its public key.
Quellkey lets you commit a post-quantum backup key now, while things are calm:
- Commit. Your browser makes a fresh random seed and derives a one-time public key from it. Only the key's hash goes onchain, with a timestamp.
- Wait. A public alarm, made of three bounties on smaller curves, watches for real progress in breaking elliptic curves.
- Flip. When the alarm trips, keepers switch every protected smart account to its backup key. The old ECDSA key stops working for that account.
Signature scheme
The backup key is WOTS+, a hash-based one-time signature, built only on keccak256. Its security rests on the hash function alone, not on any curve.
w = 16 · 64 message chains + 3 checksum chains = 67 · 15 steps T = keccak256(account ‖ uint256 keyIndex) sk[i] = keccak256(seed ‖ T ‖ uint8 i) F(i,j,v) = keccak256(T ‖ uint8 i ‖ uint8 j ‖ v) pk[i] = F^15(sk[i]); pkHash = keccak256(pk[0] ‖ … ‖ pk[66]) signature = 67 × 32 = 2,144 bytes
Each key may sign exactly once. Every post-flip signature therefore names the hash of the next key, and the contract rotates to it in the same step:
userOp.signature = nextPkHash (32 bytes) ‖ WOTS+(keccak256(userOpHash ‖ nextPkHash)) // 2,176 bytes
Verifying one costs about 100k gas.
The alarm
The alarm holds three discrete-log challenges: secp160r1, secp192r1 and secp224r1. Each challenge point Q is hashed onto the curve from a public seed, and the constructor re-checks that derivation, so no one ever knew its secret k.
Claiming a bounty takes two transactions:
- Commit
keccak256(k ‖ you ‖ salt). - Wait 20 L1 blocks.
- Reveal k. The contract checks k·G = Q itself and pays you.
Breaking secp192r1 or higher trips the alarm, and the flag can never be reset. A 3-of-5 guardian Safe may also trip it early, once, and has no other power.
Vault validator
The vault is an ERC-7579 validator module for smart accounts such as Safe7579, Kernel or Nexus.
- Before the flip, it accepts the owner's normal ECDSA signature.
- After the flip, it accepts only the 2,176-byte one-time signature above.
- ERC-1271 always returns invalid after the flip.
- Only the account itself can advance its key chain.
The owner may flip at any time. Once the alarm has tripped, anyone may flip any account, and the keeper does this in batches.
Registry
The registry is an append-only list of (pqKeyHash, timestamp, block) entries per account. Older entries are never deleted. It has no owner and stops accepting writes once the alarm trips.
Plain wallets (EOAs) can commit directly. That creates a public, dated precommitment, but an EOA's key cannot be switched off by any contract. Full protection needs a smart account with the vault installed.
Trust & risks
- No admin keys. The contracts are immutable: no upgrade, pause or withdrawal.
- Your seed never leaves the browser. If you lose it, a flipped account is lost. The app makes you prove your backup before you commit.
- Gas. Post-flip transactions carry a 2,176-byte signature, so check that your bundler accepts it.
- Audit pending. Until it is published, treat v1 as experimental.