ouroboros-consensus:unstable-protocol-testlib
Safe HaskellNone
LanguageHaskell2010

Test.Consensus.Protocol.Serialisation.Generators

Description

Generators suitable for serialisation. Note that these are not guaranteed to be semantically correct at all, only structurally correct.

Orphan instances

Arbitrary InputVRF Source # 
Instance details

Arbitrary LeiosAnnouncement Source # 
Instance details

Arbitrary WhyNotCertifiable Source # 
Instance details

Methods

arbitrary ∷ Gen WhyNotCertifiable Source #

shrink ∷ WhyNotCertifiable → [WhyNotCertifiable] Source #

PraosCrypto c ⇒ Arbitrary (Header c) Source # 
Instance details

Methods

arbitrary ∷ Gen (Header c) Source #

shrink ∷ Header c → [Header c] Source #

PraosCrypto c ⇒ Arbitrary (HeaderBody c) Source # 
Instance details

(Applicative (WhenLeios proto), Traversable (WhenLeios proto)) ⇒ Arbitrary (PolyPraosState proto) Source # 
Instance details

Methods

arbitrary ∷ Gen (PolyPraosState proto) Source #

shrink ∷ PolyPraosState proto → [PolyPraosState proto] Source #