[][src]Module libra_crypto::test_utils

Internal module containing convenience utility functions mainly for testing

Structs

KeyPair

A keypair consisting of a private and public key

TestLibraCrypto

This struct provides a means of testing signing and verification through LCS serialization and domain separation

TestLibraCryptoHasher

Cryptographic hasher for an LCS-serializable #item

Constants

TEST_SEED

A deterministic seed for PRNGs related to keys

Functions

random_serializable_struct

Produces a random TestLibraCrypto signable / verifiable struct.

uniform_keypair_strategy

Produces a uniformly random keypair from a seed