Struct sig_proxy::middleware::ethereum::signature::prelude::SecretKey [−][src]
pub struct SecretKey(_);
Expand description
Secret 256-bit key used as x in an ECDSA signature
Implementations
impl SecretKey[src]
impl SecretKey[src]pub fn from_slice(data: &[u8]) -> Result<SecretKey, Error>[src]
pub fn from_slice(data: &[u8]) -> Result<SecretKey, Error>[src]Converts a SECRET_KEY_SIZE-byte slice to a secret key
pub fn negate_assign(&mut self)[src]
pub fn negate_assign(&mut self)[src]Negates one secret key.
impl SecretKey[src]
impl SecretKey[src]pub fn as_mut_ptr(&mut self) -> *mut u8[src]
pub fn as_mut_ptr(&mut self) -> *mut u8[src]Converts the object to a mutable raw pointer for FFI interfacing
Trait Implementations
impl Ord for SecretKey[src]
impl Ord for SecretKey[src]impl PartialOrd<SecretKey> for SecretKey[src]
impl PartialOrd<SecretKey> for SecretKey[src]pub fn partial_cmp(&self, other: &SecretKey) -> Option<Ordering>[src]
pub fn partial_cmp(&self, other: &SecretKey) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for SecretKey[src]
impl Eq for SecretKey[src]
Auto Trait Implementations
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,