Type Definition bitcoin::key::secp256k1::ffi::SchnorrNonceFn

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.