So, from what I understand, to set up a Script Tree with Script Path 1:
and Script Path 2:
I need to use a Taproot expression like this: tr(InternalKey,{multi_a(2,Key1,Key2),pk(Key3)}). This way, I can import the descriptor into Bitcoin core without needing the private key.
But if I wanna change script path 2 to
I'm kinda stuck on what expression to use here.
tr(InternalKey,{sortedmulti_a(2,Key1,Key2),???)}
Need help with Taproot tree expression
4 replies 25 views
Descriptors cannot describe all arbitrary scripts, only a subset with specific properties that make them analyzable. You must use Miniscript for those scripts.
The miniscript that you want is probably something like
and that would make a script of
Thank you for the explanation. Now I know that because tree expressions in Taproot output have limitations, then to describe certain arbitrary scripts I have to use Miniscript, so that valid descriptors can be generated.
With your explanation, I succeeded in importing the descriptor: tr(InternalKey,{sortedmulti_a(2,Key1,Key2),and_v(v:pk(key3),older(10))}) , and successfully created a transaction with the multisig 2-of-2 script path spend (through the GUI or using a console with walletcreatefundedpsbt option), but still have no luck in creating transactions with and_v(v:pk(key3),older(10)) script path spend.
Not all Miniscript can be signed yet. I think we haven't implemented everything that's needed to pass in the information required to sign for both kinds of timelocks as well as hashlocks.
Ah, I see. I thought there is something wrong with the variables that I used when building the transaction with walletcreatefundedpsbt, because for every change in the variables and arguments that I used, the results are the same, where the psbt cannot be signed with (Key3) descriptor.
Related topics
- Need Help! Funds Gone / Wrong Address 10
- What tools can help build test Bitcoin chains? 2
- Bitcoin Core displaying coins (UTXOs) in a new tab 13
- Are you in favor of BIP-110? Let's get a Bitcoin poll going. 0
- Erlay seems to have some issues here’s a better proposal for a bitcoin protocol without invites 3
- New Optional Hourglass Implementation is Live 3