pub fn new_with_deterministic_nonces<H>() -> MuSig<H, Deterministic<H>>
where H: Tag + Digest<OutputSize = U32> + Default + Clone,
Expand description

Constructor for a MuSig instance using deterministic nonce generation.

If you use deterministic nonce generation you will have to provide a unique session id to every signing session. The advantage is that you will be able to regenerate the same nonces at a later point from MuSig::seed_nonce_rng.

use schnorr_fun::musig;
let musig = musig::new_with_deterministic_nonces::<sha2::Sha256>();