Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ByronDelegationError
- checkByronGenesisDelegation :: CertificateFile -> ProtocolMagicId -> VerificationKey -> VerificationKey -> ExceptT ByronDelegationError IO ()
- issueByronGenesisDelegation :: ProtocolMagicId -> EpochNumber -> SigningKey -> VerificationKey -> Certificate
- renderByronDelegationError :: ByronDelegationError -> Doc ann
- serialiseDelegationCert :: Certificate -> ByteString
- serialiseByronWitness :: SomeByronSigningKey -> ByteString
Documentation
data ByronDelegationError Source #
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.
renderByronDelegationError :: ByronDelegationError -> Doc ann Source #