pub struct SharedSecret(/* private fields */);
Expand description
A tag used for recovering the public key from a compact signature
Implementations§
Sourcepub fn new(
secp: &Secp256k1,
point: &PublicKey,
scalar: &SecretKey,
) -> SharedSecret
pub fn new( secp: &Secp256k1, point: &PublicKey, scalar: &SecretKey, ) -> SharedSecret
Creates a new shared secret from a pubkey and secret key
Sourcepub fn as_ptr(&self) -> *const SharedSecret
pub fn as_ptr(&self) -> *const SharedSecret
Obtains a raw pointer suitable for use with FFI functions
Trait Implementations§
Source§fn clone(&self) -> SharedSecret
fn clone(&self) -> SharedSecret
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreCreates a new shared secret from a FFI shared secret
Source§fn from(ss: SharedSecret) -> SharedSecret
fn from(ss: SharedSecret) -> SharedSecret
Converts to this type from the input type.
Auto Trait Implementations§
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)