Skip to content

Validate reduced Binohash legacy spends against Bitcoin Core - #288

Merged
RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
adrienlacombe:codex/binohash-core-differential
Oct 22, 2026
Merged

RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
adrienlacombe:codex/binohash-core-differential

Conversation

@adrienlacombe

@adrienlacombe adrienlacombe commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

The Binohash catalog previously reproduced only host-side FindAndDelete and 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 as differentially-validated and consensus-validated; the full Binohash grinding and Script-extraction protocol remains reported and 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T07:47:23.538534Z 0445190 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Contributor

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.

@RobinLinus
RobinLinus merged commit d7a85e0 into solving-bitcoin:main Oct 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants