cardano-crypto-test-1.5.0.2: Test helpers from cardano-crypto exposed to other packages
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cardano.Crypto.Gen

Synopsis

Protocol Magic Generator

genProtocolMagicIdGen ProtocolMagicId Source #

Whilst ProtocolMagicId is represented as a Word32 in cardano-ledger, in cardano-sl it was an Int32. In order to tolerate this, and since we don't care about testing compatibility with negative values, we only generate values between 0 and (maxBound :: Int32) - 1, inclusive.

Sign Tag Generator

Key Generators

Redeem Key Generators

Signature Generators

Hash Generators

genAbstractHash ∷ (EncCBOR a, HashAlgorithm algo) ⇒ Gen a → Gen (AbstractHash algo a) Source #

SafeSigner Generators

PassPhrase Generators

Helper Generators

feedPM ∷ (ProtocolMagicIdGen a) → Gen a Source #