[−][src]Struct web3::signing::SecretKeyRef
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.
fn deref(&self) -> &Self::Target
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,