Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: biteuro on December 04, 2017, 12:52:38 PM



Title: Master Public Key (NEED HELP) ZENCART
Post by: biteuro on December 04, 2017, 12:52:38 PM
Hello Bit forum,

I took over some webshops that accept BITCOINS as payment, and we changed the Master Public Key in the ZENCART backend payment modeule, however, its still sending wrong BITCOIN addresses to customers order confirmation email.
What can be wrong? I double checked the the Master Public Key many times and it match the one I have in ELECTRUM wallet.
 
The ELECTRUM wallet works fine as I just sent a 5$ testing transfer to one of the listed addresses in the wallet. But it still doesnt work with the Master Public Key, or the websites doesnt send the correct BITCOIN addresses to customers in their order confirmation as I just said above.

Please advise.
Thanks  ??? ??? ???


Title: Re: Master Public Key (NEED HELP) ZENCART
Post by: HCP on December 05, 2017, 03:49:06 AM
You're probably using the wrong Derivation Path to generate the addresses off your Electrum Master Public Key. Electrum DOES NOT use BIP44 derivation path of m/44'/0'/0'

Try using m/0 and see if that generates the correct addresses. You can experiment here: https://iancoleman.io/bip39/ (You can download and run it "offline"... but it shouldn't matter with xpubs ;)

- Set "BIP32 Root Key" (at the top) to be your xpub
- Click the "BIP32" tab
- Set "Client" to "Custom derivation path"
- Set "BIP32 Derivation Path" to m/0

You should get the same addresses generated at the bottom as you get from Electrum.