Repository navigation
Validate reduced Binohash legacy spends against Bitcoin Core - #288
RobinLinus merged 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Reviewed the legacy FindAndDelete fixture, selected-signature mutation, funding, complete transaction identity/weight checks, and distinction between consensus acceptance and CONST_SCRIPTCODE policy rejection. The fixture test and all three offline report tests passed locally; the PR's funded pinned-Core CI comparison also passed. The scope correctly excludes full Binohash grinding/security validation. Approved for integration via #289, with the source/fixtures unchanged. |
The Binohash catalog previously reproduced only host-side
FindAndDeleteand legacy sighash behavior. This adds a deterministic two-choice P2SH fixture that spends confirmed outputs under pinned Bitcoin Core v30.3. Selecting either embedded pool signature and signing its corresponding local digest produces a consensus-valid block spend; flipping the selection without re-signing fails consensus.Both valid spends are rejected by default relay policy with
Signature is found in scriptCode(CONST_SCRIPTCODE). The checked report records exact transaction bytes, Core verdicts, binary provenance, a 23-byte P2SH locking script, 220-byte redeemScript, and 1,744/1,740 WU complete spend weights. The catalog classifies only this reduced configuration asdifferentially-validatedandconsensus-validated; the full Binohash grinding and Script-extraction protocol remainsreportedand open in OP-011.Validation:
python3 tools/kb.py validate; all 57 Python harness tests;cargo fmt --all -- --check; focused Rust fixture test; two byte-identical fresh pinned-Core regtest runs; and the full locked non-field Rust suite (cargo test --locked -- --skip fields::). CI now repeats the Core comparison.