
[ad_1]
Bitcoin Stack Change is a query and reply web site for Bitcoin customers, builders, and lovers. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
One of the best solutions are voted up and rise to the highest
Requested
Considered
14 instances
This Taproot transaction has 3 witness gadgets that are preliminary stack for P2TR script. Execution of the tapscript goes one thing like this:
- push (4 gadgets on the stack)
checksig
operation (leads to pushing1
on the stack – we’re again on a 3 gadgets on the stack)- push an empty aspect (4 gadgets on the stack)
OP_IF
with an empty aspect as an enter; it doesn’t consider (3 gadgets on the stack)- the tip (3 gadgets on the stack)
Because the consensus rule for tapscript is that execution cannot lead to something however precisely one aspect on the stack which evaluates to true, I’m asking how is that this transaction legitimate?
There are certainly 3 witness gadgets, however solely the primary of them varieties the preliminary stack. The second is the script itself (proven in disassembled type additional on the web page you linked to), and the third is the taproot management block (which proves how spending with this script is permitted by the output).
[ad_2]
Supply hyperlink