Schnorr certificate round 2: repeated keys and SIMD scheduling
The 26–27 October campaign improves the previous best 100-signature update by 1.49% with distinct keys, 2.33% when ten signatures share one key, and 22.05% with ten keys signing ten messages each. The fastest replicated path uses a 1,924B hint, including 898B of additional, exactly checked Horner checkpoints. An independent off-chain producer passed on a fresh canister at the identical instruction cost, without a prior query.
The original certificate assumptions remain experimental and unaudited. Added checkpoints and key folding preserve the original verification equation; they do not shorten cryptographic challenges. See the evidence packet, population runner and checkpoint runner.
Complete replicated updates
All rows verify 100 signatures, with 100 distinct messages and nonces. Inputs, existing P/R hints, fresh preparation, Wire decoding, page charges, cleanup and replies are included. Previous rows use the previous artifact on the same exact population. Selected results have three identical samples; the two newer columns share one artifact. Every selected update includes 1,200,000 page instructions; these are already part of the whole total.
| Public-key population | Previous, 1,026B | New, 1,026B | New, 1,924B | Reduction vs previous | Update window |
|---|---|---|---|---|---|
| 100 distinct keys | 47,015,059 | 46,746,230 | 46,316,453 | 1.49% | 6 |
| One key used ten times + 90 other keys | 46,780,011 | 46,119,685 | 45,689,908 | 2.33% | 7 |
| Ten keys, ten signatures each | 46,324,975 | 36,540,500 | 36,110,723 | 22.05% | 6 |
| Ten shared-key signatures interleaved among 90 others | 46,613,082 | 45,869,175 | 45,439,398 | 2.52% | 7 |
The first three populations group repeated-key records consecutively; the last puts the ten matching keys at indices 0,10,…90. Chunk-local query table reuse depends on ordering, while update folding covers the full batch. These are measured corpus results, not universal percentage guarantees.
The all-distinct result averages 463,165 instructions per signature in this batch. Against the original ordinary aggregate control of 57,207,852, it saves 19.04%; the 1.49% figure compares with the previous certificate winner. Explicit update vector backing is 79,517B at W6 and 83,485B at W7; stack frames and other decoded values are excluded, so this is not peak memory. The complete 1,924B-proof update request is 21,431B.
Complete query preparation
Each query independently checks 105 records, rejects five well-formed false equations and returns 100 full records. Query W6 is fixed. The additional checkpoint work costs 3,486,509 query instructions and saves 429,777 replicated update instructions relative to the new 1,026B path.
| Population | Previous query | New query, 1,026B | New query, 1,924B |
|---|---|---|---|
| 100 distinct keys | 175,383,537 | 175,222,065 | 178,708,574 |
| Ten share one key | 175,453,176 | 174,126,503 | 177,613,012 |
| Ten groups of ten | 175,892,643 | 149,937,573 | 153,424,082 |
| Ten shared-key signatures interleaved | 175,332,825 | 174,657,684 | 178,144,193 |
Choose the smaller proof when minimizing total query-plus-update work; the checkpoint suffix shifts more computation outside replicated verification and can be produced off-chain. It does not make preparation free. Whole/body/page and phase counters overlap and are never subtracted. Local PocketIC wall times are diagnostic, not network-latency measurements.
Retained changes
Repeated public bases are folded after deriving every original radix digit
or relation coefficient. Exact positive integer sums use checked wider bounds.
Original inputs, ordered transcript, full-field batch weights, proof columns
and challenge derivation stay intact. Every record's hints are validated even
if another record has the same key. The grouped producer falls back to the
original schedule when wider digits would outweigh the reduced term count.
Metadata's parameter proofBytes and coefficientBits describe the original
column protocol; the complete extended length is checkpointProofBytes.
Workspace counts describe allocated backing. Folding can use fewer MSM terms
and wider intermediate integer coefficients without changing those base fields.
The top-window scheduler now inspects actual recoded digit magnitudes before splitting bucket work across lanes. A conservative estimate previously disabled that shortcut after a repeated key widened a coefficient, leaving many terms in one serial chain. The exact test restores parallelism without truncation. Fused SIMD doubling/tripling also remains after a separate measured comparison.
The independent filter interns a freshly built public-key table only within each bounded 16-row chunk. Canonical point identity, including Y parity, determines reuse; hashes only locate candidates. Each signature keeps its own challenge, digits, nonce comparison and verdict. Tables never cross a chunk or call boundary. Its bounded temporary index occupies 752B on Wasm64, additional to the existing 44,192B owned filter workspace.
The optional suffix supplies the 14 affine intermediate points of the Horner chain. Four SIMD lanes check independent recurrences, including the initial column and final identity. Every point and recurrence is checked exactly; the original Fiat–Shamir relation uses the unchanged 1,026B prefix. The suffix adds no new probabilistic check or trusted query result.
Selection and qualification
The screen measured W5–W8 on all three main populations, then remeasured each selected window with three trials. The first combined prototype regressed for distinct/lightly repeated keys; its measurements are retained. The selected build restores the established general-add formula, fixes top scheduling and adds fresh table interning. No isolated performance claim is made for the rejected eleven-multiplication formula.
Removing the fused doubling/tripling helper made the selected checkpoint calls slower by 308,592 / 270,018 / 321,450 instructions for the three main populations. All query totals were identical in that arithmetic comparison. The slower ablation and its source identity are preserved; its runtime change was reverted.
The selected code passed 168 native package tests, four explicit vendor tests and 28 host tests. Native checks include coefficient/carry bounds, packed-digit sums, canonical encodings, identities, cancellation, false checkpoints, repeated keys, opposite parities, hash collisions, malformed hints, reset/capacity behavior and independent-verdict equivalence. Live calls compare complete proofs with independent Noble/OpenSSL calculations and reject seven altered-proof/statement cases. Each of the three selected populations also passed a byte-identical, host-produced update on a second canister with zero prior queries. The interleaved qualification received the same checks.
The selected Wasm SHA256 is
f26ff3234da27ddc1260fca4f0ef92cae4f415d6e47f4a1ef232c33d8e8e0aae,
built from 6ffe59de2acca1f6e1214e0c55d92a63da34ca7b.
After ablation, runtime source was restored byte-for-byte at a040b807;
subsequent publication changes are documentation/evidence only. All runs use
the same frozen PocketIC 16.1.0 binary
6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6.
The selected iteration artifact omits DWARF for faster builds; these results
claim complete native instruction/page traces, not source-line attribution.
The SDK pin remains 33f54b62b46a6693ff6e193a752e052eaa124884.
No SDK, RRT or RRts runtime changed, and Heavy16 was not rerun for this crypto-only
round. All owned benchmark servers closed normally.