Repository navigation
feat(u4): add adjacent equality mask - #201
Conversation
|
Review: changes required before merge. For the two witness items Evidence: Reviewed commit: |
|
Updated in commit The adjacent comparison now uses Metrics/docs remain synchronized: 558 script bytes, 361 static non-push opcodes, 64-item peak, 65-byte canonical fixture witness. Validation passed:
|
5887aff to
d8fd99b
Compare
|
Review of The numeric equality change addresses the earlier raw-encoding mismatch. Preserve the alias and asymmetric output-order tests while rebasing; rerun the adjacent-equality library tests, the named metric check, and KB validation against current main. Current integration conflicts: Validation scope: source/diff and existing CI review; no new full-repository or field-arithmetic test run was requested. |
|
Addressed in
Validation on the integrated tree: all 5 adjacent-equality library tests, |
This adds a range-checked u4 adjacent-equality mask: n numeric inputs produce n-1 equality bits in input order. Numeric equality treats alternative ScriptNum encodings of the same value equally; canonical byte encoding is not required by this contract.
The representative 32-input fragment has 558 policy-produced script bytes, 65 serialized data-witness bytes across 32 items and zero hints, a 64-item combined-stack peak, and 361 static non-push opcodes. Evidence is locally-reproduced and deployment remains unclassified; no Bitcoin Core or relay-policy validation is claimed.
Integration preserves current main's catalog records, module exports, documentation, and active metrics. Regression coverage checks raw numeric aliases and output order with complete terminal assertions. A deliberate byte-comparison mutant must fail the same success assertion.
Validation: five focused adjacent-equality library tests, the named metric check, KB validation, formatting, and whitespace checks. No broad or field-arithmetic suite and no metric refresh were run.