Struct secp256k1_sys::SchnorrSigExtraParams
source · [−]#[repr(C)]pub struct SchnorrSigExtraParams { /* private fields */ }
Expand description
Data structure that contains additional arguments for schnorrsig_sign_custom.
Implementations
sourceimpl SchnorrSigExtraParams
impl SchnorrSigExtraParams
sourcepub fn new(nonce_fp: SchnorrNonceFn, ndata: *const c_void) -> Self
pub fn new(nonce_fp: SchnorrNonceFn, ndata: *const c_void) -> Self
Create a new SchnorrSigExtraParams properly initialized.
nonce_fp
: pointer to a nonce generation function. If NULL
rustsecp256k1_v0_5_0_nonce_function_bip340 is used
ndata
: pointer to arbitrary data used by the nonce generation function
(can be NULL). If it is non-NULL and
rustsecp256k1_v0_5_0_nonce_function_bip340 is used,
then ndata must be a pointer to 32-byte auxiliary randomness as per
BIP-340.
Auto Trait Implementations
impl RefUnwindSafe for SchnorrSigExtraParams
impl !Send for SchnorrSigExtraParams
impl !Sync for SchnorrSigExtraParams
impl Unpin for SchnorrSigExtraParams
impl UnwindSafe for SchnorrSigExtraParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more