Type Alias breez_sdk_liquid::bitcoin::util::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.

Aliased Type§

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.