Author

Topic: I accidentally used BTC xpub key to generate BCH HD wallet addresses (Read 210 times)

hero member
Activity: 1204
Merit: 630
This may not be a threat to your assets. But I can't say the same about transparency. Xpub-enabled wallets allow you to receive anonymous payments through different addresses.

But no matter what, I think you can reliably transfer your funds in that wallet to another and new wallet. You take precautions against any problems that may occur in the future.
jr. member
Activity: 109
Merit: 8
What derivation path did you use?
HCP
legendary
Activity: 2086
Merit: 4363
Surprisingly, I was able to recover the funds by changing the key derivation path of my BCH wallet to match a BTC wallet!
Yeah... the reason why the account extended key would be different is because the derivation path that a given coin uses should have a different "coin_type" value:

m / purpose' / coin_type' / account' / change / address_index

So, for Bitcoin it would be m/44'/0'/0'/0/0 but for BCH it would be m/44'/145'/0'/0/0

If you simply use the Bitcoin path in a BCH wallet, it will work and should provide the 'same' addresses (assuming the BCH wallet allows custom derivation paths). This is basically what Ledger did for their "split" wallet when the BCH fork happened. Ie. It allowed you to access the BCH in you BTC derivation path.

So-called "Registered" coin_types can been found here: https://github.com/satoshilabs/slips/blob/master/slip-0044.md
newbie
Activity: 9
Merit: 12
I looked into it and BIP32 Extended Public Key for BTC and BCH is the same. But I used the BIP44 Account Extended Public Key and these are not the same for BTC and BCH. I set up a wallet in ElectronCash and I do not see the funds either.

Am I out of luck?



Surprisingly, I was able to recover the funds by changing the key derivation path of my BCH wallet to match a BTC wallet!
legendary
Activity: 1876
Merit: 3139
I accidentally used a BTC xpub key to generate BCH HD wallet addresses for an online store. The BTC xpub key is from the same seed (mnemonic). Is there any way to recover the funds?

Recovery is fairly easy for legacy and multisig wallets. Download Electron Cash and create a new wallet using your seed. You should be able to access your coins without any problems.
newbie
Activity: 9
Merit: 12
Hi,

I accidentally used the wrong xpub key to generate BCH HD wallet addresses.

I used the BTC BIP44 Account Extended Public Key (from the same mnemonic seed) to generate BCH HD wallet addresses under BIP44. The BIP44 Account Extended Public Key for BTC and BCH is not the same. Only the BIP32 Extended Public Key is the same for BCH and BTC. Is there any way to recover the funds?
Jump to: