Struct secp256k1::ecdh::SharedSecret [−][src]
#[repr(C)]pub struct SharedSecret(_);
A tag used for recovering the public key from a compact signature
Methods
impl SharedSecret[src]
impl SharedSecretpub fn new(
secp: &Secp256k1,
point: &PublicKey,
scalar: &SecretKey
) -> SharedSecret[src]
pub fn new(
secp: &Secp256k1,
point: &PublicKey,
scalar: &SecretKey
) -> SharedSecretCreates a new shared secret from a pubkey and secret key
pub fn new_raw(
secp: &Secp256k1,
point: &PublicKey,
scalar: &SecretKey
) -> SharedSecret[src]
pub fn new_raw(
secp: &Secp256k1,
point: &PublicKey,
scalar: &SecretKey
) -> SharedSecretCreates a new unhashed shared secret from a pubkey and secret key
pub fn as_ptr(&self) -> *const SharedSecret[src]
pub fn as_ptr(&self) -> *const SharedSecretObtains a raw pointer suitable for use with FFI functions
Trait Implementations
impl Copy for SharedSecret[src]
impl Copy for SharedSecretimpl Clone for SharedSecret[src]
impl Clone for SharedSecretfn clone(&self) -> SharedSecret[src]
fn clone(&self) -> SharedSecretReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for SharedSecret[src]
impl PartialEq for SharedSecretfn eq(&self, other: &SharedSecret) -> bool[src]
fn eq(&self, other: &SharedSecret) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SharedSecret) -> bool[src]
fn ne(&self, other: &SharedSecret) -> boolThis method tests for !=.
impl Eq for SharedSecret[src]
impl Eq for SharedSecretimpl Debug for SharedSecret[src]
impl Debug for SharedSecretfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl From<SharedSecret> for SharedSecret[src]
impl From<SharedSecret> for SharedSecretCreates a new shared secret from a FFI shared secret
fn from(ss: SharedSecret) -> SharedSecret[src]
fn from(ss: SharedSecret) -> SharedSecretPerforms the conversion.
impl Index<usize> for SharedSecret[src]
impl Index<usize> for SharedSecrettype Output = u8
The returned type after indexing.
fn index(&self, index: usize) -> &u8[src]
fn index(&self, index: usize) -> &u8Performs the indexing (container[index]) operation.
impl Index<Range<usize>> for SharedSecret[src]
impl Index<Range<usize>> for SharedSecrettype Output = [u8]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[u8][src]
fn index(&self, index: Range<usize>) -> &[u8]Performs the indexing (container[index]) operation.
impl Index<RangeFrom<usize>> for SharedSecret[src]
impl Index<RangeFrom<usize>> for SharedSecrettype Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[u8][src]
fn index(&self, index: RangeFrom<usize>) -> &[u8]Performs the indexing (container[index]) operation.
impl Index<RangeFull> for SharedSecret[src]
impl Index<RangeFull> for SharedSecretAuto Trait Implementations
impl Send for SharedSecret
impl Send for SharedSecretimpl Sync for SharedSecret
impl Sync for SharedSecret