Module tests

Module tests 

Source
Available on crate feature tests only.
Expand description

Tests for application-provided curves and algorithms.

Modules§

nonces
Tests for the nonce handling code.
vectors
Vectorized test suite to ensure consistency.

Constants§

PARTICIPANTS
Constant amount of participants to use when testing.
THRESHOLD
Constant threshold of participants to use when signing.

Functions§

algorithm_machines
Spawn algorithm machines for a random selection of signers, each executing the given algorithm.
algorithm_machines_without_clone
Spawn algorithm machines for a random selection of signers, each executing the given algorithm.
clone_without
Clone a map without a specific value.
key_gen
Create a key, for testing purposes.
recover_key
Recover a shared secret from a collection of dkg::ThresholdKeys.
sign
Execute the signing protocol, randomly caching various machines to ensure they can cache successfully.
sign_without_caching
Execute the signing protocol, without caching any machines. This isn’t as comprehensive at testing as sign, and accordingly isn’t preferred, yet is usable for machines not supporting caching.
sign_without_clone
Execute the signing protocol, randomly caching various machines to ensure they can cache successfully.
test_ciphersuite
Run a variety of tests against a ciphersuite.
test_offset_schnorr
Test an offset Schnorr signature.
test_schnorr
Test a basic Schnorr signature.
test_schnorr_blame
Test blame for an invalid Schnorr signature share.
test_schnorr_with_keys
Test a basic Schnorr signature with the provided keys.