Skip to content

Add check for greater than or equal 2 witness stack for annex - #384

Open
stringhandler wants to merge 1 commit into
BlockstreamResearch:masterfrom
stringhandler:st-fix-annex-lt-2
Open

stringhandler wants to merge 1 commit into
BlockstreamResearch:masterfrom
stringhandler:st-fix-annex-lt-2

Conversation

@stringhandler

Copy link
Copy Markdown
Contributor

In elements, the code that extracts the annex has a check for at least 2 items. This check was missing from rust-simplicity, meaning the code could unintentionally detect another witness item as an annex when it started with 0x50.

In elements, the code that extracts the annex has a
check for at least 2 items. This check was missing from 
rust-simplicity, meaning the code could unintentionally
detect another witness item as an annex when it started with 
0x50.

Assisted-by: Claude
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