Post-quantum hardware wallet for Ethereum: XMSS & ML-DSA signing, EIP-8141 accounts, no ECDSA
QDay is a quantum-safe hardware wallet for Ethereum. Once an account has signed a transaction its public key is public, and a large enough quantum computer running Shor's algorithm could recover the secp256k1 key from it. So QDay leaves no ECDSA key anywhere in charge of funds.
The device is an ESP32-S3 with a 2.8" touch screen and four buttons. It holds two post-quantum signature schemes from one 24-word seed: XMSS over keccak256 (hash-based, 1,024 one-time keys per tree, 2,500-byte signatures) and ML-DSA-44 (NIST FIPS 204, lattice-based, 2,420-byte signatures). You switch schemes on the device. It decodes every transaction itself, shows exactly what it will sign, and signs only after you approve and enter your passcode.
Each scheme has its own EIP-8141 smart account. Frame transactions let the account's own code decide what a valid signature is and pay its own gas, so the account checks the post-quantum signature in Solidity in its VERIFY frame (about 120k gas for XMSS, 1.25M for ML-DSA). There is no ECDSA owner, no EOA and no 7702 delegation left behind. EIP-8141 is scheduled for Ethereum's Hegotá upgrade; QDay runs on it today.
XMSS keys are one-time, so two independent locks stop reuse: the device advances a flash counter before it signs, and the account refuses any key index below its on-chain nextIndex, even from a cloned device.
Private payments: every wallet has a post-quantum stealth address. A payer derives a one-time ML-DSA key from it with X-Wing (ML-KEM-768 + X25519) and pays a shared pool contract. The owner's wallet finds the payment with a view key that can't spend, and the device signs the claim with the one-time key. Finding and spending are both post-quantum, unlike secp256k1 stealth addresses.
The web wallet connects to the device over USB with Web Serial: create the account, send ETH and ERC-20 tokens, pay and claim privately, and read every transaction back in a built-in explorer that decodes frame transactions. No device? "Try without a device" opens a demo wallet in the browser on the same chain.
It all runs on our own hosted EIP-8141 devnet. Signed on the real board: XMSS transfers at about 192k-197k gas, ML-DSA transfers at 1.31M, and private payments and claims from both schemes.
A prototype: not audited, devnet only, the ESP32-S3 isn't a secure element, and the one-time stealth signer is an unreviewed variant.
QDay is Rust end to end, so the device, the browser and the laptop share one codebase:
Contracts (Foundry): an XMSS verifier in Solidity with inline assembly (68k-87k gas per signature); the EIP-8141 account with its VERIFY frame and the nextIndex lock; a CREATE2 factory of EIP-1167 clones, so the address is known before deployment and the account pays for its own creation; the ML-DSA account and factory; and the lattice pool for private payments. The ML-DSA verifier is Fireblocks' evm-ml-dsa-verifier (about 1.23M gas), vendored and patched.
Web wallet: React 19, Vite, Tailwind v4, viem and Web Serial.
Network: ethrex's EIP-8141 build, Lighthouse, and the ERC-8421 alternative-mempool gateway that carries frame transactions, as one Docker Compose stack on Coolify, with every contract at a fixed CREATE2 address. EIP-8141 is what makes the design possible: without native account abstraction an ECDSA key would still sign somewhere.
The hacky parts:
One script runs 654 Rust, 124 contract and 67 web tests; CI runs the Rust and contract ones on every pull request. Built with Claude Code as a coding assistant.

