bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.68k stars 2.1k forks source link

Use Trezor to sign BIP49 SegWit Multisig raw transaction? #896

Closed hoangan closed 7 years ago

hoangan commented 7 years ago

Is there a way to sign BIP49 Segwit Multisig raw transaction using Trezor?

Thanks

afk11 commented 7 years ago

Yea this is pretty easy with the library. We don't have examples for such a specific case, though there are some in the readme that should be enough to get you started.

BIP49 is just BIP32, with a specific type of script being used for the address, & transaction signing is unchanged. Check the BIP32 examples, the BIP49 BIP, and the segwit address examples, then the transaction signing examples.

dcousens commented 7 years ago

There is even a BIP49 derivation example.

Combine that with a multi-sig transaction example, and you're good to go.

hoangan commented 7 years ago

Thanks guys.