[英]solana cli paper wallets generating a different pubkey
When creating a paper wallet with the solana cli and then running the seed phrase back into the cli I get a completely different pubkey?当使用 solana cli 创建纸质钱包然后将种子短语运行回 cli 时,我得到了一个完全不同的 pubkey?
What am I missing here?我在这里想念什么?
Not using a passphase in this example.在此示例中不使用 passphase。
❯ solana-keygen new --no-outfile
Generating a new keypair
For added security, enter a BIP39 passphrase
NOTE! This passphrase improves security of the recovery seed phrase NOT the
keypair file itself, which is stored as insecure plain text
BIP39 Passphrase (empty for none): none
===============================================================================
pubkey: 7A5h8N21EtjAnfcf8kxp7Bd7pNtQ5SvoYHLyBwz2796e
===============================================================================
Save this seed phrase and your BIP39 passphrase to recover your new keypair:
animal flock border attitude simple piece firm reason snack isolate siege seven
===============================================================================
~/.config/solana
❯ solana-keygen pubkey prompt://
[pubkey recovery] seed phrase:
[pubkey recovery] If this seed phrase has an associated passphrase, enter it now. Otherwise, press ENTER to continue:
2NW5bHw8dh4rS9wZSPj5u6Xec9tCHEN64PiTPUiy2ms7
This is a bit confusing between the BIP44 and BIP39 derivation paths.这在 BIP44 和 BIP39 派生路径之间有点混乱。 The seed phrase shown
animal flock border attitude simple piece firm reason snack isolate siege seven
comes from the legacy derivation, so it should be used with the ASK
keyword instead of the prompt://
keyword.种子词组显示
animal flock border attitude simple piece firm reason snack isolate siege seven
来自遗留派生,因此应与ASK
关键字一起使用,而不是prompt://
关键字。
If you want to recover the expected public key, you'll have to run:如果要恢复预期的公钥,则必须运行:
$ solana-keygen pubkey ASK
More information found towards the bottom of this section of the docs: https://docs.solana.com/wallet-guide/paper-wallet#public-key-derivation可在文档本节底部找到更多信息: https://docs.solana.com/wallet-guide/paper-wallet#public-key-derivation
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.