Skip to content

Map Binohash legacy sighash field commitments - #294

Merged
RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
adrienlacombe:codex/binohash-sighash-matrix
Nov 9, 2026
Merged

RobinLinus merged 1 commit into
solving-bitcoin:mainfrom
adrienlacombe:codex/binohash-sighash-matrix

Conversation

@adrienlacombe

Copy link
Copy Markdown
Contributor

The deterministic Binohash core reproduces legacy sighash mutation, but the repository did not state which transaction fields each canonical sighash mode actually binds in a fixed selected-signature template. This adds a host-side commitment matrix: eight single-field mutations across ALL, NONE, SINGLE, and their ANYONECANPAY variants, with a separate out-of-range SIGHASH_SINGLE control.

The tests show exactly which mutations change the selected digest and where the historical SINGLE bug returns the same non-committing 01 00…00 digest. A research README, catalog configuration, comparison, and OP-011 progress note distinguish this locally reproduced host result from signed-spend or Core consensus validation. It makes no transaction-pinning or Binohash security claim.

Validation: cargo test --locked --test binohash_sighash_matrix; python3 tools/kb.py validate; cargo fmt --all -- --check; git diff --check; and the full CARGO_PROFILE_TEST_OPT_LEVEL=1 cargo test --locked -- --skip 'fields::' suite.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 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-29T07:48:14.592042Z 810b6ed 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 810b6ed99f

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- **Comparison objective:** Apply the same eight deterministic mutations to a
two-input, two-output template under each of the six canonical ECDSA sighash
flags, without changing the selected script or input index.
- **Execution class:** `locally-reproduced`, `unclassified`. The test invokes

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Separate evidence from execution classification

locally-reproduced is an evidence level, not an execution class; only unclassified belongs under this heading. Grouping both values as the execution class makes this experiment's evidence/deployment metadata inconsistent with the catalog and comparison rows, so give evidence its own field (or describe it separately) and leave execution as unclassified.

AGENTS.md reference: AGENTS.md:L25-L40

Useful? React with 👍 / 👎.

@RobinLinus
RobinLinus merged commit 3fed1c8 into solving-bitcoin:main Nov 9, 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