Ed25519 SIMD128 qualification, 26 October 2026
For 100 distinct signers with 256-byte messages, dense SIMD128 strict verification used 24.64% fewer whole-call IC instructions than the matched scalar control. Fixed groups of four saved 21.17%. All cases used the same canonical Wasm64 artifact and strict individual validation policy.
The fixture stages raw bytes before run. The measured operation includes key,
R and S parsing, canonical/curve/small-order checks, message hashing, temporary
key tables, descriptors, allocations and freeing. It uses no previously
validated key cache. Setup signing and full payload ingress decoding are outside
this staged measurement. Whole-call totals include the result checks and actual
page charges; nothing is subtracted. Each row has three successful samples with
identical instruction totals, zero warmup and all 100 verdicts checked.
| Valid N100 control | Whole-call instructions | Body instructions | Heap page charges |
|---|---|---|---|
| Fresh scalar cohort | 213,068,438 | 212,650,791 | 560,000 |
| Fixed-four SIMD128 | 167,970,186 | 167,552,539 | 560,000 |
| Dense SIMD128 | 160,567,266 | 160,149,619 | 2,080,000 |
Scalar and fixed-four calls accessed five heap regions and dirtied two; dense calls accessed 15 and dirtied 11. Regions are 64 KiB. Dense scheduling wins after these higher fees. Its 381,600-byte N100 array-backing calculation excludes allocator overhead, stack, metadata and fixture storage; it is not a measured peak allocation.
| N100 whole-call instructions | Scalar | Fixed-four | Dense |
|---|---|---|---|
| Invalid | 213,089,125 | 168,900,460 | 160,665,722 |
| Mixed | 213,105,392 | 168,855,388 | 160,499,695 |
Invalid/mixed fixtures contain well-formed false equations. All three samples passed for every case. Matched scalar/dense diagnostics also passed valid and mixed populations at N=1/2/3/4/5/99/101. Dense loses at N=1/2/3/5; N=4 is a small win. At N=99/101 it still wins with partial groups. Tail lanes use identity padding, with no scalar fallback or overwritten record.
Both SIMD methods preserve strict singles' mixed-order acceptance and their uncofactored equation. The prime-subgroup aggregate is a different policy and is not this comparison's baseline. Native gates cover all eight torsion classes, RFC 8032/OpenSSL answers, malformed neighbors and complete distinct cohorts through 500 records. The pinned Wycheproof corpus has 198 fixed-size SIMD checks and 12 typed-length rejections; acceptable cases must match the existing strict verifier. These native rejection/policy gates are separate from the installed Wasm fixtures above.
The installed artifact contains real field SIMD arithmetic. Raw and installed
function bodies hash-match: field multiplication contains 100 low and 100 high
unsigned widening products; squaring contains 55 of each. LLVM also emits two
i64x2.mul instructions per field function for the bounded final carry ×19.
Four 25/26-bit records share each field operation without combining equations.
Dense queues improve lane use for sparse NAF additions; gathering, carrying,
packing and its larger workspace account for the remaining costs.
Selected Wasm prologues reserve 16,608 bytes for fixed-group math and 4,656 for dense math; their public wrappers reserve 6,336 and 1,712 bytes. The isolated dense workspace factory has no stack reservation. These are individual frames, not a cumulative stack bound. No SDK/runtime or instruction-set extension was needed, and no duplicate SIMD basepoint table was added.
The canonical artifact is crypto/bench/artifacts/r4-ec-simd-firstwave-r2-20261025:
- Wasm SHA-256:
5d408bc0280fe4bba1ae9b3b0052b31a42b46c1855369cd45a089a301a91dfa4. - Features:
ed25519-simd128,wasm-schnorr-msm-simd,dalek-serial32. - Factory base:
9e0481d2930381d9888da50e76264aa315b3ad21, with the candidate changes and closure fixes captured in its immutable source archive. SDK:33f54b62b46a6693ff6e193a752e052eaa124884. - Source archive SHA-256:
9b472bb573c9ccca4b4a78daec08d416c928cdeb67535a7bd135cbe0f09e7b1f.
The following historical raw receipts are unavailable; their descriptions are retained:
- Valid N100 results.
- Invalid/mixed N100 results.
- Tail diagnostics.
- Installed SIMD opcode proof and individual-frame evidence.
The result-directory labels retain their creation names; host receipts record the actual 26 October execution date. This qualification does not claim native wall-time gains or full Wire-ingress costs.