Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 121614

Pay to Taproot is the native SegWit v1 output format. It commits directly to a public key which can optionally be tweaked with the hash of a script tree. This combines capabilities of previous output formats which were usually based on either a public key hash or a script hash. P2TR addresses are Bech32m encoded and start with the prefix `bc1p`.

3 votes
Accepted

Is there a point to using taproot transactions over P2WSH if I only want to use the script p...

See question: Is there an economic incentive to use P2WSH over P2TR? … Privacy: Because P2TR combines key and script spending, an unspent P2TR output reveals less information than either a P2WPKH or P2WSH output. …
Vojtěch Strnad's user avatar
1 vote
Accepted

Combine two p2tr addresses into one

Yes, since the spending conditions of a P2TR address are either to provide a signature for a public key or to satisfy any of the scripts in the script tree, the spending conditions of multiple P2TR addresses … However, this can only be done by someone who knows the structure of the original P2TR addresses' script trees, as the addresses only encode the public keys. …
Vojtěch Strnad's user avatar
6 votes
Accepted

Is there an economic incentive to use P2WSH over P2TR?

Yes, having only a single leaf and all else being equal, a P2TR input costs 34 witness bytes (8.5 vbytes) more than a P2WSH input with the same script. … However, almost all current usage of P2WSH (which consists mainly of multisigs and Lightning channels) can benefit from the features of P2TR to reduce costs. …
Vojtěch Strnad's user avatar
2 votes

Can I spend a P2PKH transaction via the script-path of P2TR?

So no, you can't spend a P2PKH UTXO using P2TR rules. … You can do the same with script-path P2TR (example transaction), but again, not useful. …
Vojtěch Strnad's user avatar
3 votes
Accepted

How can taproot transactions manage to store so much data?

In P2TR, the scripts are only implicitly bounded by the block weight limit. …
Vojtěch Strnad's user avatar
3 votes
Accepted

non-mandatory-script-verify-flag (Invalid Schnorr signature) when trying to reveal a TR output

Your transaction is a key path spend, not a script path spend (it only has one witness item, the signature). Perhaps you've calculated the sighash for a script path spend but then only included the si …
Vojtěch Strnad's user avatar
0 votes

Why there duplicated transactions on the blockchain? (with different hashes)

These are BRC-20 mint transactions. If you look at any of the inputs, you can see it is a Taproot script path spend that includes an unexecuted branch with several data pushes, the first of which push …
Vojtěch Strnad's user avatar
5 votes
Accepted

"Witness program hash mismatch" code -26 when broadcasting a transaction

"Witness program hash mismatch" in a Taproot script path spend means the Taproot commitment wasn't successfully verified, in other words the internal key tweaked with the taptweak hash (constructed fr …
Vojtěch Strnad's user avatar
5 votes
Accepted

How can I tell if a Taproot input is a key path spend or a script path spend?

In a key path spend the sender just provides a signature that's valid for the public key in the P2TR output and the transaction being signed. … In a script path spend the sender needs to provide a script, a proof that the P2TR output commits to this script (called the control block) and the initial stack to the script in order to satisfy it (which …
Vojtěch Strnad's user avatar
3 votes
Accepted

How can I find the public key corresponding to a P2TR input?

up the transaction output referenced by the txid and index in the input, so there's rarely a reason to use a method that only works for some output scripts, and requires you to know the output type (P2TR
Vojtěch Strnad's user avatar
7 votes
Accepted

How to extract the internal key of a simple P2TR address?

A P2TR address encodes a public key using Bech32m, which you can directly decode. …
Vojtěch Strnad's user avatar
3 votes
Accepted

Validation of segwit v0-v1 tx automatically adds OP_CHECKSIG?

P2SH, P2WSH and P2TR-script-path require the recipient to reveal a script (which usually includes OP_CHECKSIG or other signature checks) and satisfy it. … Finally, P2TR-key-path requires only a signature. …
Vojtěch Strnad's user avatar
1 vote
Accepted

Can one infer the multisig status of a P2TR spend?

This is possible with every output type except for P2TR. … Merklized Alternative Script Trees A P2TR output can optionally commit to a script tree (MAST). …
Vojtěch Strnad's user avatar
8 votes
Accepted

How do the fees for taproot transactions compare to P2WPKH?

Specifically, P2WPKH (Native SegWit) inputs and outputs take 68 and 31 vbytes in a transaction, respectively, while P2TR (Taproot) inputs and outputs take 57.5 and 43 vbytes, respectively. …
Vojtěch Strnad's user avatar