Implement mnemonic support for solana-keygen grind (solana-labs#9325) (#16108)

* Implement mnemonic support for solana-keygen grind (solana-labs#9325)

* Updated to include feedback from review.

* Renaming as per review feedback

* Fixed an incorrectly transcribed underscore

* Properly re-use string constants.
This commit is contained in:
bji
2021-03-27 22:47:50 -07:00
committed by GitHub
parent aabe186e3f
commit e50f598449
2 changed files with 180 additions and 69 deletions

View File

@ -157,6 +157,15 @@ You can generate a custom vanity keypair using solana-keygen. For instance:
solana-keygen grind --starts-with e1v1s:1
```
You may request that the generated vanity keypair be expressed as a seed phrase
which allows recovery of the keypair from the seed phrase and an optionally
supplied passphrase (note that this is significantly slower than grinding without
a mnemonic):
```bash
solana-keygen grind --use-mnemonic --starts-with e1v1s:1
```
Depending on the string requested, it may take days to find a match...
---