Skip to content

Commit

Permalink
Add CCM commands
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed May 25, 2023
1 parent 00561d4 commit 815c820
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 0 deletions.
1 change: 1 addition & 0 deletions cardano-cli/src/Cardano/CLI/Shelley/Commands.hs
@@ -1,5 +1,6 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE UndecidableInstances #-}

-- | Shelley CLI command types
Expand Down
41 changes: 41 additions & 0 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Expand Up @@ -1145,6 +1145,47 @@ Usage: cardano-cli stake-address pool-delegation-certificate

Create a stake address pool delegation certificate

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

CCM operation commands

Usage: cardano-cli ccm key-gen --cold-verification-key-file FILE
--cold-signing-key-file FILE
--operational-certificate-issue-counter-file FILE

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

Usage: cardano-cli ccm key-gen-VRF --verification-key-file FILE
--signing-key-file FILE

Create a key pair for a CCM VRF operational key

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

Print hash of a CCM's operational VRF key.

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

Create a new certificate issue counter

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

Issue a CCM operational certificate

Usage: cardano-cli address (key-gen | key-hash | build | info)

Payment address commands
Expand Down
15 changes: 15 additions & 0 deletions cardano-cli/test/cardano-cli-golden/files/golden/help/ccm.cli
@@ -0,0 +1,15 @@
Usage: cardano-cli ccm
(key-gen | key-gen-VRF | key-hash-VRF | new-counter | issue-op-cert)

CCM operation commands

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

Available commands:
key-gen Create a key pair for a CCM's offline key and a new
certificate issue counter
key-gen-VRF Create a key pair for a CCM VRF operational key
key-hash-VRF Print hash of a CCM's operational VRF key.
new-counter Create a new certificate issue counter
issue-op-cert Issue a CCM operational certificate
@@ -0,0 +1,22 @@
Usage: cardano-cli ccm issue-op-cert
(--kes-verification-key STRING | --kes-verification-key-file FILE)
--cold-signing-key-file FILE
--operational-certificate-issue-counter-file FILE
--kes-period NATURAL
--out-file FILE

Issue a CCM operational certificate

Available options:
--kes-verification-key STRING
A Bech32 or hex-encoded hot KES verification key.
--kes-verification-key-file FILE
Filepath of the hot KES verification key.
--cold-signing-key-file FILE
Filepath of the cold signing key.
--operational-certificate-issue-counter-file FILE
The file with the issue counter for the operational
certificate.
--kes-period NATURAL The start of the KES key validity period.
--out-file FILE The output file.
-h,--help Show this help text
@@ -0,0 +1,10 @@
Usage: cardano-cli ccm key-gen-VRF --verification-key-file FILE
--signing-key-file FILE

Create a key pair for a CCM VRF operational key

Available options:
--verification-key-file FILE
Output filepath of the verification key.
--signing-key-file FILE Output filepath of the signing key.
-h,--help Show this help text
@@ -0,0 +1,15 @@
Usage: cardano-cli ccm key-gen --cold-verification-key-file FILE
--cold-signing-key-file FILE
--operational-certificate-issue-counter-file FILE

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

Available options:
--cold-verification-key-file FILE
Filepath of the cold verification key.
--cold-signing-key-file FILE
Filepath of the cold signing key.
--operational-certificate-issue-counter-file FILE
The file with the issue counter for the operational
certificate.
-h,--help Show this help text
@@ -0,0 +1,13 @@
Usage: cardano-cli ccm key-hash-VRF
(--verification-key STRING | --verification-key-file FILE)
[--out-file FILE]

Print hash of a CCM's operational VRF key.

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

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 FILE
Filepath of the cold verification key.
--counter-value INT The next certificate issue counter value to use.
--operational-certificate-issue-counter-file FILE
The file with the issue counter for the operational
certificate.
-h,--help Show this help text

0 comments on commit 815c820

Please sign in to comment.