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.
| Operation | ERC-5564 (schemeId 1) | ERC-8441 (schemeId 3) | Ratio |
|---|
Where the hybrid time goes
| Primitive | Median | Used 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.
| Item | ERC-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.
| Step | ERC-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.
| Step | Gas |
|---|
How to read this
- Scanning is local CPU, not gas. Each announcement costs the receiver one ECDH. The hybrid scheme adds an ML-KEM-768 decapsulation and a hash on every announcement.
- The view tag cannot skip the KEM. In schemeId 1 the tag is checked right after the ECDH, so almost every foreign announcement stops early. In schemeId 3 the tag comes from the hybrid secret, because a tag derived from the classical part alone would let a quantum attacker rule out most receivers. So every announcement pays the full cost, and that is what the scan row shows.
- Ratios depend on the stack. In JavaScript the secp256k1 multiply is slow, so the extra ML-KEM work looks small in relative terms. With fast native elliptic curves the same added work is a bigger share.
- Registration is paid once. The 1,250-byte meta-address is stored in the ERC-6538 registry a single time per receiver. Every payment after that pays the announce and transfer costs.
- What is and is not post-quantum. Discovery secrecy is hybrid, so recorded chain data does not let a future quantum computer link a payment to its receiver. Spending still uses a normal secp256k1 key.
- Research code, not audited. Timings run in your browser. Gas is labelled by source: live mainnet, Sepolia, or local.
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.