Can output descriptors be used to describe an arbitrary script?
Say I had a script something like the following:
OP_IF
1737417600 OP_CHECKLOCKTIMEVERIFY OP_DROP OP_DUP OP_HASH160 <pubKeyHashD> OP_EQUALVERIFY OP_CHECKSIG
OP_ELSE
2 <PubKeyA> <PubKeyB> <PubKeyC> 3 OP_CHECKMULTISIG
OP_ENDIF
That's a two-branch script that either allows a 2-of-3 multisig or a single-address retrieval after a set amount of time. Is there a way to convert that into descriptor that I could then use to derive addresses?
wsh
seems focused on set types of scripts, while trying raw
on a 32-bit hash of a script gives me Descriptor does not have a corresponding address
.