Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correction: issue 2/23/2022 #726

Open
Crypt-iQ opened this issue Feb 23, 2022 · 1 comment
Open

correction: issue 2/23/2022 #726

Crypt-iQ opened this issue Feb 23, 2022 · 1 comment

Comments

@Crypt-iQ
Copy link

In the Q&A section I think one bit is wrong:

Third is that, for non-taproot inputs, the requirement of a single element on the stack after execution is only a policy rule, not a consensus rule.

I believe that segwit-v0 inputs have the clean stack rule implicit in their validation and would therefore be consensus.
Code in bitcoin core (I don't think the taproot pr changed this line): https://github.com/bitcoin/bitcoin/blob/077cfffebd1b12ec4e2efb949fd9a79fb5be3748/src/script/interpreter.cpp#L1847-L1848

@murchandamus
Copy link
Collaborator

I think you are correct, P2WSH has a rule equivalent to cleanstack:
image

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

No branches or pull requests

2 participants