Query-produced Schnorr batch hints

Design, implementation and IC qualification experiment, 26 October 2026. The allocator-free protocol and query/update benchmark implement the radix certificate. Four reviewers examined the algorithms, mathematics, papers and IC trust boundary. This remains a derived experimental protocol, not a published or audited signature protocol.

The adversarial qualification adds independent arithmetic, malformed/forged witness, cancellation, direct-Wasm and check-removal tests, plus an exhaustive small-group model. Its mathematical review supports the fixed-commitment interactive bound and keeps deterministic outer batching and the nested Fiat–Shamir assumptions separate. It does not close the independent cryptographic audit. Security checks provides current commands and assurance boundaries.

The latest qualification reduces recoding, copying, exact coefficient arithmetic and challenge hashing without changing proof or transcript bytes. The producer reuses freshly computed columns within its call; the update still checks the complete witness. It also records a correct field rewrite rejected for higher compiled IC cost.

The third-round qualification adds packed borrowed ingress, public XYZZ MSM and bounded scheduling changes. Every integer digit width from 8 to 32 is supported, including a partial top column. Existing b8/b16/b32 proofs remain exact. Its complete-call comparisons separate transport, coordinate, scheduling and proof-parameter choices.

The second-round qualification adds within-call repeated-key reuse and an optional exact checkpoint suffix. The 1,026B column proof remains identical; the 1,924B option includes 14 affine intermediate Horner points plus identity flags. Every recurrence is checked, including the terminal identity, before the unchanged randomized relation. This adds no trusted query step or weaker challenge. The report separates producer costs, distinct/repeated/interleaved keys and the two proof sizes.

Workload and baseline

A query independently checks 105 ordinary BIP340 signatures with checked P/R Y-coordinate hints, removes five invalid records, and returns the selected 100 for an update. The update must independently establish validity. Query filtering does not certify its result: the IC explicitly permits a dishonest node to return dishonest query replies. A certificate authenticates previously committed certified data, not a fresh calculation performed by the query. See the IC query trust model and certified data.

The qualified R13 baseline costs 57,221,619 complete-call instructions for 100 distinct signers, 32-byte messages and P/R hints; page fees are 1,120,000, included in that total. Exact independent verification of 100 costs 100,700,230. These are historical R13 measurements; the matched aggregate control in the completed radix study costs 57,207,852.

The completed 42-cell radix study passed for b=8/16/32, t=128/160 and W2 through W8. The selected b=16,t=128 certificate uses W6 for query production and W7 for update verification. Its 100-record update costs 47,015,059 complete-call instructions, 17.8% fewer than the matched control. The full query, including all 105 independent checks, selection of 100 records and proof production, costs 175,383,537; the proof is 1,026 bytes. Query and replicated update are separate complete calls; their totals include their own Wire, computation and page costs.

A fresh canister also accepted a byte-identical packet produced by the independent offchain oracle with zero prior queries, at the same 47,015,059 update instructions. Neither IC path uses a prior-call key, query verdict or proof cache. IC qualification establishes this implementation's measured behavior, not an audited production security claim.

The current SIMD aggregate constructs 201 weighted curve terms, then GLV produces 402 signed components of at most 128-bit magnitude. Its W7 recoder uses 129 bits including carry, 19 windows and 64 buckets. The implementation already avoids square-root lifts through the checked input hints and uses no coordinate inversion in the aggregate MSM.

Implemented radix-column MSM certificate

Represent the existing complete weighted batch equation as

[ T=\sum_{i=0}^{200} k_iP_i=O. ]

The 201 terms include the generator with its computed scalar. The verifier recomputes all ordinary BIP340 challenges, batch weights and canonical (0\le k_i<n) from the final ordered 100-record input. No signature or challenge format changes.

Choose (\beta=2^b), (m=\lceil256/b\rceil), and decompose the scalars into digits (k_i=\sum_j\beta^jd_{ij}). The query supplies one curve point per column:

[ W_j=\sum_i d_{ij}P_i. ]

The update performs both checks:

  1. Reconstruct (\sum_j\beta^jW_j) with a Horner sequence and require identity.
  2. Derive independent-looking (t)-bit coefficients (r_j) from a domain-separated Fiat–Shamir transcript committing to the complete original statement, protocol parameters and all canonical column points. Compute the bounded integers (c_i=\sum_jr_jd_{ij}) and check (\sum_i c_iP_i-\sum_jr_jW_j=O).

The verifier negates the W point bases rather than representing negative r as n-r, which would restore full-width scalar work. Its bounded-scalar SIMD MSM checks every scalar's full encoded range before using the shorter schedule; the ordinary non-GLV control retains its 257-bit schedule. Coefficients are accumulated as exact bounded integers without modular reduction or truncation.

