-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --verification-key option to committee key-hash command
- Loading branch information
Showing
9 changed files
with
103 additions
and
24 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{-# LANGUAGE DataKinds #-} | ||
|
||
module Cardano.CLI.Types.Key.VerificationKey | ||
( AnyVerificationKeySource(..) | ||
, AnyVerificationKeyText(..) | ||
) where | ||
|
||
import Cardano.Api | ||
|
||
import Data.Text (Text) | ||
|
||
-- | A bech32 text encoded verification key of an unspecified key role. | ||
newtype AnyVerificationKeyText = AnyVerificationKeyText | ||
{ unAnyVerificationKeyText :: Text | ||
} | ||
deriving (Eq, Show) | ||
|
||
-- | The source from which a verification key of an unspecified key role can be | ||
-- derived. | ||
data AnyVerificationKeySource | ||
= AnyVerificationKeySourceOfText !AnyVerificationKeyText | ||
| AnyVerificationKeySourceOfFile !(File (VerificationKey ()) In) | ||
deriving (Eq, Show) |
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
11 changes: 9 additions & 2 deletions
11
...no-cli/test/cardano-cli-golden/files/golden/help/conway_governance_committee_key-hash.cli
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,8 +1,15 @@ | ||
Usage: cardano-cli conway governance committee key-hash --verification-key-file FILE | ||
Usage: cardano-cli conway governance committee key-hash | ||
( --verification-key STRING | ||
| --verification-key-file FILE | ||
) | ||
|
||
Print the identifier (hash) of a public key | ||
|
||
Available options: | ||
--verification-key STRING | ||
Constitutional Committee Member key (hot or cold) | ||
(Bech32-encoded) | ||
--verification-key-file FILE | ||
Input filepath of the verification key. | ||
Input filepath of the Constitutional Committee Member | ||
key (hot or cold). | ||
-h,--help Show this help text |
11 changes: 9 additions & 2 deletions
11
.../test/cardano-cli-golden/files/golden/help/experimental_governance_committee_key-hash.cli
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,8 +1,15 @@ | ||
Usage: cardano-cli experimental governance committee key-hash --verification-key-file FILE | ||
Usage: cardano-cli experimental governance committee key-hash | ||
( --verification-key STRING | ||
| --verification-key-file FILE | ||
) | ||
|
||
Print the identifier (hash) of a public key | ||
|
||
Available options: | ||
--verification-key STRING | ||
Constitutional Committee Member key (hot or cold) | ||
(Bech32-encoded) | ||
--verification-key-file FILE | ||
Input filepath of the verification key. | ||
Input filepath of the Constitutional Committee Member | ||
key (hot or cold). | ||
-h,--help Show this help text |