Module diem_sdk::crypto::test_utils
Expand description
Internal module containing convenience utility functions mainly for testing
Structs
- A keypair consisting of a private and public key
- This struct provides a means of testing signing and verification through BCS serialization and domain separation
- Cryptographic hasher for an BCS-serializable #item
Constants
- A deterministic seed for PRNGs related to keys
Functions
- Produces a random TestDiemCrypto signable / verifiable struct.
- Produces a uniformly random keypair from a seed
- Produces a uniformly random keypair from a seed and the user can alter this sleed slightly. Useful for circumstances where you want two disjoint keypair generations that may interact with each other.