ouroboros-consensus-protocol-0.9.0.2: Cardano consensus protocols
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Ouroboros.Consensus.Protocol.Praos.Header

Documentation

data GeneratorContext Source #

data Mutation Source #

Constructors

NoMutation

No mutation

MutateKESKey

Mutate the KES key, ie. sign the header with a different KES key.

MutateColdKey

Mutate the cold key, ie. sign the operational certificate with a different cold key.

MutateKESPeriod

Mutate the KES period in the operational certificate to be after the start of the KES period.

MutateKESPeriodBefore

Mutate KES period to be before the current KES period

MutateCounterOver1

Mutate certificate counter to be greater than expected

MutateCounterUnder

Mutate certificate counter to be lower than expected

Instances

Instances details
FromJSON Mutation Source # 
Instance details

Defined in Test.Ouroboros.Consensus.Protocol.Praos.Header

ToJSON Mutation Source # 
Instance details

Defined in Test.Ouroboros.Consensus.Protocol.Praos.Header

Generic Mutation Source # 
Instance details

Defined in Test.Ouroboros.Consensus.Protocol.Praos.Header

Associated Types

type Rep MutationTypeType #

Methods

fromMutationRep Mutation x #

toRep Mutation x → Mutation #

Show Mutation Source # 
Instance details

Defined in Test.Ouroboros.Consensus.Protocol.Praos.Header

Methods

showsPrecIntMutationShowS #

showMutationString #

showList ∷ [Mutation] → ShowS #

Eq Mutation Source # 
Instance details

Defined in Test.Ouroboros.Consensus.Protocol.Praos.Header

Methods

(==)MutationMutationBool #

(/=)MutationMutationBool #

type Rep Mutation Source # 
Instance details

Defined in Test.Ouroboros.Consensus.Protocol.Praos.Header

type Rep Mutation = D1 ('MetaData "Mutation" "Test.Ouroboros.Consensus.Protocol.Praos.Header" "ouroboros-consensus-protocol-0.9.0.2-inplace-unstable-protocol-testlib" 'False) ((C1 ('MetaCons "NoMutation" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "MutateKESKey" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "MutateColdKey" 'PrefixI 'False) (U1TypeType))) :+: ((C1 ('MetaCons "MutateKESPeriod" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "MutateKESPeriodBefore" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "MutateCounterOver1" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "MutateCounterUnder" 'PrefixI 'False) (U1TypeType))))