Struct SchnorrSigExtraParams
pub struct SchnorrSigExtraParams { /* private fields */ }Expand description
Data structure that contains additional arguments for schnorrsig_sign_custom.
Implementations§
§impl SchnorrSigExtraParams
impl SchnorrSigExtraParams
pub fn new(
nonce_fp: Option<unsafe extern "C" fn(*mut u8, *const u8, usize, *const u8, *const u8, *const u8, usize, *mut c_void) -> i32>,
ndata: *const c_void,
) -> SchnorrSigExtraParams
pub fn new( nonce_fp: Option<unsafe extern "C" fn(*mut u8, *const u8, usize, *const u8, *const u8, *const u8, usize, *mut c_void) -> i32>, ndata: *const c_void, ) -> SchnorrSigExtraParams
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 Freeze for SchnorrSigExtraParams
impl RefUnwindSafe for SchnorrSigExtraParams
impl !Send for SchnorrSigExtraParams
impl !Sync for SchnorrSigExtraParams
impl Unpin for SchnorrSigExtraParams
impl UnsafeUnpin for SchnorrSigExtraParams
impl UnwindSafe for SchnorrSigExtraParams
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request