Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
data
OCert
crypto =
OCert
{
- ocertVkHot :: !( VerKeyKES crypto)
- ocertN :: ! Word64
- ocertKESPeriod :: ! KESPeriod
- ocertSigma :: !( SignedDSIGN crypto ( OCertSignable crypto))
-
data
OCertEnv
crypto =
OCertEnv
{
- ocertEnvStPools :: Set ( KeyHash ' StakePool crypto)
- ocertEnvGenDelegs :: Set ( KeyHash ' GenesisDelegate crypto)
- data OCertSignable crypto = OCertSignable !( VerKeyKES crypto) ! Word64 ! KESPeriod
- ocertToSignable :: OCert crypto -> OCertSignable crypto
- currentIssueNo :: OCertEnv crypto -> Map ( KeyHash ' BlockIssuer crypto) Word64 -> KeyHash ' BlockIssuer crypto -> Maybe Word64
-
newtype
KESPeriod
=
KESPeriod
{
- unKESPeriod :: Word
- slotsPerKESPeriod :: Globals -> Word64
- kesPeriod :: SlotNo -> ShelleyBase KESPeriod
Documentation
OCert | |
|
Instances
OCertEnv | |
|
data OCertSignable crypto Source #
Signable part of an operational certificate
OCertSignable !( VerKeyKES crypto) ! Word64 ! KESPeriod |
Instances
Crypto crypto => SignableRepresentation ( OCertSignable crypto) Source # | |
Defined in Cardano.Protocol.TPraos.OCert getSignableRepresentation :: OCertSignable crypto -> ByteString Source # |
ocertToSignable :: OCert crypto -> OCertSignable crypto Source #
Extract the signable part of an operational certificate (for verification)
:: OCertEnv crypto | |
-> Map ( KeyHash ' BlockIssuer crypto) Word64 | |
-> KeyHash ' BlockIssuer crypto |
Pool hash |
-> Maybe Word64 |
Instances
Eq KESPeriod Source # | |
Ord KESPeriod Source # | |
Defined in Cardano.Protocol.TPraos.OCert |
|
Show KESPeriod Source # | |
Generic KESPeriod Source # | |
ToCBOR KESPeriod Source # | |
FromCBOR KESPeriod Source # | |
NoThunks KESPeriod Source # | |
type Rep KESPeriod Source # | |
Defined in Cardano.Protocol.TPraos.OCert
type
Rep
KESPeriod
=
D1
('
MetaData
"KESPeriod" "Cardano.Protocol.TPraos.OCert" "cardano-protocol-tpraos-0.1.0.0-La5Cvz4HrqgBuFHns9l3Vn" '
True
) (
C1
('
MetaCons
"KESPeriod" '
PrefixI
'
True
) (
S1
('
MetaSel
('
Just
"unKESPeriod") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
Word
)))
|
slotsPerKESPeriod :: Globals -> Word64 Source #