Skip to content

Commit

Permalink
Regenerate Wallet CLI goldens
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Jul 8, 2024
1 parent 7a165ed commit 2535586
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions lib/unit/test/data/Cardano/CLISpec/key --help
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@ Available commands:
a given key

Example:
$ cardano-wallet recovery-phrase generate --size 15 \
| cardano-wallet key from-recovery-phrase Shelley > root.prv
$ cardano-wallet recovery-phrase generate --size 15 \
| cardano-wallet key from-recovery-phrase Shelley > root.prv

$ cat root.prv \
| cardano-wallet key child 1852H/1815H/0H \
| tee acct.prv \
| cardano-wallet key public --with-chain-code > acct.pub
$ cat root.prv \
| cardano-wallet key child 1852H/1815H/0H \
| tee acct.prv \
| cardano-wallet key public --with-chain-code > acct.pub

$ cardano-wallet key inspect <<< $(cat acct.prv)
$ cardano-wallet key inspect <<< $(cat acct.prv)
{
"key_type": "private",
"chain_code": "67bef6f80df02c7452e20e76ffb4bb57cae8aac2adf042b21a6b19e4f7b1f511",
"extended_key": "90ead3efad7aacac242705ede323665387f49ed847bed025eb333708ccf6aa54403482a867daeb18f38c57d6cddd7e6fd6aed4a3209f7425a3d1c5d9987a9c5f"
}

$ cardano-wallet key inspect <<< $(cat acct.pub)
$ cardano-wallet key inspect <<< $(cat acct.pub)
{
"key_type": "public",
"chain_code": "67bef6f80df02c7452e20e76ffb4bb57cae8aac2adf042b21a6b19e4f7b1f511",
Expand Down
26 changes: 13 additions & 13 deletions lib/unit/test/data/Cardano/CLISpec/key from-recovery-phrase --help
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,27 @@ Available options:
The recovery phrase without passphrase is read from stdin.

Example:
$ cardano-wallet recovery-phrase generate \
| cardano-wallet key from-recovery-phrase Icarus
$ cardano-wallet recovery-phrase generate \
| cardano-wallet key from-recovery-phrase Icarus

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:
$ cardano-wallet key from-recovery-phrase Shelley --passphrase from-mnemonic --sensitive
Please enter a [9, 12, 15, 18, 21, 24] word mnemonic:
**********************************************************************************************************
Please enter a 9–12 word second factor:
*************************************************************
$ cardano-wallet key from-recovery-phrase Shelley --passphrase from-mnemonic --sensitive
Please enter a [9, 12, 15, 18, 21, 24] word mnemonic:
**********************************************************************************************************
Please enter a 9–12 word second factor:
*************************************************************

In case of passphrase reading from file the recovery phrase is read from stdin.

Example:
$ echo "Secret Secondary Phrase" > sndfactor.prv
$ cardano-wallet recovery-phrase generate \
| cardano-wallet key from-recovery-phrase Shelley --from-file "./sndfactor.prv"
$ echo "Secret Secondary Phrase" > sndfactor.prv
$ cardano-wallet recovery-phrase generate \
| cardano-wallet key from-recovery-phrase Shelley --from-file "./sndfactor.prv"

$ cardano-wallet recovery-phrase generate --size 12 > sndfactor.prv
$ cardano-wallet recovery-phrase generate \
| cardano-wallet key from-recovery-phrase Shelley --passphrase from-mnemonic --from-file "./sndfactor.prv"
$ cardano-wallet recovery-phrase generate --size 12 > sndfactor.prv
$ cardano-wallet recovery-phrase generate \
| cardano-wallet key from-recovery-phrase Shelley --passphrase from-mnemonic --from-file "./sndfactor.prv"

0 comments on commit 2535586

Please sign in to comment.