Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Cardano.Protocol.TPraos.OCert
Synopsis
- data OCert c = OCert {
- ocertVkHot ∷ !(VerKeyKES (KES c))
- ocertN ∷ !Word64
- ocertKESPeriod ∷ !KESPeriod
- ocertSigma ∷ !(SignedDSIGN DSIGN (OCertSignable c))
- data OCertEnv = OCertEnv {}
- data OCertSignable c = OCertSignable !(VerKeyKES (KES c)) !Word64 !KESPeriod
- ocertToSignable ∷ OCert c → OCertSignable c
- currentIssueNo ∷ OCertEnv → Map (KeyHash 'BlockIssuer) Word64 → KeyHash 'BlockIssuer → Maybe Word64
- newtype KESPeriod = KESPeriod {}
- slotsPerKESPeriod ∷ Globals → Word64
- kesPeriod ∷ SlotNo → ShelleyBase KESPeriod
Documentation
Constructors
OCert | |
Fields
|
Instances
Generic (OCert c) Source # | |
Crypto c ⇒ Show (OCert c) Source # | |
Crypto c ⇒ FromCBOR (OCert c) Source # | |
Crypto c ⇒ ToCBOR (OCert c) Source # | |
Crypto c ⇒ EncCBOR (OCert c) Source # | |
Crypto c ⇒ DecCBORGroup (OCert c) Source # | |
Defined in Cardano.Protocol.TPraos.OCert Methods decCBORGroup ∷ Decoder s (OCert c) Source # | |
Crypto c ⇒ EncCBORGroup (OCert c) Source # | |
Crypto c ⇒ Eq (OCert c) Source # | |
Crypto c ⇒ NoThunks (OCert c) Source # | |
type Rep (OCert c) Source # | |
Defined in Cardano.Protocol.TPraos.OCert type Rep (OCert c) = D1 ('MetaData "OCert" "Cardano.Protocol.TPraos.OCert" "cardano-protocol-tpraos-1.4.0.0-inplace" 'False) (C1 ('MetaCons "OCert" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ocertVkHot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (VerKeyKES (KES c))) :*: S1 ('MetaSel ('Just "ocertN") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)) :*: (S1 ('MetaSel ('Just "ocertKESPeriod") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 KESPeriod) :*: S1 ('MetaSel ('Just "ocertSigma") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (SignedDSIGN DSIGN (OCertSignable c)))))) |
data OCertSignable c Source #
Signable part of an operational certificate
Constructors
OCertSignable !(VerKeyKES (KES c)) !Word64 !KESPeriod |
Instances
Crypto c ⇒ SignableRepresentation (OCertSignable c) Source # | |
Defined in Cardano.Protocol.TPraos.OCert Methods getSignableRepresentation ∷ OCertSignable c → ByteString Source # |
ocertToSignable ∷ OCert c → OCertSignable c Source #
Extract the signable part of an operational certificate (for verification)
Arguments
∷ OCertEnv | |
→ Map (KeyHash 'BlockIssuer) Word64 | |
→ KeyHash 'BlockIssuer | Pool hash |
→ Maybe Word64 |
Constructors
KESPeriod | |
Fields |