| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Bcc.CLI.Cole.Delegation
Synopsis
- data ColeDelegationError
 - checkColeGenesisDelegation ∷ CertificateFile → ProtocolMagicId → VerificationKey → VerificationKey → ExceptT ColeDelegationError IO ()
 - issueColeGenesisDelegation ∷ ProtocolMagicId → EpochNumber → SigningKey → VerificationKey → Certificate
 - renderColeDelegationError ∷ ColeDelegationError → Text
 - serialiseDelegationCert ∷ Certificate → ByteString
 - serialiseColeWitness ∷ SomeColeSigningKey → ByteString
 
Documentation
data ColeDelegationError Source #
Constructors
| CertificateValidationErrors !FilePath ![Text] | |
| DlgCertificateDeserialisationFailed !FilePath !Text | |
| ColeDelegationKeyError !ColeKeyFailure | 
Instances
| Show ColeDelegationError Source # | |
Defined in Bcc.CLI.Cole.Delegation  | |
checkColeGenesisDelegation ∷ CertificateFile → ProtocolMagicId → VerificationKey → VerificationKey → ExceptT ColeDelegationError IO () Source #
Verify that a certificate signifies genesis delegation by assumed genesis key to a delegate key, for a given protocol magic. If certificate fails validation, throw an error.
issueColeGenesisDelegation ∷ ProtocolMagicId → EpochNumber → SigningKey → VerificationKey → Certificate Source #
Issue a certificate for genesis delegation to a delegate key, signed by the issuer key, for a given protocol magic and coming into effect at given epoch.
serialiseDelegationCert ∷ Certificate → ByteString Source #