StaticgenerateGenerates a new uniformly random signing nonce by sourcing fresh randomness and combining with the secret signing share, to hedge against a bad RNG.
Each participant generates signing nonces before performing a signing operation.
An implementation of nonce_generate(secret) from the spec.
The ciphersuite to use
The participant's signing share
A cryptographically secure random number generator
A new signing nonce
StaticfromStaticnonceInternalGenerates a nonce from the given random bytes. This function allows testing and MUST NOT be made public.
StaticdeserializeDeserialize a Nonce from bytes.
The ciphersuite to use
The serialized nonce bytes
The deserialized nonce
Serialize the Nonce to bytes.
The serialized nonce bytes
Zeroize the nonce by overwriting the scalar with zero.
This should be called when the nonce is no longer needed to prevent secret data from remaining in memory.
A scalar that is a signing nonce.
Nonces are secret values generated during Round 1 that must be kept private and used exactly once for a signing operation.