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>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<D> Copy for SharedSecret<D> where
D: Copy + Digest,
GenericArray<u8, D::OutputSize>: Copy,
Auto Trait Implementations
impl<D> RefUnwindSafe for SharedSecret<D> where
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<D> Send for SharedSecret<D>
impl<D> Sync for SharedSecret<D>
impl<D> Unpin for SharedSecret<D> where
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<D> UnwindSafe for SharedSecret<D> where
<<D as Digest>::OutputSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more