Module mithril_common::crypto_helper::tests_setup
source · Expand description
Test data builders for Mithril STM types, for testing purpose.
Functions§
- Instantiate a certificate chain, use this for tests only.
- Instantiate a ProtocolMessage using fake data, use this for tests only.
- Instantiate a ProtocolParameters, use this for tests only.
- Instantiate a list of protocol signers based on the given ProtocolStakeDistribution and ProtocolParameters, use this for tests only.
- Create or retrieve a temporary directory for storing cryptographic material for a signer, use this for tests only.