Module modular_frost::tests
source · Available on crate feature
tests
only.Expand description
Tests for application-provided curves and algorithms.
Modules§
- Tests for the nonce handling code.
- Vectorized test suite to ensure consistency.
Constants§
- Constant amount of participants to use when testing.
- Constant threshold of participants to use when signing.
Functions§
- Spawn algorithm machines for a random selection of signers, each executing the given algorithm.
- Clone a map without a specific value.
- Generate threshold keys for tests.
- Generate MuSig keys for tests.
- Recover the secret from a collection of keys.
- Execute the signing protocol, randomly caching various machines to ensure they can cache successfully.
- 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.
- Run a variety of tests against a ciphersuite.
- Test a basic Schnorr signature, yet with MuSig.
- Test an offset Schnorr signature.
- Test a basic Schnorr signature.
- Test blame for an invalid Schnorr signature share.
- Test a basic Schnorr signature with the provided keys.