ERC-8441 schemeId 3 vs ERC-5564 schemeId 1

What does post-quantum stealth discovery cost?

The same payment flow with two schemes: plain secp256k1, and a hybrid of ML-KEM-768 and secp256k1. Time is measured live on your device, in a Web Worker, with the actual library code. Sizes are counted from real generated payloads. Gas comes from a live mainnet run, from real Sepolia transactions, and from a local chain that uses Sepolia's rules and the real Sepolia bytecode of the canonical contracts.

1. Time, measured in this browser

Median of 7 timed batches after a warm-up, on one thread. The scan runs over a log in which a few announcements are for you and the rest are for 8 other receivers. It must find exactly yours.

OperationERC-5564 (schemeId 1)ERC-8441 (schemeId 3)Ratio

Where the hybrid time goes

PrimitiveMedianUsed by

2. Sizes, in bytes

Counted from real payloads generated just now. Calldata is the full announce(uint256,address,bytes,bytes) call. Log data is the ABI-encoded Announcement event body.

ItemERC-5564 (schemeId 1)ERC-8441 (schemeId 3)Ratio

3. Gas

Real numbers, no estimates. ERC-8441 values in the first table are from the Sepolia transactions linked there. ERC-5564 values were measured on a local anvil chain with Sepolia's chain id, which gives the same gas rules, and the real Sepolia runtime bytecode of the canonical Announcer and Registry. The same local setup reproduces the ERC-8441 Sepolia numbers for announce and payment exactly. A live mainnet run of the same ERC-8441 flow, taken before Glamsterdam, is in the second table.

StepERC-5564 (schemeId 1)ERC-8441 (schemeId 3)Ratio

Live mainnet, pre-Glamsterdam

One live ERC-8441 schemeId 3 run on Ethereum mainnet on 4 December 2026, blocks 26,557,666 to 26,557,690. These are pre-Glamsterdam costs. The Sepolia figures above are unchanged.

StepGas

How to read this

Reproduce it

Source for this page, the gas script and the raw run logs are in the pq-bench project. The cryptography is the ERC-8441 TypeScript implementation, checked against the official ERC vectors. The write-up of the mainnet run is on ethresear.ch. The measurement scripts are in a public gist.