Bitcoin
A$ 83,961
WINkLink
A$ 0.0008561
Ethereum
A$ 5,097.5

How are taproot scripts represented in general?

I’m pretty familiar with the opcode style of writing down scripts. I can understand the stack-based language nature of bitcoin script where you can write down different script spend paths via ifs like this:

OP_IF
   <3, publicKey1, publicKey2, publicKey3, 2, ...> OP_CHECKMULTISIGVERIFY
OP_ELSE
   <7 days> OP_CHECKSEQUENCEVERIFY
   <3, publicKey1, publicKey2, publicKey3, 1, ...> OP_CHECKMULTISIGVERIFY
OP_ENDIF

which can then be executed with a scriptSig like "ignored" key1Sig 1 or "ignored" key2Sig 0.

However, I don’t know a good way to write down spend paths for taproot. Eg, if I want to say have a key spend-path using a threshold signature, and I want 3 script spend-paths, one of which has two nested script spend-paths, what’s a good way to represent that. Or rather, how has that been represented in the past? And how does a transaction spending an output select which taproot script spend-path it wants to use? In the current script, one of the if branches is selected with either 1 or 0 pushed onto the stack via the scriptSig. In Taproot, how is the spend path selected?

Related Posts

Leave a Reply

Subscribe To Newsletter

For updates and exclusive offers, enter your e-mail below.

Donate To Cryptonic Australia


Donate BTC: 1MPYuHUKm3AhNivMSngqLnoEbpNEecHeEK
Donate Doge: DDYybw7H8zx8EYU74JrGW8WwmYh9AGuyMC
Donate WinK: TDiXutqKE3P17LpZMQh3SDBCGSkAC6iEjB




Update bitcoincore 22.0 [duplicate]
October 19, 2021
Mining logistics/algorithm beginner numerical example?
October 19, 2021
Solana blockchain. How can i generate private key? [closed]
October 19, 2021




Update bitcoincore 22.0 [duplicate]
October 19, 2021
Mining logistics/algorithm beginner numerical example?
October 19, 2021
Solana blockchain. How can i generate private key? [closed]
October 19, 2021


CryptoCurrencyAUDChange 1hChange 24hChange 7d
Bitcoin83,961 0.52 % 1.00 % 8.99 %
Ethereum5,097.5 0.00 % 1.00 % 7.69 %
Binance Coin651.79 0.12 % 1.61 % 17.98 %
Tether1.340 0.33 % 0.06 % 0.22 %
Cardano2.830 0.26 % 0.62 % 2.57 %
XRP1.450 0.16 % 0.64 % 4.42 %
Solana208.82 0.04 % 0.80 % 7.74 %
Polkadot54.21 0.05 % 1.50 % 18.75 %
USD Coin1.340 0.41 % 0.27 % 0.43 %
Dogecoin0.3268 0.26 % 3.92 % 5.29 %

Recent Comments

Allison wick

I was a victim of WDC Markets investment scam some months ago myself. It was...

Greatness

he is the best when it comes to recovery, he helped recover my funds without...

URL

... [Trackback] [...] There you will find 63491 more Infos: cryptonic.com.au/evaluation-suggests-bitcoin-robust-palms-are-shopping-for-this-dip/ [...]