Type Alias SchnorrNonceFn

Source
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.

Aliased Type§

pub enum SchnorrNonceFn {
    None,
    Some(unsafe extern "C" fn(*mut u8, *const u8, usize, *const u8, *const u8, *const u8, usize, *mut c_void) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut u8, *const u8, usize, *const u8, *const u8, *const u8, usize, *mut c_void) -> i32)

Some value of type T.