Hot answers tagged

2

You can use them, but you need to ensure that the hardware wallets use the same address derivation paths. For the hardware wallets you mentioned (Trezor and Ledger) both of them use the BIP 39/BIP 44 derivation paths, so that should work, especially in the case of Bitcoin. However care has to be taken for certain coins (ETH or any other ERC-20 for example) ...


2

You can't. Bitcoin Core currently does not support importing extended public keys.


1

Your best bet would be to export the xpub key for each account from your ledger. Once you have that, generating new addresses can be automated via any number of bitcoin libraries, such as bitcoinjs-lib. Similar options exist for ethereum. I'm not entirely sure if they have a straighforward way to export the xpub, but I recall seeing it in the ledger live ...


1

I wrote a tiny module to do just this: https://github.com/lukechilds/build-output-script It can be used like so: const buildOutputScript = require('build-output-script'); buildOutputScript([{address: '1LukeQU5jwebXbMLDVydeH4vFSobRV9rkj', value: 100000000}]); // '0100e1f505000000001976a914da6473ed373e08f46dd8003fca7ba72fbe9c555e88ac' You can pass in ...


1

A public key can have multiple addresses. It looks like what is happening here is that Electrum is creating a P2SH-P2WPKH type address while your NodeJS code is creating a P2PKH address. These are two different address types which have different spending requirements and transaction data. However Bitcoin sent to either address type can still be spent with ...


1

This is why people say "Not your keys, not your bitcoin. Your keys, your bitcoin". The online marketplace owner owns the private key of the address that your friend used to fund his account. The owner of the marketplace can always say he lost the private key of your friends' account, but if he wants, he can prove ownership by signing a message with the ...


1

Yes. You can get the public key, chaincode, and address for any derivation path. If you use the btchip-python library, you can use the getWalletPublicKey() method to retrieve a dictionary containing all three of those things.


Only top voted, non community-wiki answers of a minimum length are eligible