Type Definition secp256k1_test::ffi::NonceFn [] [src]

type NonceFn = unsafe extern "C" fn(_: *mut c_uchar, _: *const c_uchar, _: *const c_uchar, _: *const c_uchar, _: c_uint, _: *const c_void);

A nonce generation function. Ordinary users of the library never need to see this type; only if you need to control nonce generation do you need to use it. I have deliberately made this hard to do: you have to write your own wrapper around the FFI functions to use it. And it's an unsafe type. Nonces are generated deterministically by RFC6979 by default; there should be no need to ever change this.