pub fn nonce_pair(
keypair: &Keypair,
rng: &mut impl Rng,
) -> Result<(SecretNonce, PublicNonce), BridgeError>
Expand description
Generates a pair of nonces, one secret and one public. Be careful, DO NOT REUSE the same pair of nonces for multiple transactions. It will cause you to leak your secret key. For more information. See: https://medium.com/blockstream/musig-dn-schnorr-multisignatures-with-verifiably-deterministic-nonces-27424b5df9d6#e3b6.