Skip to content

Commit

Permalink
Add golden files
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbo4350 committed Oct 8, 2024
1 parent 10bc99e commit a1be355
Show file tree
Hide file tree
Showing 8 changed files with 198 additions and 1 deletion.
63 changes: 62 additions & 1 deletion cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Usage: cardano-cli
( legacy
( node
| legacy
| byron
| shelley
| allegra
Expand All @@ -14,6 +15,66 @@ Usage: cardano-cli
| version
)

Usage: cardano-cli node
( key-gen
| key-gen-KES
| key-gen-VRF
| key-hash-VRF
| new-counter
| issue-op-cert
)

Node operation commands.

Usage: cardano-cli node key-gen [--key-output-format STRING]
--cold-verification-key-file FILEPATH
--cold-signing-key-file FILEPATH
--operational-certificate-issue-counter-file FILEPATH

Create a key pair for a node operator's offline key and a new certificate
issue counter

Usage: cardano-cli node key-gen-KES [--key-output-format STRING]
--verification-key-file FILEPATH
--signing-key-file FILEPATH

Create a key pair for a node KES operational key

Usage: cardano-cli node key-gen-VRF [--key-output-format STRING]
--verification-key-file FILEPATH
--signing-key-file FILEPATH

Create a key pair for a node VRF operational key

Usage: cardano-cli node key-hash-VRF
( --verification-key STRING
| --verification-key-file FILEPATH
)
[--out-file FILEPATH]

Print hash of a node's operational VRF key.

Usage: cardano-cli node new-counter
( --stake-pool-verification-key STRING
| --genesis-delegate-verification-key STRING
| --cold-verification-key-file FILEPATH
)
--counter-value INT
--operational-certificate-issue-counter-file FILEPATH

Create a new certificate issue counter

Usage: cardano-cli node issue-op-cert
( --kes-verification-key STRING
| --kes-verification-key-file FILEPATH
)
--cold-signing-key-file FILEPATH
--operational-certificate-issue-counter-file FILEPATH
--kes-period NATURAL
--out-file FILEPATH

Issue a node operational certificate

Usage: cardano-cli legacy Legacy commands

Legacy commands
Expand Down
22 changes: 22 additions & 0 deletions cardano-cli/test/cardano-cli-golden/files/golden/help/node.cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Usage: cardano-cli node
( key-gen
| key-gen-KES
| key-gen-VRF
| key-hash-VRF
| new-counter
| issue-op-cert
)

Node operation commands.

Available options:
-h,--help Show this help text

Available commands:
key-gen Create a key pair for a node operator's offline key
and a new certificate issue counter
key-gen-KES Create a key pair for a node KES operational key
key-gen-VRF Create a key pair for a node VRF operational key
key-hash-VRF Print hash of a node's operational VRF key.
new-counter Create a new certificate issue counter
issue-op-cert Issue a node operational certificate
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Usage: cardano-cli node issue-op-cert
( --kes-verification-key STRING
| --kes-verification-key-file FILEPATH
)
--cold-signing-key-file FILEPATH
--operational-certificate-issue-counter-file FILEPATH
--kes-period NATURAL
--out-file FILEPATH

Issue a node operational certificate

Available options:
--kes-verification-key STRING
A Bech32 or hex-encoded hot KES verification key.
--kes-verification-key-file FILEPATH
Filepath of the hot KES verification key.
--cold-signing-key-file FILEPATH
Filepath of the cold signing key.
--operational-certificate-issue-counter-file FILEPATH
The file with the issue counter for the operational
certificate.
--kes-period NATURAL The start of the KES key validity period.
--out-file FILEPATH The output file.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Usage: cardano-cli node key-gen-KES [--key-output-format STRING]
--verification-key-file FILEPATH
--signing-key-file FILEPATH

Create a key pair for a node KES operational key

Available options:
--key-output-format STRING
Optional key output format. Accepted output formats
are "text-envelope" and "bech32" (default is
"text-envelope").
--verification-key-file FILEPATH
Output filepath of the verification key.
--signing-key-file FILEPATH
Output filepath of the signing key.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Usage: cardano-cli node key-gen-VRF [--key-output-format STRING]
--verification-key-file FILEPATH
--signing-key-file FILEPATH

Create a key pair for a node VRF operational key

Available options:
--key-output-format STRING
Optional key output format. Accepted output formats
are "text-envelope" and "bech32" (default is
"text-envelope").
--verification-key-file FILEPATH
Output filepath of the verification key.
--signing-key-file FILEPATH
Output filepath of the signing key.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Usage: cardano-cli node key-gen [--key-output-format STRING]
--cold-verification-key-file FILEPATH
--cold-signing-key-file FILEPATH
--operational-certificate-issue-counter-file FILEPATH

Create a key pair for a node operator's offline key and a new certificate
issue counter

Available options:
--key-output-format STRING
Optional key output format. Accepted output formats
are "text-envelope" and "bech32" (default is
"text-envelope").
--cold-verification-key-file FILEPATH
Filepath of the cold verification key.
--cold-signing-key-file FILEPATH
Filepath of the cold signing key.
--operational-certificate-issue-counter-file FILEPATH
The file with the issue counter for the operational
certificate.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Usage: cardano-cli node key-hash-VRF
( --verification-key STRING
| --verification-key-file FILEPATH
)
[--out-file FILEPATH]

Print hash of a node's operational VRF key.

Available options:
--verification-key STRING
Verification key (Bech32 or hex-encoded).
--verification-key-file FILEPATH
Input filepath of the verification key.
--out-file FILEPATH Optional output file. Default is to write to stdout.
-h,--help Show this help text
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Usage: cardano-cli node new-counter
( --stake-pool-verification-key STRING
| --genesis-delegate-verification-key STRING
| --cold-verification-key-file FILEPATH
)
--counter-value INT
--operational-certificate-issue-counter-file FILEPATH

Create a new certificate issue counter

Available options:
--stake-pool-verification-key STRING
Stake pool verification key (Bech32 or hex-encoded).
--genesis-delegate-verification-key STRING
Genesis delegate verification key (hex-encoded).
--cold-verification-key-file FILEPATH
Filepath of the cold verification key.
--counter-value INT The next certificate issue counter value to use.
--operational-certificate-issue-counter-file FILEPATH
The file with the issue counter for the operational
certificate.
-h,--help Show this help text

0 comments on commit a1be355

Please sign in to comment.