Closed maxidev closed 3 years ago
[Solved] I will close the issue but if someone stumbles with the same problem, key thing is to SORT lexicographically the pubkeys buffer array as described in: https://github.com/bitcoin/bips/blob/master/bip-0067.mediawiki
duplicate of #1667
Hi there, I think this is not a problem with a library itself but rather with my implementation, but not sure what I'm doing wroing. I'm writing a simple script to derive multisig addresses based on 2 xpub (2 of 2 scheme).
xpub1 = "xpub6B7t__c2y"; xpub2 = "xpub6B1TUPxg";
I'm deriving first public key from each xpub to then create the multisig address
Now, it works and outputs an address but weird thing that is DIFFERENT from Electrum and Bluewallet address, so I guess it is something wrong with derivation paths but I'm not sure.
Weird thing is that if i set the .derive(0).derive(1) on both public keys I got the SECOND address generated by Electrum and Bluewallet.
Can someone point me in the right direction?
Thanks in advance.