Bitcoin Forum
April 26, 2024, 06:21:15 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What happened to the MPK hex representation?  (Read 592 times)
lophie (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1001

Unlimited Free Crypto


View Profile
April 20, 2015, 07:11:16 AM
 #1

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.

Will take me a while to climb up again, But where is a will, there is a way...
1714112475
Hero Member
*
Offline Offline

Posts: 1714112475

View Profile Personal Message (Offline)

Ignore
1714112475
Reply with quote  #2

1714112475
Report to moderator
1714112475
Hero Member
*
Offline Offline

Posts: 1714112475

View Profile Personal Message (Offline)

Ignore
1714112475
Reply with quote  #2

1714112475
Report to moderator
1714112475
Hero Member
*
Offline Offline

Posts: 1714112475

View Profile Personal Message (Offline)

Ignore
1714112475
Reply with quote  #2

1714112475
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714112475
Hero Member
*
Offline Offline

Posts: 1714112475

View Profile Personal Message (Offline)

Ignore
1714112475
Reply with quote  #2

1714112475
Report to moderator
1714112475
Hero Member
*
Offline Offline

Posts: 1714112475

View Profile Personal Message (Offline)

Ignore
1714112475
Reply with quote  #2

1714112475
Report to moderator
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
April 20, 2015, 10:23:28 AM
 #2

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

Electrum: the convenience of a web wallet, without the risks
lophie (OP)
Hero Member
*****
Offline Offline

Activity: 924
Merit: 1001

Unlimited Free Crypto


View Profile
April 20, 2015, 07:19:11 PM
 #3

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.

Will take me a while to climb up again, But where is a will, there is a way...
stevenh512
Full Member
***
Offline Offline

Activity: 137
Merit: 100



View Profile
April 22, 2015, 08:29:30 AM
 #4

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.

This signature intentionally left blank.
Abdussamad
Legendary
*
Offline Offline

Activity: 3598
Merit: 1560



View Profile
April 23, 2015, 09: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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!