Safe Haskell | None |
---|---|
Language | Haskell2010 |
Operational certificates
Synopsis
- data OperationalCertificate = OperationalCertificate !(OCert StandardCrypto) !(VerificationKey StakePoolKey)
- data OperationalCertificateIssueCounter = OperationalCertificateIssueCounter !Word64 !(VerificationKey StakePoolKey)
- newtype KESPeriod = KESPeriod {}
- data OperationalCertIssueError = OperationalCertKeyMismatch (VerificationKey StakePoolKey) (VerificationKey StakePoolKey)
- issueOperationalCertificate ∷ VerificationKey KesKey → Either (SigningKey StakePoolKey) (SigningKey GenesisDelegateExtendedKey) → KESPeriod → OperationalCertificateIssueCounter → Either OperationalCertIssueError (OperationalCertificate, OperationalCertificateIssueCounter)
- data family AsType t
Documentation
data OperationalCertificate Source #
OperationalCertificate !(OCert StandardCrypto) !(VerificationKey StakePoolKey) |
Instances
Eq OperationalCertificate Source # | |
Show OperationalCertificate Source # | |
Defined in Bcc.Api.OperationalCertificate | |
FromCBOR OperationalCertificate Source # | |
Defined in Bcc.Api.OperationalCertificate fromCBOR ∷ Decoder s OperationalCertificate # | |
ToCBOR OperationalCertificate Source # | |
Defined in Bcc.Api.OperationalCertificate toCBOR ∷ OperationalCertificate → Encoding # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy OperationalCertificate → Size # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [OperationalCertificate] → Size # | |
HasTypeProxy OperationalCertificate Source # | |
SerialiseAsCBOR OperationalCertificate Source # | |
Defined in Bcc.Api.OperationalCertificate | |
HasTextEnvelope OperationalCertificate Source # | |
data AsType OperationalCertificate Source # | |
Defined in Bcc.Api.OperationalCertificate |
data OperationalCertificateIssueCounter Source #
Instances
Instances
Eq KESPeriod | |
Ord KESPeriod | |
Defined in Bcc.Protocol.TOptimum.OCert | |
Show KESPeriod | |
Generic KESPeriod | |
NoThunks KESPeriod | |
FromCBOR KESPeriod | |
ToCBOR KESPeriod | |
type Rep KESPeriod | |
Defined in Bcc.Protocol.TOptimum.OCert type Rep KESPeriod = D1 ('MetaData "KESPeriod" "Bcc.Protocol.TOptimum.OCert" "bcc-protocol-toptimum-0.1.0.0-e4c0ddeda0ea93d48bc0ac574b4d9bf5a041e1f973a8cf794f57007f11331e09" '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.