I'd like to export a derived private key from my Electrum HD wallet, and use it as a HD wallet master key in a Mycelium wallet.
bx to get the key like this (
m is the unencrypted
xprv key extracted from default_wallet JSON):
$ cat m | bx hd-private --index 2 --hard \
| bx hd-to-wif | qrencode -o - | feh -
And scanned the resulting QR code in Mycelium using the "Add Unrelated Account/Scan".
The wallet works, but it's treated as a "single-address" wallet, not a HD wallet. I presumed that the derived xprv can be used as a master key for deriving more keys, since it contains the chaincode. Is that not the case?
Also, the Mycelium "Add Unrelated Account" screen says that
Scan Bitcoin address, private key or HD-Account.
What format does "HD-Account" mean? Is it WIF?
UPDATE: To make it clear, the key thing I want is to have a HD account in Mycelium, whith a master key derived from my Electrum HD wallet.
The purpose of this is to have only one seed to
remember store - the seed of the Electrum wallet. If my phone is lost, or my Mycelium wallet is compromised, I only have to derive it's master key again from my Electrum master key, reconstruct the wallet keys, take the money and run. And since the Mycelium master key is hardened, I don't have to worry about the rest of the tree being compromised, even if the master public key leaks.
UPDATE 2: Updated diagram to match Mycelium's behavior of treating imported extended private keys.