The implementation derives each column's challenge from a domain-separated SHA256 hash of the complete proof seed and that column's index, taking exactly t bits. Zero is allowed. Reusing one coefficient for every column would be unsound; powers of one challenge have a different polynomial soundness bound.

For t=128, engineering parameters are:

Digit width b Column points m Raw hint bytes Maximum c bits MSM terms Extra reconstruction
4 64 4,104 138 265 252 doublings + 63 additions
8 32 2,052 141 233 248 doublings + 31 additions
16 16 1,026 148 217 240 doublings + 15 additions
32 8 513 163 209 224 doublings + 7 additions
64 4 257 194 205 192 doublings + 3 additions

The original IC matrix covers b=8/16/32 at t=128/160 and W2 through W8. The current implementation supports every b=8..32 with native bound/vector coverage; the latest IC comparison separately screens b16/b20. b=4/64 remain theoretical comparison rows. Raw bytes mean 64 bytes per finite point slot plus an identity bitmap; protocol framing is additional. Identity slots must be canonical and zero-filled. Finite points undergo canonical x/y and curve checks, with either Y parity allowed. Supplying full coordinates avoids introducing square-root decompression for the proof points. The r terms are at most 128 bits, although the shared MSM loop may use the c bound. The current baseline is 402 streams of 129 bits, so the proposed streams are fewer but individually longer. No instruction reduction follows from this table alone. The new bounded signed recoder reserves two leading zero bits: one zero can still lose a final carry when window rounding ends on that bit. For example, the 148-bit coefficient bound uses a 150-bit schedule, which still occupies 22 W7 windows. Maximal-scalar tests cover every width/window alignment; the unchanged original GLV path keeps its qualified schedule.

This generalizes the bit-column protocol in Pinkas's primary article to larger digits. The article's 3.5–5x figures use other curves, populations and security parameters; they do not predict our IC results. The radix choice and its use with our signature equation are our proposed adaptation.

Soundness conditions

Let (\Delta_j=W_j-\sum_i d_{ij}P_i). If reconstruction is identity but the real T is not, some (\Delta_j\ne O). For a fixed statement and fixed W, independent uniform t-bit verifier challenges catch that discrepancy except with probability at most (2^{-t}): fixing the other challenges leaves at most one accepting value of the remaining coefficient, since (2^t<n).

That is an interactive statistical argument. The deterministic implementation still needs an independent Fiat–Shamir/random-oracle analysis, including its indexed hashes, commitment collision assumptions and adversarial grinding; it is not an unconditional t-bit-security claim. Both t=128 and 160 were qualified without weakening challenges to reproduce published interactive benchmarks. Increasing t adds the same number of bits to c; it does not remove the separate SHA256 commitment or outer Schnorr batch acceptance assumptions.

Hash the final batch, parameter version, digit width, challenge width, point count, curve, fixed base/scalar ordering, identity flags and every coordinate before generating proof challenges. Here "statement" always means the final ordered 100 records, not the original 105. Every replica derives the same challenges; there is no independent-challenge amplification from replication. Keep the two checks separate. Checking only the randomized relation would accept correctly computed columns for invalid signatures. Merely returning identity, a hash, an aggregate key or aggregate scalar proves nothing.

Query cost and reuse

The current query completes all 105 exact independent checks, selects the accepted records and then freshly prepares their checked P/R points and standard challenges for the prover. Removing five records changes the final transcript, all batch weights and the weighted scalars. The column witness therefore needs a post-filter pass of m small-scalar MSMs, scheduled four at a time by the default producer. Final points are normalized together with one inversion and encoded within the measured query.

Proof production is extra work. The report includes filtering, proof-phase and complete query counters alongside the replicated update cost; phase and page views overlap and are never subtracted from whole-call totals. Retaining checked P/R points and standard challenges across the two phases remains a possible local optimization, but the selected implementation has no such cache or new independent-filter contract. The existing joint verifier does not materialize separately reusable sG/eP results or a corresponding R table.

Retained SIMD128 implementation

The main certificate check retains the existing Wasm SIMD128 four-lane radix-26 field arithmetic, bucket-local chains and transposed accumulators. The selected experimental wasm-msm-xyzz backend caches projective denominators for public MSMs; independent filtering and checkpoint arithmetic retain Jacobian kernels. The checked bounded-scalar schedule replaces the full-width schedule for this relation and avoids the original 201 GLV splits and endomorphism images. The completed W2 through W8 sweep measures the changed term count and bucket tradeoffs directly.

