Skip to content

Validate Binohash scriptSig encoding malleability in Core - #343

Open
adrienlacombe wants to merge 1 commit into
solving-bitcoin:mainfrom
adrienlacombe:codex/binohash-scriptsig-malleability
Open

adrienlacombe wants to merge 1 commit into
solving-bitcoin:mainfrom
adrienlacombe:codex/binohash-scriptsig-malleability

Conversation

@adrienlacombe

@adrienlacombe adrienlacombe commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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_PUSHDATA1 encoding 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 under CONST_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
  • All three CI jobs passed, including the locked non-field Rust suite and pinned Core comparisons.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T19:21:41.667198Z 6833ca5 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.

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.

1 participant