Benchmark / ERC-8441 schemeId 3, commitment demo

Post-quantum stealth payment with a one-slot registry commitment

A full ERC-8441 scheme 3 payment, end to end, on Sepolia. The receiver commits keccak256(meta) in one storage slot and publishes the 1,250 bytes in a log. The sender reads the log from a public RPC, checks the hash and derives a one-time address. The receiver finds the payment with the view tag and an ML-KEM-768 decapsulation. All key material is created and used in this tab.

Unaudited, testnet only. The sketch contract ERC6538Commitments is unaudited research code deployed on Sepolia only. The demo keys are public by design. Do not use any key or contract here with real funds.

Read mode needs no wallet. The page sends no transaction unless you connect a wallet and press Send in step 2.

1 Recipient: generate a scheme 3 meta-address

A 128-byte seed (spending, viewing, ML-KEM d, ML-KEM z) is drawn from the browser CSPRNG. ERC-8441 key generation turns it into the meta-address. The seed and all private keys stay in this tab.

2 Recipient: commit on Sepolia

Instead of storing 1,250 bytes in 41 new slots with registerKeys, commitKeys(3, meta) stores one 32-byte hash and puts the bytes in a log. commitHash(3, hash) stores only the hash and the bytes live elsewhere.

Gas, same 1,250 byte meta-address

CallGasVersus registerKeys

Live estimate for your meta-address

Read only. eth_estimateGas on public Sepolia RPC, from a fresh random address, so the first-write cost is included. An estimate can sit a little above the gas a transaction finally uses.

Recorded transactions on Sepolia

TransactionGas usedLink

Commit with your own wallet (optional)

Needs an injected wallet such as MetaMask and a little Sepolia ETH. It sends commitKeys(3, meta) for the keys generated in step 1, about 160k gas. The wallet signs, the page never sees a key.

3 Sender: fetch, verify, derive

The sender needs only the registrant address. It reads commitmentOf(registrant, 3), finds the StealthMetaAddressCommitted log with the bytes, checks keccak256(bytes) against the commitment and the ERC-8441 section 2.2 key checks, then derives the one-time address and the announcement data.

    4 Recipient: scan and derive the stealth key

    For every announcement the scanner does one ECDH and one ML-KEM-768 decapsulation, combines both secrets, and only then compares the view tag. In scheme 3 the view tag cannot skip the KEM, because it comes from the hybrid secret. A match needs the view tag and the derived address to agree. Then stealth_sk = spending_sk + H(ss).

    Live Sepolia Announcer logs

    Local log with decoys

    What this shows, and what it does not

    Sources