Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cardano.CLI.Byron.Delegation
Synopsis
- data ByronDelegationError
- checkByronGenesisDelegation ∷ CertificateFile → ProtocolMagicId → VerificationKey → VerificationKey → ExceptT ByronDelegationError IO ()
- issueByronGenesisDelegation ∷ ProtocolMagicId → EpochNumber → SigningKey → VerificationKey → Certificate
- renderByronDelegationError ∷ ByronDelegationError → Text
- serialiseDelegationCert ∷ Certificate → ByteString
- serialiseByronWitness ∷ SomeByronSigningKey → ByteString
Documentation
data ByronDelegationError Source #
Constructors
CertificateValidationErrors !FilePath ![Text] | |
DlgCertificateDeserialisationFailed !FilePath !Text | |
ByronDelegationKeyError !ByronKeyFailure |
Instances
Show ByronDelegationError Source # | |
Defined in Cardano.CLI.Byron.Delegation |
checkByronGenesisDelegation ∷ CertificateFile → ProtocolMagicId → VerificationKey → VerificationKey → ExceptT ByronDelegationError 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.
issueByronGenesisDelegation ∷ 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 #