| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.Consensus.Cardano.MockCrypto
Synopsis
Documentation
data MockCryptoCompatByron Source #
A replacement for MockCrypto that is compatible
with bootstrapping from Byron.
- The Ouroboros.Consensus.Cardano.CanHardFork translation requires that
ADDRHASHhas the same bit size as Byron address hashes (ie 224); that's why we useBlake2b_224here. - Similarly,
HASHhas to have the same bit size as Byron header hashes (ie 256), that's why we useBlake2b_256here. - The
cardano-ledger-shelleypackage currently requires that @DSIGN~Ed25519DSIGNin order to use Byron bootstrap witnesses. - We can still use mock KES and mock VRF.
Note that many Shelley generators are not instantiated to MockShelley but
are constrained by . CanMock era
satisfies this constraint, allowing us to reuse these generators for Cardano.ShelleyEra MockCryptoCompatByron
Instances
| Crypto MockCryptoCompatByron Source # | |||||||||
Defined in Test.Consensus.Cardano.MockCrypto Associated Types
| |||||||||
| PraosCrypto MockCryptoCompatByron Source # | |||||||||
Defined in Test.Consensus.Cardano.MockCrypto | |||||||||
| PraosCrypto MockCryptoCompatByron Source # | |||||||||
Defined in Test.Consensus.Cardano.MockCrypto | |||||||||
| type KES MockCryptoCompatByron Source # | |||||||||
Defined in Test.Consensus.Cardano.MockCrypto | |||||||||
| type VRF MockCryptoCompatByron Source # | |||||||||
Defined in Test.Consensus.Cardano.MockCrypto | |||||||||