Repository navigation
Map Binohash legacy sighash field commitments - #294
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. |
There was a problem hiding this comment.
💡 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 |
There was a problem hiding this comment.
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 👍 / 👎.
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…00digest. 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 fullCARGO_PROFILE_TEST_OPT_LEVEL=1 cargo test --locked -- --skip 'fields::'suite.