Ouroboros.Consensus.Shelley.Protocol.Praos
Contents
data PraosEnvelopeError Source #
Constructors
Defined in Ouroboros.Consensus.Shelley.Protocol.Praos
Methods
(==) :: PraosEnvelopeError -> PraosEnvelopeError -> Bool Source #
(/=) :: PraosEnvelopeError -> PraosEnvelopeError -> Bool Source #
showsPrec :: Int -> PraosEnvelopeError -> ShowS Source #
show :: PraosEnvelopeError -> String Source #
showList :: [ PraosEnvelopeError ] -> ShowS Source #
Associated Types
type Rep PraosEnvelopeError :: Type -> Type Source #
from :: PraosEnvelopeError -> Rep PraosEnvelopeError x Source #
to :: Rep PraosEnvelopeError x -> PraosEnvelopeError Source #
noThunks :: Context -> PraosEnvelopeError -> IO ( Maybe ThunkInfo ) Source #
wNoThunks :: Context -> PraosEnvelopeError -> IO ( Maybe ThunkInfo ) Source #
showTypeOf :: Proxy PraosEnvelopeError -> String Source #
headerSigned :: Header c -> Signed ( Header c) Source #
mkHeaderView :: ShelleyProtocolHeader ( Praos c) -> BHeaderView ( ProtoCrypto ( Praos c)) Source #
type CannotForgeError ( Praos c) Source #
protocolHeaderView :: ShelleyProtocolHeader ( Praos c) -> ValidateView ( Praos c) Source #
pHeaderIssuer :: ShelleyProtocolHeader ( Praos c) -> VKey ' BlockIssuer ( ProtoCrypto ( Praos c)) Source #
pHeaderIssueNo :: ShelleyProtocolHeader ( Praos c) -> Word64 Source #
pHeaderVRFValue :: ShelleyProtocolHeader ( Praos c) -> OutputVRF ( VRF ( ProtoCrypto ( Praos c))) Source #
configSlotsPerKESPeriod :: ConsensusConfig ( Praos c) -> Word64 Source #
verifyHeaderIntegrity :: Word64 -> ShelleyProtocolHeader ( Praos c) -> Bool Source #
mkHeader :: ( Crypto crypto, Monad m, crypto ~ ProtoCrypto ( Praos c)) => HotKey crypto m -> CanBeLeader ( Praos c) -> IsLeader ( Praos c) -> SlotNo -> BlockNo -> PrevHash crypto -> Hash crypto EraIndependentBlockBody -> Int -> ProtVer -> m ( ShelleyProtocolHeader ( Praos c)) Source #
type EnvelopeCheckError ( Praos c) Source #
pHeaderHash :: ShelleyProtocolHeader ( Praos c) -> ShelleyHash ( ProtoCrypto ( Praos c)) Source #
pHeaderPrevHash :: ShelleyProtocolHeader ( Praos c) -> PrevHash ( ProtoCrypto ( Praos c)) Source #
pHeaderBodyHash :: ShelleyProtocolHeader ( Praos c) -> Hash ( ProtoCrypto ( Praos c)) EraIndependentBlockBody Source #
pHeaderSlot :: ShelleyProtocolHeader ( Praos c) -> SlotNo Source #
pHeaderBlock :: ShelleyProtocolHeader ( Praos c) -> BlockNo Source #
pHeaderSize :: ShelleyProtocolHeader ( Praos c) -> Natural Source #
pHeaderBlockSize :: ShelleyProtocolHeader ( Praos c) -> Natural Source #
envelopeChecks :: ConsensusConfig ( Praos c) -> Ticked ( LedgerView ( Praos c)) -> ShelleyProtocolHeader ( Praos c) -> Except ( EnvelopeCheckError ( Praos c)) () Source #