-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Usage: key COMMAND | ||
|
||
About public/private keys | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
|
||
Available commands: | ||
from-recovery-phrase Convert a recovery phrase to an | ||
extended private key | ||
child Derive child keys from a parent | ||
public/private key | ||
public Get the public counterpart of a | ||
private key | ||
inspect Show information about a key | ||
hash Get the hash of a public key | ||
|
||
Example: | ||
[0;1m$ unit.exe recovery-phrase generate --size 15 \[0m | ||
[0;1m| unit.exe key from-recovery-phrase Shelley > root.prv[0m | ||
|
||
[0;1m$ cat root.prv \[0m | ||
[0;1m| unit.exe key child 1852H/1815H/0H \[0m | ||
[0;1m| tee acct.prv \[0m | ||
[0;1m| unit.exe key public --with-chain-code > acct.pub[0m | ||
|
||
[0;1m$ unit.exe key inspect <<< $(cat acct.prv)[0m | ||
{ | ||
"key_type": "private", | ||
"chain_code": "67bef6f80df02c7452e20e76ffb4bb57cae8aac2adf042b21a6b19e4f7b1f511", | ||
"extended_key": "90ead3efad7aacac242705ede323665387f49ed847bed025eb333708ccf6aa54403482a867daeb18f38c57d6cddd7e6fd6aed4a3209f7425a3d1c5d9987a9c5f" | ||
} | ||
|
||
[0;1m$ unit.exe key inspect <<< $(cat acct.pub)[0m | ||
{ | ||
"key_type": "public", | ||
"chain_code": "67bef6f80df02c7452e20e76ffb4bb57cae8aac2adf042b21a6b19e4f7b1f511", | ||
"extended_key": "d306350ee88f51fb710252e27f0c40006c58e994761b383e02d400e2be59b3cc" | ||
} |
13 changes: 13 additions & 0 deletions
13
lib/cli/test/data/Cardano/CLISpec/key from-recovery-phrase --help.win
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Usage: key from-recovery-phrase STYLE | ||
|
||
Convert a recovery phrase to an extended private key | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
STYLE Byron | Icarus | Shelley | Shared | ||
|
||
The recovery phrase is read from stdin. | ||
|
||
Example: | ||
[0;1m$ unit.exe recovery-phrase generate \[0m | ||
[0;1m| unit.exe key from-recovery-phrase Icarus[0m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters