From a1be355d7ebeab50998c80c3478a5e2a3377f459 Mon Sep 17 00:00:00 2001 From: Jordan Millar Date: Mon, 7 Oct 2024 15:19:22 -0400 Subject: [PATCH] Add golden files --- .../cardano-cli-golden/files/golden/help.cli | 63 ++++++++++++++++++- .../files/golden/help/node.cli | 22 +++++++ .../files/golden/help/node_issue-op-cert.cli | 24 +++++++ .../files/golden/help/node_key-gen-KES.cli | 16 +++++ .../files/golden/help/node_key-gen-VRF.cli | 16 +++++ .../files/golden/help/node_key-gen.cli | 21 +++++++ .../files/golden/help/node_key-hash-VRF.cli | 15 +++++ .../files/golden/help/node_new-counter.cli | 22 +++++++ 8 files changed, 198 insertions(+), 1 deletion(-) create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/node.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/node_issue-op-cert.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen-KES.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen-VRF.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-hash-VRF.cli create mode 100644 cardano-cli/test/cardano-cli-golden/files/golden/help/node_new-counter.cli diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli index e21fb59299..4e133a9d60 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -1,5 +1,6 @@ Usage: cardano-cli - ( legacy + ( node + | legacy | byron | shelley | allegra @@ -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 diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/node.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/node.cli new file mode 100644 index 0000000000..f133ab4c3d --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/node.cli @@ -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 diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/node_issue-op-cert.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_issue-op-cert.cli new file mode 100644 index 0000000000..919c7c4ca9 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_issue-op-cert.cli @@ -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 diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen-KES.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen-KES.cli new file mode 100644 index 0000000000..5db2037a0a --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen-KES.cli @@ -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 diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen-VRF.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen-VRF.cli new file mode 100644 index 0000000000..8f182f1dd1 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen-VRF.cli @@ -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 diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen.cli new file mode 100644 index 0000000000..e0bf2224fb --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-gen.cli @@ -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 diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-hash-VRF.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-hash-VRF.cli new file mode 100644 index 0000000000..7d2302c233 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_key-hash-VRF.cli @@ -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 diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/node_new-counter.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_new-counter.cli new file mode 100644 index 0000000000..460e70be57 --- /dev/null +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/node_new-counter.cli @@ -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