| Safe Haskell | None |
|---|---|
| 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
- serialiseDelegateKey :: CardanoEra -> SigningKey -> Either ByronDelegationError ByteString
Documentation
data ByronDelegationError Source #
Constructors
| CertificateValidationErrors !FilePath ![Text] | |
| DlgCertificateDeserialisationFailed !FilePath !Text | |
| ByronDelegationKeyError !ByronKeyFailure |
Instances
| Show ByronDelegationError Source # | |
Defined in Cardano.CLI.Byron.Delegation Methods showsPrec :: Int -> ByronDelegationError -> ShowS # show :: ByronDelegationError -> String # showList :: [ByronDelegationError] -> ShowS # | |
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.