Open xiaodong0228 opened 6 years ago
you can reference to https://github.com/LedgerHQ/ledgerjs/issues/176 and https://github.com/LedgerHQ/ledgerjs/issues/245. And can you help me to resolve this issue https://github.com/LedgerHQ/ledgerjs/issues/248 ?
Hi, I'm trying to use the "signP2SHTransaction" method to sign 2-of-2 transaction for a demo app, while it always failed on BlockCypher.com . I think the reason may be that redeem script is invalid, which was generated by the 2 public keys (multi-sig, one is from Ledger, the other is from my app). Because I found that I can't get the corresponding bitcoin address, which is shown from Ledger by method "getWalletPublicKey" , from public key shown by method "getWalletPublicKey".
It should be that I can get the same bitcoin address from the public key of one Ledger HD Wallet. So, I to get the bitcoin address with the public key from one Ledger HD Wallet, using bitcorejs library and bitcoinjs library. While, the result is that, addresses from bitcoinjs and bitcorejs respectively are the same, but different from the address shown from Ledger.
Do you have any advices? Or, is there any mistake in my procedure above?