Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ColeKeyFailure
- newtype NewSigningKeyFile = NewSigningKeyFile FilePath
- newtype NewVerificationKeyFile = NewVerificationKeyFile FilePath
- newtype VerificationKeyFile = VerificationKeyFile {}
- prettyPublicKey ∷ VerificationKey ColeKey → Text
- readColeSigningKey ∷ ColeKeyFormat → SigningKeyFile → ExceptT ColeKeyFailure IO SomeColeSigningKey
- readPaymentVerificationKey ∷ VerificationKeyFile → ExceptT ColeKeyFailure IO VerificationKey
- renderColeKeyFailure ∷ ColeKeyFailure → Text
- coleWitnessToVerKey ∷ SomeColeSigningKey → VerificationKey ColeKey
Keys
data ColeKeyFailure Source #
Instances
Show ColeKeyFailure Source # | |
Defined in Bcc.CLI.Cole.Key |
newtype NewSigningKeyFile Source #
Instances
Eq NewSigningKeyFile Source # | |
Defined in Bcc.CLI.Cole.Key | |
Ord NewSigningKeyFile Source # | |
Defined in Bcc.CLI.Cole.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 # | |
Show NewSigningKeyFile Source # | |
Defined in Bcc.CLI.Cole.Key | |
IsString NewSigningKeyFile Source # | |
Defined in Bcc.CLI.Cole.Key |
newtype NewVerificationKeyFile Source #
Instances
newtype VerificationKeyFile Source #
Instances
Eq VerificationKeyFile Source # | |
Defined in Bcc.CLI.Types | |
Show VerificationKeyFile Source # | |
Defined in Bcc.CLI.Types |
prettyPublicKey ∷ VerificationKey ColeKey → Text Source #
Print some invariant properties of a public key: its hash and formatted view.
readColeSigningKey ∷ ColeKeyFormat → SigningKeyFile → ExceptT ColeKeyFailure IO SomeColeSigningKey Source #
Read signing key from a file.
readPaymentVerificationKey ∷ VerificationKeyFile → ExceptT ColeKeyFailure 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.