![]() ![]() Incidentally, the reason they are compatible isn't obvious. For your specific case of exporting/importing an xprv, you can look at the third tab in the referenced spreadsheet. More details on inter-wallet compatibility can be found here. This means you can just run qrencode -o - | feh - and paste your extracted xprv directly in. It turns out you were just overthinking the problem -) ![]() It will result in the same list of addresses being generated in both Electrum 2.x and Mycelium. To answer the first part of your question:Īn Electrum 2.x extended master private key can be directly imported imported into Mycelium for Android (version 2.3.0+), no conversions or path derivations are required. (this is mostly irrelevant to the clarified question) It may not be documented, but Electrum 2.x will also accept an xprv during a restore, and then it will generate the same c/i path that Mycelium uses for imported xprvs. if you lose your phone), you can import the same xprv you imported into Mycelium into a new wallet in Electrum (using the restore wallet option). Once you're done, the resulting keys/addresses will be along a path of m/2'/c/i. When you do the import/add-new-account in Mycelium (2.3.0+ required), make sure you're choosing the Advanced option, and then do the scan. In particular, don't include the bx hd-to-wif step, that's probably what's tripping you up. You're pretty close, I suspect you want something simpler like this (and then typing in the xprv you extracted from an Electrum 2.x (unencrypted) wallet file):īx hd-private -index 2 -hard | qrencode -o - | feh. UPDATE 2: Updated diagram to match Mycelium's behavior of treating imported extended private keys. 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.īased on answers of Christopher Gurnee and Wizard of Ozzie, I could build a diagram to make it more clear: 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. The purpose of this is to have only one seed to remember store - the seed of the Electrum wallet. 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. What format does "HD-Account" mean? Is it WIF? Scan Bitcoin address, private key or HD-Account. Is that not the case?Īlso, the Mycelium "Add Unrelated Account" screen says that I presumed that the derived xprv can be used as a master key for deriving more keys, since it contains the chaincode. The wallet works, but it's treated as a "single-address" wallet, not a HD 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 \Īnd scanned the resulting QR code in Mycelium using the "Add Unrelated Account/Scan". 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |