-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3521: Update cardano-addresses and test mnemonic_snd_factor r=piotr-iohk a=piotr-iohk - [x] update cardano-addresses (101921f) - [x] Test cardano-wallet mnemonic_snd_factor parity with cardano-addresses (84ade7a) - [x] More strict assertions in Key tests (997dfab) - [x] update test deps (5cf1d99) - [x] Remove bip_mnemonic dependency (58978da) ### Comments <!-- Additional comments, links, or screenshots to attach, if any. --> ### Issue Number ADP-2143 Co-authored-by: Piotr Stachyra <[email protected]>
- Loading branch information
Showing
14 changed files
with
211 additions
and
136 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
42 changes: 40 additions & 2 deletions
42
lib/wallet/test/data/Cardano/CLISpec/key from-recovery-phrase --help
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 |
---|---|---|
@@ -1,13 +1,51 @@ | ||
Usage: key from-recovery-phrase STYLE | ||
Usage: key from-recovery-phrase STYLE [--passphrase FORMAT] | ||
[--sensitive | --silent] | ||
[--from-file FILE] | ||
|
||
Convert a recovery phrase to an extended private key | ||
|
||
Available options: | ||
-h,--help Show this help text | ||
STYLE Byron | Icarus | Shelley | Shared | ||
--passphrase FORMAT (from-mnemonic | from-hex | | ||
from-base64 | from-utf8 | from-octets) | ||
User chosen passphrase to be read from | ||
stdin for the generation phase. Valid | ||
for Icarus, Shelley and Shared styles. | ||
Accepting mnemonic (9- or 12 words) or | ||
arbitrary passphrase encoded as | ||
base16, base64, plain utf8 or raw | ||
bytes in the form of octet array. | ||
--sensitive Input is shown as * in interactive | ||
mode. | ||
--silent Input is not shown in interactive | ||
mode. | ||
--from-file FILE Passphrase from specified filepath. | ||
|
||
The recovery phrase is read from stdin. | ||
The recovery phrase without passphrase is read from stdin. | ||
|
||
Example: | ||
[1m$ cardano-wallet recovery-phrase generate \[0m | ||
[1m| cardano-wallet key from-recovery-phrase Icarus[0m | ||
|
||
The recovery phrase with passphrase can be entered interactively or from file. | ||
In both cases passhrase can take form of mnemonic, base16, base64, utf8 or octet array. | ||
In interactive case one can select explicit, sensitive or silent mode. | ||
|
||
Example: | ||
[1m$ cardano-wallet key from-recovery-phrase Shelley --passphrase from-mnemonic --sensitive[0m | ||
[1mPlease enter a [9, 12, 15, 18, 21, 24] word mnemonic:[0m | ||
[1m**********************************************************************************************************[0m | ||
[1mPlease enter a 9–12 word second factor:[0m | ||
[1m*************************************************************[0m | ||
|
||
In case of passphrase reading from file the recovery phrase is read from stdin. | ||
|
||
Example: | ||
[1m$ echo "Secret Secondary Phrase" > sndfactor.prv[0m | ||
[1m$ cardano-wallet recovery-phrase generate \[0m | ||
[1m| cardano-wallet key from-recovery-phrase Shelley --from-file "./sndfactor.prv"[0m | ||
|
||
[1m$ cardano-wallet recovery-phrase generate --size 12 > sndfactor.prv[0m | ||
[1m$ cardano-wallet recovery-phrase generate \[0m | ||
[1m| cardano-wallet key from-recovery-phrase Shelley --passphrase from-mnemonic --from-file "./sndfactor.prv"[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
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
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
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
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
Oops, something went wrong.