Bitcoin Forum

Bitcoin => Electrum => Topic started by: fishingbill on April 16, 2015, 04:51:47 PM



Title: Electrum PC client - wrong Master Public Key length??
Post by: fishingbill on April 16, 2015, 04:51:47 PM
Hello

We have noticed that since version 1.98 the key length on PC clients has changed from 128 characters to 111 characters.
Is this supposed to be correct?

We are using PHP code to verify transactions and it fails due to the key length issue.

We would roll-back to v1.98 however it fails to run for some reason.

Any insight into this would be much appreciated


Title: Re: Electrum PC client - wrong Master Public Key length??
Post by: btchris on April 16, 2015, 05:00:45 PM
Newly created Electrum 2 (and its betas) wallets now conform to BIP-32, including the key serialization format (https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#serialization-format). Electrum 1 wallets and wallets restored using seeds created by Electrum 1 continue to use the old serialization format.

In the new format, serialized extended keys are always 111 characters long (the linked standard incorrectly states "up to 112 characters" for some reason).


Title: Re: Electrum PC client - wrong Master Public Key length??
Post by: theredtexan on June 02, 2015, 05:21:16 PM
Is it at all possible to use Electrum 2.2 so that there will be 128 characters? Otherwise, I doubt I can use this plugin.


Title: Re: Electrum PC client - wrong Master Public Key length??
Post by: btchris on June 02, 2015, 08:19:50 PM
Is it at all possible to use Electrum 2.2 so that there will be 128 characters? Otherwise, I doubt I can use this plugin.

You cannot (easily anyways) create a new wallet in Electrum 2.x that uses a 128-character mpk. You could, if you needed to, temporarily run an earlier version of Electrum to generate an old-style wallet though. Full instructions (for Windows) can be found here: http://bitcoin.stackexchange.com/questions/37386/error-in-checkout-while-using-bitcoin-payments-by-bitcoinway-with-woocommerce/37388#37388 (http://bitcoin.stackexchange.com/questions/37386/error-in-checkout-while-using-bitcoin-payments-by-bitcoinway-with-woocommerce/37388#37388)