Struct secp256k1::ffi::SharedSecret
source · #[repr(C)]pub struct SharedSecret(_);
Expand description
Library-internal representation of an ECDH shared secret
Implementations§
sourcepub fn new() -> SharedSecret
pub fn new() -> SharedSecret
Create a new (zeroed) signature usable for the FFI interface
sourcepub unsafe fn blank() -> SharedSecret
pub unsafe fn blank() -> SharedSecret
Create a new (uninitialized) signature usable for the FFI interface
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.
source§fn cmp(&self, other: &SharedSecret) -> Ordering
fn cmp(&self, other: &SharedSecret) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§fn eq(&self, other: &SharedSecret) -> bool
fn eq(&self, other: &SharedSecret) -> bool
source§fn partial_cmp(&self, other: &SharedSecret) -> Option<Ordering>
fn partial_cmp(&self, other: &SharedSecret) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more