The winning default radix_certificate::prove computes four column MSMs concurrently, one independent column per SIMD lane, using separate bucket banks and the existing chain scheduler. Exact masks preserve zero digits and identity lanes. prove_reference_columns retains separate within-MSM column calls as a scientific control; both produce identical canonical proof bytes. A streamed broadcast/gather/scatter alternative lost its IC comparisons and was removed from the runtime; its frozen evidence remains in the report.

Four-wide proof-point curve checks and bounded-integer digit accumulation are secondary opportunities. The Horner reconstruction has a genuine dependency chain. The implementation uses the existing scalar public Jacobian mixed-add kernel for this serial tail; both bulk computations retain SIMD. Do not multiply the amount of arithmetic merely to fill SIMD lanes. The objective is lower complete-call IC instructions, not the largest number of vector instructions.

Small arithmetic witness and its zero-byte control

The current public GLV split rounds two 256-by-256-bit products. A checked correction to a truncated high product can avoid most of their u32 limb multiplications. The reviewer-derived fixed-factor bounds permit four bits per weighted term, or 101 bytes for 201 terms. The verifier reconstructs signed residuals and enforces both 128-bit magnitude bounds; correctness follows from the fixed lattice identities, not trust in supplied quotients. Production checks must enforce upper limbs and signs explicitly: a debug assertion is insufficient.

A particularly important control needs no transported hint: retaining one more product diagonal gives only two possible rounded quotients per factor. An interval-certified result with exact fallback, or testing four correction pairs, may give nearly the same saving locally. In the arithmetic model this reduces 128 quotient limb products to 30 per term on the fast path; it is not a measured Wasm instruction count. The compact hint saves only ten additional products per term before its own checking/decoding costs. Measure the zero-byte control first. Neither approach replaces the MSM, so expect a narrower target than the radix certificate.

The existing independent N100 profile records 269,568 self instructions for 200 calls to this scalar-split helper. That is a scale indicator, not a profile of the current aggregate: it suggests the tiny witness is not a route to a large fraction of the 57.22M batch cost. The frozen function ledger retains its exact scope.

Other researched directions

Direction Assessment for this workload
Binary-column delegated MSM At 201 bases, 256 proof points and their verification undo the short-scalar advantage. Larger digits address that engineering problem; the author's original large-N benchmarks do not.
ECIP/divisor witnesses A real way to replace curve work with polynomial/field checks. Historical rational-function carriers suggest about 26 KiB for 201 terms, not a qualified proof-size or soundness result. A carrier's coefficient/degree bounds alone do not establish that it is a genuine logarithmic derivative of a principal divisor. Degree bounds, multiplicities, poles and noninteractive composition need specialist review; not the first small-hint experiment.
Fake-GLV/rational reconstruction Can shorten independent scalar equations, but needs result points and decomposition witnesses. Current per-term Garaga machinery would add roughly 21 KiB for 201 terms in one candidate layout, and weighted result points need new computation after filtering. Useful as a separate query/singles experiment.
Ordinary Bulletproof/IPA/Halo proof A small proof can leave the verifier with another large MSM. Inspect the full verifier before claiming savings.
General SNARK/GKR/STARK Can provide an actual compact proof, but arithmetic traces and proving machinery are substantial additional work. No evidence yet that an IC query can produce our full N100 proof cheaply.
Fixed-base outsourced-MSM setup Protocols relying on a verifier's private preprocessing or earlier fixed bases do not fit fresh unrelated signers and a self-contained query response.
Schnorr half-aggregation Primarily saves signature bytes; it does not remove the ordinary R,s verification MSM.

Relevant primary sources:

Completed qualification and remaining review

The prototype and installed-Wasm qualification are complete for the 42 b/t/window combinations above. Both producer schedules, scalar Horner reconstruction, complete query105-to-update100 calls and the ordinary aggregate control were measured. The selected configuration and complete charge, workspace and source/binary receipts are in the qualification report.

Native vectors, differential checks and adversarial tests cover altered or duplicate columns, changed signatures/messages/order and final subsets, canonical identity slots, both finite Y parities, noncanonical coordinates, parameter-bound transcripts and maximal coefficient/carry boundaries. Separate tests demonstrate that correct columns for an invalid signature pass the randomized relation but fail reconstruction, while coordinated column errors can preserve reconstruction and fail the relation. An independent Node OpenSSL/Noble oracle checked 95 complete canonical proofs. Actual IC calls rejected tampered or truncated proofs, changed order/messages and a well-formed invalid signature; a fresh zero-query offchain packet matched the selected query-produced update exactly.

Independent cryptographic audit remains open, including the Fiat–Shamir composition and the outer batch's assumptions. The measured result does not establish production readiness. Current authorization, replay and application state checks remain the update's responsibility, outside the signature proof.