HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulekes-agent-crypto-1.2.0.0Haskell2010

Cardano.KESAgent.KES.OCert

A stripped-down version of the OCert and Crypto types used in cardano-ledger. We only replicate what we need here, so as to avoid depending on cardano-ledger.

In order to keep things simple, we do not use the same CBOR serialization format for the OCert type; this would require using or replicating the CBORGroup functionality from cardano-ledger, which I feel would be too much to replicate here, and since the KES Agent protocols are not performance critical, the small overhead introduced by using the default CBOR serialization seems like an acceptable tradeoff.

  • 3 types
  • 2 values
newtypenewtype KESPeriod
#

KESPeriod begins at the start of the chain, unlike Period in KES API, which starts at some specific KESPeriod (see ocertKESPeriod).

Constructors

Instances9Eq, Ord, Show, Generic, NFData, NoThunks, …
datadata OCertSignable c
#

Signable part of an operational certificate

Instances3FromCBOR, ToCBOR, SignableRepresentation
datadata OCert c
#

Operational certificate ("opcert"). This matches the OCert type in ouroboros-consensus; we redefine it here to avoid depending on ouroboros-consensus.

Constructors

Instances6Eq, Show, Generic, FromCBOR, ToCBOR, Rep