[][src]Struct web3::signing::SecretKeyRef

pub struct SecretKeyRef<'a> { /* fields omitted */ }

A SecretKey reference wrapper.

A wrapper around secp256k1::SecretKey reference, which enables it to be used in methods expecting Key capabilities.

Implementations

impl<'a> SecretKeyRef<'a>[src]

pub fn new(key: &'a SecretKey) -> Self[src]

A simple wrapper around a reference to SecretKey which allows it to be usable for signing.

Methods from Deref<Target = SecretKey>

pub fn as_ptr(&self) -> *const u8

Converts the object to a raw pointer for FFI interfacing

pub fn as_ref(&self) -> &[u8; 32]

Gets a reference to the underlying array

pub fn len(&self) -> usize

Returns the length of the object as an array

pub fn is_empty(&self) -> bool

Returns whether the object as an array is empty

Trait Implementations

impl<'a> Deref for SecretKeyRef<'a>[src]

type Target = SecretKey

The resulting type after dereferencing.

impl<'a> From<&'a SecretKey> for SecretKeyRef<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SecretKeyRef<'a>

impl<'a> Send for SecretKeyRef<'a>

impl<'a> Sync for SecretKeyRef<'a>

impl<'a> Unpin for SecretKeyRef<'a>

impl<'a> UnwindSafe for SecretKeyRef<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,