Skip to content

Test tapscript CODESEPARATOR signature positions - #1

Open
adrienlacombe wants to merge 1 commit into
bob-collective:fix/op_codeseparatorfrom
adrienlacombe:codex/codeseparator-regression-tests
Open

adrienlacombe wants to merge 1 commit into
bob-collective:fix/op_codeseparatorfrom
adrienlacombe:codex/codeseparator-regression-tests

Conversation

@adrienlacombe

Copy link
Copy Markdown

Add deterministic signature regression coverage to the existing BitVM CODESEPARATOR fix #16. This targets fix/op_codeseparator so the tests can accompany your existing change; it does not replace or duplicate its implementation.

Eight groups cover the no-separator sentinel, position zero, direct/PUSHDATA1/PUSHDATA2/PUSHDATA4 pushes, parsed but skipped instructions, skipped separators, the most recent executed separator, rejection of byte-offset signatures, and unchanged legacy/Segwit opcode limits. Expected positions are explicit constants and signatures are generated deterministically against real transaction/prevout data.

Validation: all 21 tests pass on your fix, including its existing transaction fixture. Against unchanged BitVM ba96bc2, five of the eight new groups fail. Candidate and baseline use separate build directories to avoid shared cdylib/rlib artifacts. A separate funded Core v30.3 experiment confirms the ordinary/skipped-prefix correct-position and wrong-byte-offset transaction outcomes; integration with your fix matches all four.

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