Struct libsecp256k1::SharedSecret
source · [−]pub struct SharedSecret<D: Digest>(_);
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
sourcefn clone(&self) -> SharedSecret<D>
fn clone(&self) -> SharedSecret<D>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SharedSecret<D>) -> bool
fn ne(&self, other: &SharedSecret<D>) -> bool
This method tests for !=
.