Repository navigation
Validate Binohash scriptSig encoding malleability in Core - #343
Open
adrienlacombe wants to merge 1 commit into
Open
adrienlacombe wants to merge 1 commit into
adrienlacombe wants to merge 1 commit into
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Question
Does changing only the scriptSig encoding of a selected puzzle signature preserve the toy Binohash spend while changing its txid?
Change
Extend the funded 2-of-3 P2SH fixture with an
OP_PUSHDATA1encoding of the same puzzle signature. The Core runner mines the alternate, invalidates its block, then mines the canonical encoding against the same prevout at the same height. The checked report records both consensus and default policy results, txids, complete transaction weights, and regression guards.Both encodings pass pinned Core v30.3 consensus and have different txids. The nonminimal push adds 1 scriptSig byte / 4 WU and fails default policy under
MINIMALDATA; the canonical spend fails underCONST_SCRIPTCODE. The local legacy sighash is unchanged. This is a reduced legacy fixture, with no full transaction pinning or security claim.Validation
cargo test --locked --example binohash_subset_fixtures(1 passed)python3 tools/binohash_subset_regtest.py(checked Core report passed)python3 -m unittest discover -s tools -p 'test_binohash_subset_regtest.py'(3 passed)python3 tools/kb.py validate(203 records, 782 configurations)cargo fmt --all -- --check;git diff --check