Author

Topic: What happened to the MPK hex representation? (Read 619 times)

legendary
Activity: 3696
Merit: 1584
April 23, 2015, 04:55:16 AM
#5
Hi all, I have asmall problem. Now the MPKs in the latest version do not seem to be in hex. And after they are converted they seem to break compatibility with  php addr_gen. So I wanted to ask if there were drastic changes in BIP0032 or is there something I am doing wrong here. Thanks for the help.

what php tool are you using?
mpk are not represented with hexadecimal in bip32

https://github.com/prusnak/addrgen

I have been using it for years now. I converted the string to hex using bintohex (php) but the code doesn't work anymore with the output. So I thought maybe this is a new different more efficient or whatever implementation of BIP0032.

That code hasn't been updated to support bip32. You can use bitwasp's code instead:

https://github.com/Bit-Wasp/bitcoin-php

Be warned, though, that it has a lot of dependencies. AFAIK there is no compact bip32 version like Rusnak's addrgen for php.
full member
Activity: 137
Merit: 100
It's not a change in the implementation of BIP32, it's a change in Electrum's wallet implementation to BIP32. Electrum's deterministic wallets that you've been using for years came along before BIP32 even existed. Recent versions of Electrum (2.0.0+) have moved on to creating a BIP32 wallet by default, which of course uses the "xpub" representation of the master public key as defined in BIP32 instead of the hex representation. Key derivation is also different with BIP32, a BIP32 master public key is not compatible at all with tools like addrgen that were designed for Electrum's previous wallet format.

If you have the 12 word seed from an older Electrum wallet (or an older version of Electrum to create a new seed with), I do believe you can import that seed into recent BIP32-enabled versions of Electrum and it should use the old wallet format for that wallet. If so, that's your easiest path forward. If not, you'll need to find some PHP code that handles BIP32 key derivation, unfortunately I don't know of any off the top of my head.
hero member
Activity: 924
Merit: 1001
Unlimited Free Crypto
Hi all, I have asmall problem. Now the MPKs in the latest version do not seem to be in hex. And after they are converted they seem to break compatibility with  php addr_gen. So I wanted to ask if there were drastic changes in BIP0032 or is there something I am doing wrong here. Thanks for the help.

what php tool are you using?
mpk are not represented with hexadecimal in bip32

https://github.com/prusnak/addrgen

I have been using it for years now. I converted the string to hex using bintohex (php) but the code doesn't work anymore with the output. So I thought maybe this is a new different more efficient or whatever implementation of BIP0032.
legendary
Activity: 1896
Merit: 1353
Hi all, I have asmall problem. Now the MPKs in the latest version do not seem to be in hex. And after they are converted they seem to break compatibility with  php addr_gen. So I wanted to ask if there were drastic changes in BIP0032 or is there something I am doing wrong here. Thanks for the help.

what php tool are you using?
mpk are not represented with hexadecimal in bip32
hero member
Activity: 924
Merit: 1001
Unlimited Free Crypto
Hi all, I have asmall problem. Now the MPKs in the latest version do not seem to be in hex. And after they are converted they seem to break compatibility with  php addr_gen. So I wanted to ask if there were drastic changes in BIP0032 or is there something I am doing wrong here. Thanks for the help.
Jump to: