4
3
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.
I used bx to get the key like this (m/2'/0) (where 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.
Based on answers of Christopher Gurnee and Wizard of Ozzie, I could build a diagram to make it more clear:

UPDATE 2: Updated diagram to match Mycelium's behavior of treating imported extended private keys.
Two quick comments on the updated question: (1) "The purpose of this is to have only one seed to remember"—I always cringe when I hear someone who say this, i.e. someone who thinks they have an infallible memory that's immune to change/disease/etc... I do hope you've considered this. (2) In the m/2'/44'/0'/..., why bother with the 44'/0' part? By starting with m/2', you're already nonstandard, you may as just well use something simpler like m/2'/c/i, yes? – Christopher Gurnee – 2015-04-21T21:36:32.637
I don't actually remember it, at least not for now :) but I was under the impression that mnemonics were introduced in the standard because they are easier for the human brain then a random number (which is much more efficient to store) – sevcsik – 2015-04-21T21:40:34.007
(2): I kept the she standard-ish pattern, because I cannot modify how does Mycelium derives the keys (besides modifying the code). The only derivation I have control over is the dashed line, all other derivation paths are hardcoded in the wallets. – sevcsik – 2015-04-21T21:42:58.780
Mnemonics were introduced because they're easier to write down, they were never intended to be easy to remember. I certainly can't remember mine ;-). Regarding (2): understood, I'll update my answer. – Christopher Gurnee – 2015-04-21T21:45:42.630
Ah, I see. I thought an integer should be easier to be written down, but now as I gave it a bit more thought, I see that having a predefined dictionaty makes it less prone to errors. – sevcsik – 2015-04-21T21:55:36.437