1. Time, measured in this browser
Median of 7 timed batches after warm-up, one thread. The scan uses a log with a few announcements for you and the rest for 8 other receivers, and must find exactly yours.
| Operation | ERC-5564 (1) | ERC-8441 (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 (1) | ERC-8441 (3) | Ratio |
|---|
3. Gas
Real numbers, no estimates. ERC-8441 values are from the Sepolia transactions linked below. 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.
| Step | ERC-5564 (1) | ERC-8441 (3) | Ratio |
|---|
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 1250-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. Test networks only.
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.