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]
fn new(secp: &Secp256k1, point: &PublicKey, scalar: &SecretKey) -> SharedSecret
Creates a new shared secret from a pubkey and secret key
fn new_raw(
secp: &Secp256k1,
point: &PublicKey,
scalar: &SecretKey
) -> SharedSecret
secp: &Secp256k1,
point: &PublicKey,
scalar: &SecretKey
) -> SharedSecret
Creates a new unhashed shared secret from a pubkey and secret key
fn as_ptr(&self) -> *const SharedSecret
Obtains a raw pointer suitable for use with FFI functions
Trait Implementations
impl Copy for SharedSecret
[src]
impl Clone for SharedSecret
[src]
fn clone(&self) -> SharedSecret
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for SharedSecret
[src]
fn eq(&self, __arg_0: &SharedSecret) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SharedSecret) -> bool
This method tests for !=
.
impl Eq for SharedSecret
[src]
impl Debug for SharedSecret
[src]
impl From<SharedSecret> for SharedSecret
[src]
Creates a new shared secret from a FFI shared secret
fn from(ss: SharedSecret) -> SharedSecret
Performs the conversion.
impl Index<usize> for SharedSecret
[src]
type Output = u8
The returned type after indexing
fn index(&self, index: usize) -> &u8
The method for the indexing (container[index]
) operation
impl Index<Range<usize>> for SharedSecret
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: Range<usize>) -> &[u8]
The method for the indexing (container[index]
) operation
impl Index<RangeFrom<usize>> for SharedSecret
[src]
type Output = [u8]
The returned type after indexing
fn index(&self, index: RangeFrom<usize>) -> &[u8]
The method for the indexing (container[index]
) operation