Sjors / libwally-swift

Swift wrapper for LibWally, a collection of useful primitives for cryptocurrency wallets
MIT License
40 stars 18 forks source link

creating multisig transactions possible? #51

Closed Fonta1n3 closed 2 years ago

Fonta1n3 commented 3 years ago

I am attempting to build a multisig transaction using libwally-swift with a p2wsh input/output but getting stuck when specifying the Witness type for my input as it seems to be limited to p2wpkh and p2sh-p2wpkh e.g. single sig types only.

Is there something I am missing? Is it just a limitation of libwally-swift at the moment that only single sig transactions can be created?

Thanks, Fontaine

Sjors commented 3 years ago

@Fonta1n3 I haven't tested this flow, because for my own purpose (unrelated to Blockchain) I rely on PSBT generated by Specter Desktop. Afaik the Blockchain wallet doesn't use PSBT at all.

I'm happy to review a change that supports it though, just make sure there's good test coverage.