Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ByronKeyFailure
- newtype NewSigningKeyFile = NewSigningKeyFile FilePath
- newtype NewVerificationKeyFile = NewVerificationKeyFile FilePath
- type VerificationKeyFile = File (VerificationKey ())
- prettyPublicKey :: VerificationKey ByronKey -> Text
- readByronSigningKey :: ByronKeyFormat -> SigningKeyFile 'In -> ExceptT ByronKeyFailure IO SomeByronSigningKey
- readPaymentVerificationKey :: VerificationKeyFile 'In -> ExceptT ByronKeyFailure IO VerificationKey
- renderByronKeyFailure :: ByronKeyFailure -> Doc ann
- byronWitnessToVerKey :: SomeByronSigningKey -> VerificationKey ByronKey
Keys
data ByronKeyFailure Source #
Instances
Show ByronKeyFailure Source # | |
Defined in Cardano.CLI.Byron.Key |
newtype NewSigningKeyFile Source #
Instances
IsString NewSigningKeyFile Source # | |
Defined in Cardano.CLI.Byron.Key fromString :: String -> NewSigningKeyFile Source # | |
Show NewSigningKeyFile Source # | |
Defined in Cardano.CLI.Byron.Key | |
Eq NewSigningKeyFile Source # | |
Defined in Cardano.CLI.Byron.Key (==) :: NewSigningKeyFile -> NewSigningKeyFile -> Bool Source # (/=) :: NewSigningKeyFile -> NewSigningKeyFile -> Bool Source # | |
Ord NewSigningKeyFile Source # | |
Defined in Cardano.CLI.Byron.Key compare :: NewSigningKeyFile -> NewSigningKeyFile -> Ordering Source # (<) :: NewSigningKeyFile -> NewSigningKeyFile -> Bool Source # (<=) :: NewSigningKeyFile -> NewSigningKeyFile -> Bool Source # (>) :: NewSigningKeyFile -> NewSigningKeyFile -> Bool Source # (>=) :: NewSigningKeyFile -> NewSigningKeyFile -> Bool Source # max :: NewSigningKeyFile -> NewSigningKeyFile -> NewSigningKeyFile Source # min :: NewSigningKeyFile -> NewSigningKeyFile -> NewSigningKeyFile Source # |
newtype NewVerificationKeyFile Source #
Instances
type VerificationKeyFile = File (VerificationKey ()) Source #
prettyPublicKey :: VerificationKey ByronKey -> Text Source #
Print some invariant properties of a public key: its hash and formatted view.
readByronSigningKey :: ByronKeyFormat -> SigningKeyFile 'In -> ExceptT ByronKeyFailure IO SomeByronSigningKey Source #
Read signing key from a file.
readPaymentVerificationKey :: VerificationKeyFile 'In -> 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.
renderByronKeyFailure :: ByronKeyFailure -> Doc ann Source #