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 real Sepolia transactions and 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 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.

OperationERC-5564 (1)ERC-8441 (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 (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.

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

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.