Private ETH payments with one unified balance in ERC 8286 PQ wallets and EIP-8141 frame transactions
QRAFT—Quantum-Resistant Anonymous Frame Transactions—is a private ETH payment protocol built around ERC-8286 post-quantum wallets and EIP-8141 frame transactions. Users add ETH to one unified private balance, send exact amounts to other users, and withdraw to a public address.
Funds are held in a shared pool and represented by encrypted notes. The wallet automatically discovers incoming payments, selects notes for spending, and returns any leftover value as private change. Users interact with a balance rather than managing individual notes. Recipients share a QRAFT receiving address, and their wallets discover payments when they next connect.
QRAFT uses ML-DSA-44 signatures to authorize public-account actions and ML-KEM-768 receiving keys to protect incoming payment notes. A passkey unlocks the wallet and protects its encrypted backup. Spending proofs are generated locally in the browser.
Private payments use a shared proof-authorized account as the transaction sender, avoiding exposure of the user’s public wallet address in that field. The browser submits EIP-8141 transactions through Nym Anon RPC to the alternative mempool, without an application relayer. An onchain paymaster sponsors account setup and transaction gas.
The complete flow—account creation, funding, private payments, change, recovery, and withdrawal—has been tested through real Nym connections. Post-quantum protection applies to account signatures and receiving encryption; the current Groth16 proof system is not post-quantum. Public deposits and withdrawals remain visible onchain.
We built QRAFT with Next.js, React and TypeScript, with Solidity contracts running on the EF EIP-8141 development network. The browser handles key management, note discovery, encryption and proof generation. We use viem for contract encoding and RPC interactions.
The private pool uses a Circom join/split circuit with Groth16 proofs generated locally through snarkjs and WebAssembly. Notes contain an amount, owner commitment and random value. Poseidon commitments are recorded in a Merkle tree, while nullifiers prevent double spending. The circuit proves ownership and value conservation without revealing the input notes or private payment amounts. A payment creates a note for the recipient and, when needed, a change note for the sender.
For the ERC-8286 PQ wallets, we use ML-DSA-44 for account authorization and ML-KEM-768 for receiving encryption, implemented with @noble/post-quantum. ML-KEM establishes a shared secret, HKDF-SHA-256 derives an encryption key, and AES-256-GCM encrypts each note. The recipient scans pool events, decrypts matching notes, checks their commitments, filters out spent notes and calculates one unified private balance. WebAuthn passkeys protect the locally encrypted master secret through the PRF extension.
EIP-8141 lets us separate authorization, gas sponsorship and execution into native transaction frames. Public deposits use the user’s PQ account. Private sends and withdrawals use a shared, keyless proof account that validates the spending proof instead of requiring a public-wallet signature. The browser submits directly through Nym Anon RPC to the alternative mempool, so no application relayer signs or submits payments. The factory deploys accounts, and the paymaster funds both their setup stake and transaction gas.
One integration challenge was making proof verification work within the alternative mempool’s restricted verification phase. We replaced gas-dependent calls in the generated Groth16 verifier with fixed precompile gas allowances and tested them with real proofs. We also use action-specific nonce keys for private payments, allowing independent transactions without a shared server-side nonce counter.
For reliability, the wallet saves the exact transaction before submission and reconciles it after a timeout or reload. We tested this by deliberately dropping a submission acknowledgement, clearing browser storage, restoring with the original passkey, and completing a withdrawal. The project passed 93 unit tests, native transaction checks and a full browser-to-chain flow through real Nym connections.

