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]

Creates a new shared secret from a pubkey and secret key

Creates a new unhashed shared secret from a pubkey and secret key

Obtains a raw pointer suitable for use with FFI functions

Trait Implementations

impl Copy for SharedSecret
[src]

impl Clone for SharedSecret
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for SharedSecret
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for SharedSecret
[src]

impl Debug for SharedSecret
[src]

Formats the value using the given formatter.

impl From<SharedSecret> for SharedSecret
[src]

Creates a new shared secret from a FFI shared secret

Performs the conversion.

impl Index<usize> for SharedSecret
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl Index<Range<usize>> for SharedSecret
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl Index<RangeFrom<usize>> for SharedSecret
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl Index<RangeFull> for SharedSecret
[src]

The returned type after indexing

The method for the indexing (container[index]) operation