Hi, guys.
I had generated multisig address with bitcore-lib on JS:
1. Generate 3 HD private keys and HD public keys.
2. Converted HD public keys to relugar keys.
3. Created the multisig address.
And everything goes fine. But, when I restore multisig address in Electrum with HD keys, I don't see there are my multisig address.
Has anyone encountered a similar problem?
I would be grateful for your help.
There could be a few reasons for this:
- the order of the pub key matters. a different order will yield a different address. electrum puts the pub keys in lexicographic order first:
http://bitcoin.stackexchange.com/a/40382 so make sure you do the same
- the address derivation path matters. This is what electrum uses:
http://bitcoin.stackexchange.com/a/36956So make sure the above is all consistent with what electrum does.
Alternatively you could create a watch only installation of electrum on your server and have electrum derive addresses. Electrum has a daemon mode that you can use. You use the addrequest command to get addresses but note that it won't create more addresses than the gap limit so you'll have to increase the gap limit + keep track of which addresses have been used in case you exceed the gap limit.