Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

0 votes

How do I construct a P2TR address if I just want to use the key path?

You can read the following code, the key point is that the root of TapRoot should be an empty array so only the public key is hashed. https://github.com/mohanson/pybtc/blob/...
Mohanson's user avatar
5 votes
Accepted

What is Tapscript?

Script (uppercase S, also Bitcoin Script) is the scripting language used in Bitcoin. Its programs are called "scripts" (lowercase s), often with an adjective based on the location of the ...
Vojtěch Strnad's user avatar
3 votes
Accepted

How do pre-Segwit nodes interpret transactions containing Taproot OP_CHECKSIGADD?

Tapscript can only appear in leaf scripts. Leaf scripts can only appear in the witness stack of a P2TR script path spend. Pre-segwit nodes don’t see witness data. Ergo, a pre-segwit node will never ...
Murch's user avatar
  • 75.7k
2 votes

How do pre-Segwit nodes interpret transactions containing Taproot OP_CHECKSIGADD?

OP_CHECKSIGADD is only defined for SegWit v1 (Taproot). A pre SegWit v1 node that doesn't recognize Taproot rules will treat all SegWit v1 outputs as "anyone can spend" regardless of whether ...
Michael Folkson's user avatar
1 vote
Accepted

What did the opcode 0xba do prior to creation of OP_CHECKSIGADD?

Before the Taproot soft fork the opcode 186 (0xba) was an undefined opcode. Undefined opcodes abort verification and consider the transaction to be invalid. There are also OP_NOP opcodes that are ...
Michael Folkson's user avatar

Top 50 recent answers are included