Schnorr and shared ECDSA arithmetic — 2026-10-26
The selected N100 BIP340 aggregate uses SIMD GLV/W7: 63,140,679 whole instructions, 19.26% below the previous W8 choice. Shared arithmetic reduces the fresh N100 ECDSA choice to 115,914,363. These are actual FULL Wire updates with 100 distinct signers; no earlier key/point preparation or successful-result cache contributes.
| Contract, N100 valid | Prior whole | Selected whole | Selected raw body | Included page fees | Whole reduction |
|---|---|---|---|---|---|
| BIP340, checked P+R Y; W8 → W7 | 78,202,308 | 63,140,679 | 58,923,192 | 1,040,000 | 19.26% |
| ECDSA, checked inverse; dense G12 | 121,429,442 | 115,914,363 | 111,344,755 | 3,040,000 | 4.54% |
All selected valid rows have three identical samples. The matched integrated scalar Schnorr control costs 98,221,038 whole / 94,003,551 body / 960,000 pages; SIMD W7 costs 35.72% less whole. Scalar ECDSA remains 143,930,513 / 139,360,905 / 2,400,000. Page costs are included, never subtracted or added to whole/body counts.
Workload and scope
BIP340 receives public-X32, standard signature64, message32 and optional checked public-Y32/nonce-Y32 in the same call; P+R packets are 19,503 bytes at N100. ECDSA receives distinct SEC1-65 public keys, compact signature64, prehash32 and checked inverse32, totaling 19,603 bytes. Its archived preimages are 256 bytes; hashing them is client work, not measured message hashing. The independently verified corpus is unchanged across stages. The N500 corpus preserves the original first 100 records and packets.
Body counter0 includes key/point parsing, hint checks, fresh descriptors/tables/workspace, verification/MSM, complete fallback and temporary cleanup. Whole additionally includes actual Wire decoding, runtime, reply and all page admissions, including prelude accesses before the body probe. First access/first dirty each cost 80,000 per aligned 64 KiB region. No control subtraction, profiles, reduced coefficient width or extrapolation is used.
Accepted Schnorr batches retain the existing full-field transcript-weighted prototype policy, distinct from 100 independent single equations. P/R hints retain canonical/even/on-curve/matching-coordinate validation; ECDSA retains parsing, low-S and checked s*w == 1. Exact GLV decomposition preserves full-width scalar values and coefficients. Inputs and every record still participate.
Selection and capacity
Measured N100 progression, whole instructions: prior preferred W8 78,202,308 → c7/prefix W7 75,351,043 → combined field+GLV A 69,976,168 → indexed points B 65,186,198 → public point masks C 63,488,628 → pre-density affine-Z1 63,135,252 → selected clean/integrated policy 63,140,679. The slight final increase buys the density guard. Independent trials from c7 were field-only 72,016,481 and public-GLV-only 73,310,730; those two are parallel experiments, not sequential stages. Weighted products cost 50,698 more than GLV-only and are excluded from the production caller; the retained oracle is test-only.
The selected caller gathers/scatters active indexed buckets, retains exceptional-point handling and uses the checked affine-Z1 path when public encoded terms, including GLV expansion and the generator, are at most 8 × bucket count. Above that threshold it chooses the dense C kernel once, avoiding per-loop coordinate classification. Coefficients, transcript and validation do not change.
Choose the window explicitly: backend 6 / simd-jacobian-glv-w7 wins N100; backend 7 / simd-jacobian-glv-w8 wins the measured N500 workload. The density guard changes the kernel within that choice; it does not select a window.
At actual N500, W8 costs 245,311,665 whole / 227,361,856 body / 2,160,000 pages, or 490,623.33 whole per signature; request 97,504 bytes. W7 costs 267,774,362. These are one-sample capacity rows. The same-corpus prior dense C W8 cost 245,376,767; always using the pre-density affine-Z1 path regressed to 246,547,472. The selected adaptive path avoids that measured regression. N128/256 boundaries also pass; no N100-to-N500 prediction is substituted for an actual call.
Hints, failures and qualification
The complete-mode private clean artifact independently captures W7 no/P/P+R hints at 93,549,350 / 78,352,031 / 63,140,679 whole, three identical samples; packet widths 13,103 / 16,303 / 19,503 bytes. Its no/P-only costs are not assigned to the integrated artifact without measurements. The integrated P+R result matches exactly.
Integrated W7 invalid/mixed N100 requests cost 259,125,208 / 259,065,840 whole, body 254,907,721 / 254,848,353 and pages 1,120,000, one sample per pattern. Every failed aggregate rechecks all 100 rows, returning 0/50 true verdicts. Malformed hints/scalars also preserve complete fallback and per-row errors. Such early validation failures are not full-equation throughput. Integrated ECDSA valid/invalid/mixed and wrong-inverse diagnostics pass with all per-row outputs checked.
The frozen integrated audit passes 38 verification calls / 4,968 incoming records, including diagnostics, across five cleanly closed owned servers. It covers P+R backends 6/7/4, N100 negatives/malformed inputs, N128/256/500 and fresh ECDSA 21/14. The private complete-mode closure separately passes 57 captures / 7,452 records. Its scalar and failed-aggregate costs are 80,000 lower than integrated costs because the integrated layout opens one extra region; this report uses the actual integrated controls and negative totals.
Thirty batch/secp Rust source files match selected source 6829729c4f75a94b408b3be92491f5f8e678ba60. Native selected checks pass 31 batch + 53 secp, independent 329-row full-width GLV oracle and field interval/replay checks; root integration passes 296 tests with one existing ignored test. These do not alter the established prototype acceptance policy or claim a new security proof.
Pins
Integrated Wasm: 08b7db72fb44a7fd801d43362e731872b9c8b99596e1ca0372e75455186f1c88; private clean: 5f9ac0e8cd0617b9e1b240a0b48f42d9695144a86c2e1fcb82399cf01ea79461. SDK remains 33f54b62b46a6693ff6e193a752e052eaa124884; PocketIC 16.1.0 binary remains 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6.
The compact summary pins manifests, complete source archives, selected source hashes, stage/native audits, corpus/packet/host identities and actual trace totals. Every integrated canonical output and archived source was rehashed. All measurements retains the full campaign; no large traces are copied here. SDK/runtime/instruction pricing and Wire contracts are unchanged. This is measured instruction cost, not native wall-time throughput.