Bitcoin Stack Alternate is a query and reply website for Bitcoin crypto-currency lovers. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The very best solutions are voted up and rise to the highest
Requested
Considered
19 instances
I am making an attempt to “distill” Taproot transactions within the uncooked transaction output, however:
- It’s nonetheless not clear to me what tx model quantity a Taproot transaction makes use of.
- The way to discover out if it is a TPR transaction containing an inscription (within the witness) or only a regular tx with TPR signalled.
- Is there a option to know by way of the ins (by way of getrawtransaction RPC name) if it is a TPR transaction?
- It’s nonetheless not clear to me what tx model quantity a Taproot transaction makes use of.
Any transaction model quantity can have Taproot inputs or outputs.
- Is there a option to know by way of the ins (by way of getrawtransaction RPC name) if it is a TPR transaction?
There isn’t a such factor as a “Taproot transaction”; there are Taproot outputs and Taproot inputs.
Taproot outputs may be acknowledged by having a scriptPubKey consisting of OP_1 adopted by a 32-byte push.
Taproot inputs are outlined as simply inputs that spend taproot outputs. It’s for now potential to acknowledge them simply primarily based on enter information, although this isn’t assured to stay potential with future upgrades:
- If an enter has precisely one witness stack merchandise (after eradicating the elective annex, if any), it’s a Taproot key path spend.
- If an enter has two or extra witness stack objects (after eradicating the elective annex, if any), and the final merchandise of these begins with byte 0xc0 or 0xc1, it’s a BIP342 taproot script path spend.
2