Struct secp256k1::ecdh::SharedSecret [] [src]

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 as_ptr(&self) -> *const SharedSecret

Obtains a raw pointer suitable for use with FFI functions

Trait Implementations

impl Debug for SharedSecret
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Eq for SharedSecret
[src]

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 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 Copy 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 (Foo[Bar]) 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 (Foo[Bar]) 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 (Foo[Bar]) operation

impl Index<RangeFull> for SharedSecret
[src]

type Output = [u8]

The returned type after indexing

fn index(&self, _: RangeFull) -> &[u8]

The method for the indexing (Foo[Bar]) operation