Fresh Q-window candidates
These separate public-verification candidates vary only Q's odd-multiple window while retaining the existing frozen G window eight, GLV split, public Jacobian formulas, compact signature, checked client inverse hint and explicit low-S policy. Every invocation parses all incoming SEC1 keys and rebuilds all tables. No previous-call key, signature or verdict cache exists.
FreshEcdsaQ3Workspace<N>, FreshEcdsaQ4Workspace<N>,
FreshEcdsaQ5Workspace<N> and FreshEcdsaQ6Workspace<N> select the window.
verify_fresh_qwindow_batch_prehash_with_hints(items, policy, workspace, output)
infers that choice from the workspace. It accepts the existing FreshEcdsaItem
raw fields. A malformed row returns its index before writing any verdict; false
equations do not skip other rows. The output suffix remains untouched. An
endpoint requiring per-record errors must explicitly charge and report its
fallback after atomic admission failure.
Each row uses a safe Building/Ready enum, overlapping projective preparation and native affine table storage. Q itself is already affine after SEC1 decoding. One coordinate-field inversion normalizes all remaining points in the admitted cohort, then the existing beta constant derives endomorphism images.
| Q width | Odd Q points/key | Nontrivial Z/key | Affine Q+beta points/key | Release wasm64 workspace, N=100 |
|---|---|---|---|---|
| 3 | 2 | 1 | 4 | 48,456 bytes |
| 4 | 4 | 3 | 8 | 90,056 bytes |
| 5 | 8 | 7 | 16 | 173,256 bytes |
| 6 | 16 | 15 | 32 | 339,656 bytes |
These workspace sizes include checked scalar equations and are enforced by wasm64 release layout assertions. Native debug layouts differ. The central Wasm build must pass those assertions; byte counts do not predict charged page count. The generic public factory checks its width/array-size relationship at monomorphization. It never imports arbitrary point/table bytes.
For the exact archived 100 unrelated-key Node/OpenSSL corpus, the shared G8 recoder emits 2,905 nonzero digits for every candidate. Exact Q nonzero-digit counts and preparation counts are:
| Q width | Q additions scheduled | Projective table additions | Z values normalized | Sweep/conversion/beta field M | Total table-preparation field M |
|---|---|---|---|---|---|
| 3 | 6,456 | 100 | 100 | 700 | 2,500 |
| 4 | 5,210 | 300 | 300 | 1,900 | 6,100 |
| 5 | 4,364 | 700 | 700 | 4,300 | 13,300 |
| 6 | 3,717 | 1,500 | 1,500 | 9,100 | 27,700 |
Each nonempty N=100 cohort also performs 100 projective table doublings, 200 table-generation field squares and one field inverse. There are 12,900 scheduled verification doubling columns; identity/equality fast paths are not claimed to be full field operations. Field-M counts above exclude SEC1/scalar validation, inverse internals, small-constant products, reductions, recoding and verification. They follow the existing RCB kernels: one table double is 6M+2S, one projective add is 12M, and normalization plus beta costs 5T+O multiplications per key for O odd points and T=O-1 nontrivial points. Counts are deterministic source/recoder accounting, not native timing or IC instruction measurements.
Width four saves 400 prepared points and 83,200 scratch bytes versus width five, while scheduling 846 more mixed Q additions. Width three and six bound that tradeoff on either side. A new width-five candidate controls for the common generic factory/direct signed recoder; the existing packed-width-five API is unchanged. No default is promoted without matched whole-call/body/page evidence.
Tests compile the exact private recoder source and cover all four widths,
128-bit signed/carry boundaries, every table entry and beta image in both signs,
zero/negative/full-width/infinity equations, all 306 saved independent oracle
rows, both SEC1 formats, both S policies, bad hints, capacity, atomic errors and
recovery. The archived corpus is rendered without changing its key/digest/
signature/hint bytes; source/render hashes are in PROVENANCE.json.
Proposed adapters test N=1/8/32/100/128/500 with fresh incoming keys. Their fixed
caller workspace is bounded at 100: N=128 uses two tiles/inverses and N=500 uses
five, with all records checked. Empty input-independent scratch is allocated in
adapter setup, while raw key parsing and every table operation occur in run.
Actual fresh Wire endpoints that construct/drop scratch per call must include
those operations in their measured body. No SDK or automatic case-registry
changes accompany these candidates.
The follow-up Wire adapter maps selectors 16/17/18/19 to Q3/Q4/Q5/Q6 with fixed G8. It constructs and drops a capacity-100 workspace inside the body; 500 records use five full tiles. Atomic admission failure invokes the same Q width on every row through an N=1 workspace, fully inside the timer. Malformed or missing-hint rows build no native table. Consequently an all-wrong-hint 100-row call reports zero native tables, while a 500-row call with a bad hint at row 137 reports 100 completed-tile tables plus 499 fallback tables, or 599. These counts describe completed native-table construction, not partial projective prefix work, whose cost remains included. Every final record/error verdict is checked. The packet/corpus schema and raw record bytes are unchanged; only the existing one-byte backend selector differs.