cardano-cli-1.22.0
Safe HaskellNone
LanguageHaskell2010

Cardano.CLI.Byron.Key

Synopsis

Keys

data CardanoEra Source #

Some commands have variants or file formats that depend on the era.

TODO: this looks like it's only used for Byron era keys, so could be renamed

Constructors

ByronEraLegacy 
ByronEra 

Instances

Instances details
Show CardanoEra Source # 
Instance details

Defined in Cardano.CLI.Byron.Key

keygen :: PassPhrase -> IO SigningKey Source #

Generate a cryptographically random signing key, protected with a (potentially empty) passphrase.

prettyPublicKey :: VerificationKey -> Text Source #

Print some invariant properties of a public key: its hash and formatted view.

readEraSigningKey :: CardanoEra -> SigningKeyFile -> ExceptT ByronKeyFailure IO SigningKey Source #

Read signing key from a file. Throw an error if the file can't be read or fails to deserialise.

readPaymentVerificationKey :: VerificationKeyFile -> ExceptT ByronKeyFailure IO VerificationKey Source #

Read verification key from a file. Throw an error if the file can't be read or the key fails to deserialise.

Passwords

data PasswordRequirement Source #

Whether to require a password, or to supply an empty one.

Constructors

GetPassword 
EmptyPassword 

getPassphrase :: PasswordPrompt -> PasswordRequirement -> IO PassPhrase Source #

Get a passphrase from the standard input, depending on whether it's required.