recover wallet in electrum from hex mpk I´m trying to recover a wallet from which the Master Private Key (mpk) in hex format and the number of used addresses is known.

Till now I could manage to convert the hex mpk to the wif format and import this to electrum. But here to history seems to be totally lost. 

Is there any way to recover the full wallet and history (not neccessary with electrum)?
The problem is based on the generating method I used from the the Bitwasp library.

$key = PrivateKeyFactory::fromHex($hex, true);
$wif = $key-&gt;toWif();


Will return a WIF assuming the hex key was compressed. Restoring the history while importin in electrum failed.

$key = PrivateKeyFactory::fromHex($hex, false);
$wif = $key-&gt;toWif();


Will return a WIF from an uncompressed hex key an electrum was able to restore the history of the address.