Safe Haskell | None |
---|---|
Language | Haskell2010 |
Operational certificates
Synopsis
- data OperationalCertificate = OperationalCertificate !(OCert StandardCrypto) !(VerificationKey StakePoolKey)
- data OperationalCertificateIssueCounter = OperationalCertificateIssueCounter {}
- newtype KESPeriod = KESPeriod {
- unKESPeriod :: Word
- data OperationalCertIssueError = OperationalCertKeyMismatch (VerificationKey StakePoolKey) (VerificationKey StakePoolKey)
- getHotKey :: OperationalCertificate -> VerificationKey KesKey
- getKesPeriod :: OperationalCertificate -> Word
- getOpCertCount :: OperationalCertificate -> Word64
- issueOperationalCertificate :: VerificationKey KesKey -> Either (SigningKey StakePoolKey) (SigningKey GenesisDelegateExtendedKey) -> KESPeriod -> OperationalCertificateIssueCounter -> Either OperationalCertIssueError (OperationalCertificate, OperationalCertificateIssueCounter)
- data family AsType t
Documentation
data OperationalCertificate Source #
Instances
Show OperationalCertificate Source # | |
Defined in Cardano.Api.OperationalCertificate | |
HasTypeProxy OperationalCertificate Source # | |
SerialiseAsCBOR OperationalCertificate Source # | |
HasTextEnvelope OperationalCertificate Source # | |
FromCBOR OperationalCertificate Source # | |
Defined in Cardano.Api.OperationalCertificate | |
ToCBOR OperationalCertificate Source # | |
Defined in Cardano.Api.OperationalCertificate toCBOR :: OperationalCertificate -> Encoding Source # encodedSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy OperationalCertificate -> Size Source # encodedListSizeExpr :: (forall t. ToCBOR t => Proxy t -> Size) -> Proxy [OperationalCertificate] -> Size Source # | |
Eq OperationalCertificate Source # | |
Defined in Cardano.Api.OperationalCertificate | |
data AsType OperationalCertificate Source # | |
data OperationalCertificateIssueCounter Source #
Instances
Instances
Generic KESPeriod | |||||
Defined in Cardano.Protocol.TPraos.OCert
| |||||
Show KESPeriod | |||||
FromCBOR KESPeriod | |||||
ToCBOR KESPeriod | |||||
DecCBOR KESPeriod | |||||
EncCBOR KESPeriod | |||||
Eq KESPeriod | |||||
Ord KESPeriod | |||||
Defined in Cardano.Protocol.TPraos.OCert | |||||
NoThunks KESPeriod | |||||
type Rep KESPeriod | |||||
Defined in Cardano.Protocol.TPraos.OCert type Rep KESPeriod = D1 ('MetaData "KESPeriod" "Cardano.Protocol.TPraos.OCert" "cardano-protocol-tpraos-1.2.0.1-36a38d414efb56377eae90ac31718c4f07f2456cde048c9a33e05edf1216b626" 'True) (C1 ('MetaCons "KESPeriod" 'PrefixI 'True) (S1 ('MetaSel ('Just "unKESPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word))) |
data OperationalCertIssueError Source #
OperationalCertKeyMismatch (VerificationKey StakePoolKey) (VerificationKey StakePoolKey) | The stake pool verification key expected for the
Order: pool vkey expected, pool skey supplied |
Instances
issueOperationalCertificate :: VerificationKey KesKey -> Either (SigningKey StakePoolKey) (SigningKey GenesisDelegateExtendedKey) -> KESPeriod -> OperationalCertificateIssueCounter -> Either OperationalCertIssueError (OperationalCertificate, OperationalCertificateIssueCounter) Source #
Data family instances
A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.
Values of this type are passed to deserialisation functions for example.