Skip to content

ENS DNSSEC Algorithm 13 — EIP-7951 Impact (PR #509)

@steglabs@steglabs9 charts

ENS DNSSEC Algorithm 13 — EIP-7951 Impact

PR ensdomains/ens-contracts#509 replaced ENS's Solidity verifier for DNSSEC algorithm 13 (ECDSAP256SHA256) with the EIP-7951 P-256 precompile.

This dashboard reports a full census of every production direct-import call — 2,283 calls, 2021-08 to 2026-07, no sampling — each replayed twice under old and new verifier bytecode, changing nothing but the verifier.

Method. Deployed mainnet runtime bytecode installed via state override; nothing recompiled, so the measured delta is between artifacts as they existed on-chain rather than between source revisions. Every replay asserts the keccak256 of the oracle and both verifier variants per call. Extraction cutoff block 25,627,360.

Two bases appear on this dashboard.Harness is contract-call replay gas; it excludes the 21,000 intrinsic transaction cost and the proof's calldata. Receipts is gas_used on the transaction. Per-verification figures use harness; per-transaction figures use receipts. Savings are identical on either basis, because the overhead appears on both sides and subtracts out. Every panel carrying a ratio states its basis.

1 · Per-verification cost — 128x

From 1,340,706 gas to 10,493 — a saving of 1,330,213 per verification, a 99.2% reduction.

Basis: harness. Both figures are costs, measured warm through one probe against deployed mainnet runtime bytecode, each vector cryptographically verified before its gas is recorded. That makes the headline subtraction true: 1,340,706 − 10,493 = 1,330,213 exactly.

Disclosure on the multiple. An independent re-derivation by a second agent reproduced the saving exactly but placed both absolute costs 1,512 gas lower, giving 149x. Because that offset cancels in a subtraction but not in a division against a ~10,000 divisor, the same measured saving supports 107x–149x depending on the context in which the new cost is taken. The saving is basis-independent; the multiple is not. The independent check arrived at the higher figure.

A census delta paired with a probe cost subtracts to 1,317,088 rather than to the 1,330,213 printed beside it, and yields 106x.

Three deployed regimes, not two: legacy-oracle and current-oracle verifiers are different implementations differing by 303,865 gas, and the legacy one governs 62% of all claims. Foundry 1.5.0/anvil and Hardhat 3.1.4/EDR agree to the gas unit.

2 · Whole-flow reduction — 82.3%

Measured end to end across the realized period, not just the verifier leg: 1,366,364,238 → 242,497,608 gas.

Basis: transaction receipts — gas_used, what the claimant paid. At 4,337,664 gas the old mean import was roughly 14% of a 30M-gas block; the new mean is 769,834, roughly 3%. A block that held about 7 DNS imports holds about 39.

On the harness basis, which excludes the 21,000 intrinsic cost and the proof's calldata, the same period reads 1,324,262,598 → 200,395,968, a reduction of 84.9%. The gap between the two reductions is 2.6 percentage points.

3 · Count versus cost — the whole argument in two bars

RSA did most of the verifying. Algorithm 13 cost almost all of the money.

RSA performed 65.3% of all signature verifications and consumed 8.8% of the gas. Algorithm 13 performed 34.7% and consumed 91.2%. That asymmetry is the entire case for the change: the expensive thing was not the common thing.

Basis: harness, verification gas only. The 21,000 intrinsic cost and proof calldata are transaction-level and are not attributed to any verifier, so these shares are the same on either basis.

Both shares are on one denominator — the full census of 9,931 verifications across 2,127 registrar calls. Pairing a full-census count (64.9%) with a realized-period gas share (6.3%) would mix populations; on the realized period alone the pair is 44.7% / 93.7%.

RSA gas is production-weighted across all 6,482 observed RSA verifications at their measured modulus sizes — see panels 4 and 5. RSASHA1 (algorithms 5 and 7) is priced from its own measurement, not assumed onto the RSASHA256 cost curve: it computes its digest in Solidity because the EVM has no SHA-1 precompile, so at 2048-bit it costs 512,762 and 298,605 gas rather than 81,733. Assuming it onto the RSASHA256 curve would put this panel at 8.5 / 91.5.

4 · Outlier to reversal — not convergence

Algorithm 13 went from roughly 20x more expensive than RSA to roughly 6x cheaper. Old P-256 1,340,706 · RSA 66,051 · new P-256 10,493.

Basis: harness, per verification, and the RSA figure is production-weighted across 6,482 real verifications at their measured modulus sizes — 1024-bit 31,807 (27.9%), 1280-bit 42,736 (6.9%), 2048-bit 81,733 (64.5%), 4096-bit 230,837 (0.7%). A reader assuming a single key size will not reproduce 66,051.

The direction does not depend on the weighting. The new verifier is cheaper than RSA at every observed modulus size — by 3.03x even at 1024-bit, where the margin is narrowest. No weighting of the observed data yields parity.

At 12,873 gas the RFC 5702 reference vector is 1024-bit and signs ~60 bytes, where real proofs sign 352–1,132; priced from that vector, RSA is understated by ~2.5x even at equal modulus, and algorithm 13 appears to reach parity at 1.23x.

These figures measure verification gas only.

5 · RSA key sizes — why the weighting is not arbitrary

Root and TLD are effectively fixed at 2048-bit. The entire spread lives at the leaf, across 1024, 1280, 2048 and 4096. Leaf-level RSA averages 48,081 gas against ~82,000 at root and TLD.

Measured, not inferred: under PKCS#1 v1.5 the signature length equals the modulus length, so modulus size is read directly from the RSA signatures in real import calldata. Cross-checked 6,482 = 6,482 against the independently decoded dispatch count.

Four headline figures turn on this measurement. Pricing RSA from real per-size costs rather than from the test vector puts the total-gas reduction at 92.9% against 97.91%, the algorithm-13 share of gas at 93.7% against 98.8%, the RSA share at 6.3% against 1.2%, and the residual RSA share after the swap at 89.6% against 56%.

6 · Coverage — real, measured, and fragile

98.1% of 2026 imports use algorithm 13. The long-run census rate is 70.3%. Both are shown, because the second is the conservative figure for anything forward-looking.

The dependency, named. In the 2026 window doma.xyz alone accounts for 60.6% of imports (191 of 315) and Cloudflare a further 17.8% (56 of 315) — both 100% algorithm 13. The 98.1% is substantially the product of two providers' defaults during one window. googledomains.com serves 9.5% of resolving imported names (147 of 1,547) at an algorithm-13 rate of just 3.7% (6 of 162); a shift in which providers ENS importers use would cut the rate sharply. Cloudflare moving to Ed25519 — RECOMMENDED under RFC 8624 and not wired into the ENS oracle — would both reduce the share and produce unverifiable proofs.

Two denominators are in play and they are not interchangeable. Cloudflare is 42.1% of imported names (652 of 1,547 that resolve) and 17.8% of realized imports (56 of 315); both are correct, and printed without their populations they read as a contradiction.

It is not a property of DNS. At registry level, gTLD algorithm-13 adoption is 11.5% (126 of 1,099). The 98.1% describes the DNS providers ENS importers actually use, at a different level of the hierarchy.

7 · Census integrity

2,283 calls in scope, 2,282 measured. The single gap is one row whose calldata is truncated (error:unexpected) and which carries n13 = 0 — zero estimand impact.

Each verification step was tested for its ability to fail: decoding under the wrong oracle's semantics collapses agreement to 0/120; an out-of-range timestamp degrades it to 57/80; installing a wrong-but-valid verifier bytecode makes the per-call assertion fire; and an independent proof decoder that never sees a trace agrees with trace attribution 2,127/2,127.

Independently re-derived. A second agent, writing its own extraction and importing nothing from this study, reproduced the per-verification saving, the realized gas saved, the 9,931 verifications and their 6,444/3,449/38 split, the 2,145 imports / 2,127 calls, and the elapsed-time figures. It could not enumerate the reverted population — trace_filter is tier-gated — and reported that as unreproducible rather than assuming.

8 · The canonical record was wrong

PR #509 states ~200k → ~3.5k per verification. Measured on the harness basis: 1,340,706 → 10,493.

The PR understates its own benefit by 6.8x on the saving — and that conclusion does not move with the basis chosen: 6.77x on the harness delta, 6.77x on the census current-oracle delta, 8.32x on the legacy-oracle basis. 6.8x is the conservative figure, and the correction runs in the conservative direction.

Component-wise, the PR understated the old cost by 6.7x and the new cost by 3.0x.

9 · Which change did users respond to?

EIP-7951 became available 2025-12-03; ENS routed algorithm 13 to it 2026-03-09. Dating each address's first-ever DNS import separates the two: no break at EIP-7951 availability (4/wk, at the 4.10/wk baseline), a break at ENS routing (16/wk against a prior ceiling of 10).

This panel does not claim causation, and the artifact does not either. The elevation decays back to baseline after ~7 weeks, consistent with a backlog of cost-deferred imports clearing rather than a permanent demand shift. The volume effect is 2.79x raw but 1.84x once the largest claimant on each side is removed, and n is small. Provider and claimant concentration overlap: the bulk claimant accounts for 108 of doma.xyz's 204 imports, so panel 6's dependency and this one are partly the same phenomenon.

It is a correlation that survived four controls, not established induced adoption.