Matched public ECDSA candidate integration
The integration starts at factory snapshot b21ab0d2 and merges reviewed commits
f22c7a65, 4a3a961f, a8a5ecf9 and 3a0d76f2, in that order. Current live
bulk endpoints, request limits, staged fixture types and hash/symmetric length
preflights from the integration snapshot remain intact. No SDK or batch-crate
source is changed. No candidate replaces the native hinted default.
The separate APIs remain independently callable: original homogeneous native
verification, decode-once validation, direct signed recoding, public Jacobian
accumulation, Jacobian plus a width-eight G window, and caller-owned constant
storage. Every admitted request retains canonical signature/hint ranges, the
s*w=1 relation, explicit low-S policy and the complete ECDSA equation.
One cohort loop and one fixture layout
All seven arms in bench/cases/src/secp256k1/pipeline.rs use the same
HintCohort: native key vector, one boxed immutable public constant pool, raw
digest/signature/hint rows, and full verdict outputs. Setup allocates those
objects in the same order for every arm. Only the borrowed-pool arm reads that
pool during verification. Its 1,624-byte wasm64 payload is shared by the entire
cohort rather than duplicated per key.
Each run traverses all N raw rows, revalidates each signature/hint, retains
every complete verdict and reports operations_per_run() == N. The driver
therefore invokes the cohort once for a logical batch of N. The primary IC
comparison is N=100 in one update; N=1/8/32/128/500 are additional controls.
No signature/result cache or per-verification heap allocation is added.
The ordinary cohort uses one key with distinct signatures when distinct=false
and many keys when distinct=true. The explicit tuple-repeat cohort forces one
key and N copies of the raw tuple even if distinct=true. Invalid patterns
change the digest; mixed patterns alternate valid/changed digests. Use valid
inputs for exact single-tuple repetition. All three populations retain N
physical input and output records.
| Arm | Ordinary cohort case suffix after secp256k1.ecdsa. |
|---|---|
| Native control | verify-native-hint-cohort |
| Decode once | verify-native-hint-decode-once |
| Direct signed recoder | verify-native-hint-pipeline |
| Jacobian | verify-native-hint-jacobian-cohort |
| Jacobian/window eight | verify-native-hint-jacobian-window8-cohort |
| Pool control | verify-native-hint-pool-baseline-cohort |
| Borrowed pool | verify-native-hint-pool-borrowed-cohort |
Each has an explicit tuple-repeat case. The native control replaces the final
cohort with tuple-repeat; the other ordinary names drop any final cohort
before appending tuple-repeat. The JSON integration receipt lists exact IDs.
Original scalar Jacobian/window-eight and pool cases remain diagnostic controls.
The scalar pool pair retains equal 48-byte names; both grouped pool pairs also
have equal-length names so their setup case strings share the same size.
The canister driver's reviewed work-shape lists explicitly classify all added grouped and scalar IDs. Unknown IDs still fail; there is no fixed registry length or catch-all classification. The full registry test remains the parent integration run's responsibility rather than being repeated in each lane.
Provenance and checks
All 47 original imported vendor files are verified against the recorded import
checksums. A regenerated combined VENDOR-INTEGRATION.patch covers all ten
changed/added files and reproduces every byte of all 52 integrated vendor files
when applied to an independent temporary copy of that unchanged import. It
includes Jacobian, window-eight, pipeline and pool changes together. Original
archive, license, source and vector receipts remain separate from current
integrated hashes.
The frozen public generator tool checks all 128 affine entries and exact table reproduction. The focused merged secp package suite passed 17 tests, including oracle/error parity, both S policies, malformed hints, GLV/recoding boundaries, identity/zero terms, Jacobian exceptional cases and every wider table entry. The focused secp adapter suite passed eight tests, including every new grouped and scalar variant. The native target occupied 110 MiB, below its 250 MB budget.
The N100 parity test uses exactly the same live key, pool, row and output objects while switching all seven variants, for repeated tuples, one-key distinct signatures and many keys with valid/invalid/mixed equations. It checks all 100 outputs and confirms all allocation addresses remain stable. Another test corrupts the last raw hint after success, requires a new error, restores it and verifies recovery for every variant. Existing controls exercise 1/8/32/100/128/500 records.
This lane runs only focused native secp/adapter tests in its private target, with a 250 MB target budget. Actual wasm64 compilation, IC whole-call/page profiles, read/write masks and throughput measurements remain the parent run's next step. Earlier artifact page maps remain tied to their exact old bytes; this merged artifact requires its own address and charge evidence.