Bitcoin Stack Trade 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 most effective solutions are voted up and rise to the highest
Requested
Seen
14 occasions
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 right 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 solution to know through the ins (through 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 solution to know through the ins (through getrawtransaction RPC name) if it is a TPR transaction?
There is no such thing as 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 attainable to acknowledge them simply primarily based on enter knowledge, although this isn’t assured to stay attainable with future upgrades:
- If an enter has precisely one witness stack merchandise (after eradicating the non-compulsory annex, if any), it’s a Taproot key path spend.
- If an enter has two or extra witness stack objects (after eradicating the non-compulsory annex, if any), and the final merchandise of these begins with byte 0xc0 or 0xc1, it’s a BIP342 taproot script path spend.