[−][src]Struct secp256k1::ecdh::SharedSecret
A tag used for recovering the public key from a compact signature
Methods
impl SharedSecret
[src]
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]
Creates a new shared secret from a FFI shared secret
fn from(ss: SharedSecret) -> SharedSecret
[src]
impl Clone for SharedSecret
[src]
fn clone(&self) -> SharedSecret
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<SharedSecret> for SharedSecret
[src]
fn eq(&self, other: &SharedSecret) -> bool
[src]
fn ne(&self, other: &SharedSecret) -> bool
[src]
impl Eq for SharedSecret
[src]
impl Copy for SharedSecret
[src]
impl Debug for SharedSecret
[src]
impl Index<usize> for SharedSecret
[src]
impl Index<Range<usize>> for SharedSecret
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: Range<usize>) -> &[u8]
[src]
impl Index<RangeFrom<usize>> for SharedSecret
[src]
type Output = [u8]
The returned type after indexing.
fn index(&self, index: RangeFrom<usize>) -> &[u8]
[src]
impl Index<RangeFull> for SharedSecret
[src]
Auto Trait Implementations
impl Unpin for SharedSecret
impl Send for SharedSecret
impl Sync for SharedSecret
impl RefUnwindSafe for SharedSecret
impl UnwindSafe for SharedSecret
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,