Open BitcoinZavior opened 1 year ago
We would need to add two things for this:
wsh
script typeThis would then also require the policy_id
function to be exposed. It would up the user to know what they are doing if they venture into creating complex scripts and they would have to know how to parse their policy and specify which nodes in the policy they are signing for.
Yes, we will probably follow bdk-ffi api which in turn follows bdk api.
Large variety of descriptors are possible reference: https://github.com/bitcoin/bitcoin/blob/master/doc/descriptors.md
createDescriptor
should be able to create as many of these descriptors as possible.