Receiver: create a hybrid meta-address and register it
The receiver makes three key pairs: a secp256k1 spending key, a secp256k1 viewing key and an ML-KEM-768 key. The public halves form a 1,250-byte meta-address. Registering it in the ERC-6538 registry lets anyone pay this account privately by looking it up.
Sender: pay a one-time address and announce it
The sender reads the meta-address, then derives a fresh address that nobody has seen before. The announcement carries an ephemeral secp256k1 key and an ML-KEM ciphertext (1,121 bytes together) plus a 1-byte view tag. On chain, the address and the announcement are not linked to the receiver's account.
Receiver: scan, find the payment, recover the key
The receiver goes through announcements with the viewing key and the ML-KEM key. For each one: an ECDH, an ML-KEM decapsulation, then a 1-byte view tag check that drops almost every payment meant for someone else. On a match the address is derived again and compared, and the one-time private key is computed from the spending key.
What is post-quantum here, and what is not
- Post-quantum: receive and discovery secrecy. Finding out who a payment is for needs both the secp256k1 viewing key and the ML-KEM-768 key. Breaking secp256k1 alone, now or later from recorded chain data, does not reveal the receiver.
- Not post-quantum: spend authority. The one-time address is a normal Ethereum account with a secp256k1 key. Once it sends a transaction its public key is on chain, and a large quantum computer could forge spends from it. That needs a post-quantum account or signature scheme, which this demo does not add.
- Not hidden: the amount, the asset, the sender account and timing are public, as with any Ethereum transfer. Moving funds out of a one-time address can link it to wherever they go.
- Status: research code, not audited. Keys live only in this page's memory and are lost on reload. Use test ETH only.
Contracts: ERC-5564 Announcer 0x55649E01B5Df198D18D95b5cc5051630cfD45564, ERC-6538 Registry 0x6538E6bf4B0eBd30A8Ea093027Ac2422ce5d6538 (same address on every chain where deployed). Crypto: an independent TypeScript implementation of ERC-8441 checked against the official test vectors, built on @noble libraries.