[−][src]Struct secp256k1::ecdh::SharedSecret
A tag used for recovering the public key from a compact signature
Methods
impl SharedSecret
[src]
impl SharedSecret
pub fn new(point: &PublicKey, scalar: &SecretKey) -> SharedSecret | [src] |
Creates a new shared secret from a pubkey and secret key
pub fn as_ptr(&self) -> *const SharedSecret | [src] |
Obtains a raw pointer suitable for use with FFI functions
Trait Implementations
impl From<SharedSecret> for SharedSecret
[src]
impl From<SharedSecret> for SharedSecret
Creates a new shared secret from a FFI shared secret
fn from(ss: SharedSecret) -> SharedSecret | [src] |
impl Eq for SharedSecret
[src]
impl Eq for SharedSecret
impl Copy for SharedSecret
[src]
impl Copy for SharedSecret
impl PartialEq<SharedSecret> for SharedSecret
[src]
impl PartialEq<SharedSecret> for SharedSecret
fn eq(&self, other: &SharedSecret) -> bool | [src] |
fn ne(&self, other: &SharedSecret) -> bool | [src] |
impl Clone for SharedSecret
[src]
impl Clone for SharedSecret
fn clone(&self) -> SharedSecret | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for SharedSecret
[src]
impl Debug for SharedSecret
impl Index<usize> for SharedSecret
[src]
impl Index<usize> for SharedSecret
impl Index<Range<usize>> for SharedSecret
[src]
impl Index<Range<usize>> for SharedSecret
type Output = [u8]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[u8] | [src] |
impl Index<RangeFrom<usize>> for SharedSecret
[src]
impl Index<RangeFrom<usize>> for SharedSecret
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[u8] | [src] |
impl Index<RangeFull> for SharedSecret
[src]
impl Index<RangeFull> for SharedSecret
Auto Trait Implementations
impl Send for SharedSecret
impl Send for SharedSecret
impl Sync for SharedSecret
impl Sync for SharedSecret
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |