Anyways, get your master private key (actually "extended private key") from the console with getmasterprivate() command.
Then see if your other wallet supports importation of xprv keys. You might have to use convert_xkey(xkey="zprv.....",xtype="standard") if the other wallet only support "xprv".
In general this will work, but if uses passphrase, may get something different.
He will be using the xprv and not the seed phrase and passphrase to restore to other wallets.
The linked code shows the derivation from seed phrase + extension to HD seed; the BIP39 passphrase influenced how the HD seed is derived, anything after that is the same.
Something that the derivation from the extended private key (
xprv) to child prv keys has nothing to do with.
Aside from that, AFAIK, Electrum uses a different code to derive BIP39 seed.
Anyways, as far as the command's result is concerned, excluding the prefix that can be converted, it's compatible with BIP39 wallets that supports xprv.
For example (
reproducible- TestNet):
1.1 Create an Electrum wallet with this BIP39 seed phrase (
tick 'BIP39 seed' and 'Extend..' in Options):
turn permit open spider flame type unaware stage clown flag accuse unfair
1.2 Plus extend it with this BIP39 passphrase, select 'Native SegWit' when prompted:
2. Use
getmasterprivate() command, result:
vprv9KNCYuLpNoNth31arXhJYW4dR5416zsNbFBrHvA19dVjwqt6RJbKizizGy8HhCFDoAAJsSMQdmaLJCdvbfREc4kb5fEEgFKtnZoqo4mk8Up
3. Use
convert_xkey(xkey="vprv..",xtype="standard"), command:
tprv8fhfwZzz5SHvzSdMBp848Ksd58m7DktNm29Qj8NEPcjyqeFduzGCUsQiEZD7hNwNysvhNVAHiSsEXdQoAGbD1bPPLyqPWRgvF7gZ1vvoeEq
4. Go to IanColeman's BIP39 tool and select the Coin: "
BTC - Bitcoin Testnet".
5. Paste the tprv or vprv key on "
BIP32 Root Key".
6. To reproduce how wallets derive keys/addresses from the xprv/xpub at 'account_index'; go to "
BIP141" tab,
7.1 Type
m/0 in 'BIP32 Derivation Path' (
"m" as your xprv and "0" as 'external chain')
7.2 Use
m/1 to derive change addresses instead.
8. Select "
P2WPKH" as 'Script Semantics'.
9. Lastly, compare the addresses and keys in your Electrum client to the list below the BIP39 tool.
I'd like to get my phrase and import it into another wallet and am traveling ... away from my hand-written backup. Appreciate any help
![Wink](https://bitcointalk.org/Smileys/default/wink.gif)
Why tho?
I have alts on the same seed that I'd like to access.
Oh, Alts...
The above will only work in Bitcoin since the extended private key was derived with a derivation path standard to Bitcoin.
Restoring an Alt using that method will result with empty (
Altcoin) wallet.
If it's just 12 words, do your best to remember it, at least during your travels.