I am using octez-client to import keys using a mnemonic phrase:
echo -e 'twelve word mnemonic here\npassphrase here\n' | octez-client import keys from mnemonic my_alias -f
I have checked that I can import my wallet using the Kukai.app wallet and there I wasn't prompted for a passphrase. Thus I attempted an empty passphrase with octez-client:
echo -e 'twelve word mnemonic here\n\n' | octez-client import keys from mnemonic my_alias -f
The above command runs and I get some secret keys, but they are for the wrong account and it changes if I try to change the passphrase.
What am I missing here to make the key import work the same as on Kukai?
If you happen to know how I can import a hd-wallet.tez
file to tezos-client that would also be a work-around I could use.
Edit
Many thanks. I was helped by the tip of going via Temple wallet which imports the mnemonic and can reveal the unencrypted key. As additional steps, I had to prepend the key with the scheme unencrypted:edsk
. To finally get the key encrypted and imported to octez-client I ran:
octez-client encrypt secret key
octez-client import secret key my_alias encrypted:edeskEncryptedKeyHere