pub type SchnorrNonceFn = Option<unsafe extern "C" fn(*mut u8, *const u8, usize, *const u8, *const u8, *const u8, usize, *mut c_void) -> i32>;
Expand description

Same as secp256k1_nonce function with the exception of accepting an additional pubkey argument and not requiring an attempt argument. The pubkey argument can protect signature schemes with key-prefixed challenge hash inputs against reusing the nonce when signing with the wrong precomputed pubkey.