Checked inverse-hint pipeline candidates

These are separate candidates for ordinary ECDSA verification with a validated native prepared public key. They preserve the compact r || s signature and canonical public inverse hint. Neither candidate changes signing, secret arithmetic, point formulas, tables or wire formats. Every call validates the original signature and hint bytes; there is no signature or successful-result cache.

Candidate A, verify_prehash_with_hint_decode_once, decodes r, s and w directly into native scalars once, checks s*w == 1, and checks s.is_high() for the requested low-S policy. It then calls the unchanged native point operation and final comparison. The baseline's ScalarPrimitive to Scalar conversion is already a cheap limb copy. This candidate removes repeated nonzero checks and the normalization helper used only to query low-S; it does not remove an expensive inversion or repeated byte parser from the baseline.

Candidate B, verify_prehash_with_hint_pipeline, adds direct-destination signed width-five wNAF recoding. Four final 129-byte rows are zeroed once. Each GLV component writes its signed nonzero digits directly into its final row, without a temporary 129-byte row, a separate sign-negation pass or its final row copy. The compiler may already coalesce some baseline copies. The baseline recoder and native verification method remain independently callable controls.

Validation order remains digest length, compact signature length/ranges, hint length/range, inverse relation, and then low-S policy. Signature scalars and the hint must be nonzero and smaller than n. A wrong inverse returns Error::InverseHint even with a high-S signature. A correct inverse with high-S and RequireLowS returns Ok(false). The point equation and identity/X checks run for each admitted equation. All variable-time inputs are public.

The ordinary, decode-once and direct-recoding cohorts now share their fixture and loop with the separate Jacobian, Jacobian/window-eight and constant-pool baseline/borrowed variants. All seven retain the same once-per-cohort public constant pool, even when a variant reads linked constants instead. Both ordinary and tuple-repeat forms declare group length N and execute N independent full verifications in one run, retaining N complete verdicts for post-timer checking. They allocate no per-verification heap memory. Preparation creates native tables and public hints outside the timer, but raw signature/hint validation stays inside each verification.

Ordinary cohorts use one key with distinct messages/signatures when distinct=false, and many keys when distinct=true. Tuple cohorts force one key and copy the same signature/hint/digest into N separate physical records; the distinct flag does not change them. The invalid pattern changes the digest; mixed alternates valid/changed digests and therefore has two tuple values. Use a valid 256-byte-message cohort for the exact-tuple repetition comparison. The matched baseline shares the same storage and loop overhead.

Focused native integration checks use the pinned compiler, offline locked dependencies, and disabled debug information/incremental builds:

cargo test --manifest-path cdk-rsx/ver1/Cargo.toml --locked --offline \
  -p cdk-rsx-crypto-secp256k1 --lib
cargo test --manifest-path cdk-rsx/ver1/Cargo.toml --locked --offline \
  -p cdk-rsx-crypto-bench-cases secp256k1:: --lib

The combined result is recorded in the integration record. Coverage includes the independent Python-oracle corpus, malformed/wrong hints, scalar boundaries, both S policies, exact error precedence and point parity over zero, identity, boundary and 100 deterministic scalar pairs. Cohort tests execute real 1/8/32/100/128/500 checks for valid/invalid/mixed patterns and all three topologies. A separate 100-row test changes a canonical hint after a successful run and verifies rejection on the next full run before restoring it.

No canonical Wasm or PocketIC run was built for this integration lane. There is no measured IC speed, page-count, fee or latency claim for either candidate. The next qualification compares all seven methods in one canonical artifact, with primary 100-verification calls and exact-tuple/one-key-distinct/many-key populations. Report whole-call instructions and page fees as well as body counters; do not subtract loop controls or assume native timing predicts wasm64 cost.