Struct libsecp256k1::SharedSecret
source · pub struct SharedSecret<D: Digest>(/* private fields */);
Expand description
Shared secret using ECDH.
Implementations§
pub fn new_with_context( pubkey: &PublicKey, seckey: &SecretKey, context: &ECMultContext, ) -> Result<SharedSecret<D>, Error>
pub fn new( pubkey: &PublicKey, seckey: &SecretKey, ) -> Result<SharedSecret<D>, Error>
Trait Implementations§
source§fn clone(&self) -> SharedSecret<D>
fn clone(&self) -> SharedSecret<D>
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 moresource§fn eq(&self, other: &SharedSecret<D>) -> bool
fn eq(&self, other: &SharedSecret<D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)