How to build custom scripts? #49
-
I'm trying to create a custom script that has some arbitrary data followed by a multisig address paying to one of two public keys, where; pubkey1 is user defined (either ecdsa or schnorr derived) and pubkey2 is a taproot (segwit v1). The script is should end up something like;
with the multi-sig wrapped in a custom script via a p2wsh address (or p2tr address?) e.g.
My question is whether this is feasible - ie is this the correct way to compile custom scripts? And also which combinations of pubkeys and multi sig payment descriptors are currently possible / supported by scure btc-signer ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This looks reasonable, should work, but I would suggest to test it against testnet first.
Does't work:
https://github.com/paulmillr/scure-btc-signer#payments contains a list of currently supported descriptors, tested against regnet. Taproot only supports schnorr pubkeys, other descriptors only support compressed. |
Beta Was this translation helpful? Give feedback.
-
Instead of going with a p2wsh above we decided to use taproot and funding transaction became;
This tx is here trying to spend the first output by passing the PSBT to Bitcoin Core (owning
Bitcoin Core returns I guess (am a little lost in taproot tbh) the question is the tapBip32Derivation required and if so is their an easy way to locate it from the p2tr data already within the lib ? |
Beta Was this translation helpful? Give feedback.
-
Ordinals got easier with 1.3.0 https://github.com/paulmillr/scure-btc-signer/releases/tag/1.3.0 |
Beta Was this translation helpful? Give feedback.
Ordinals got easier with 1.3.0 https://github.com/paulmillr/scure-btc-signer/releases/tag/1.3.0