pub struct PrivateKey(/* private fields */);
Expand description
Secret 256-bit key used as x
in an ECDSA signature
Implementations§
Source§impl SecretKey
impl SecretKey
Sourcepub fn as_mut_ptr(&mut self) -> *mut u8
pub fn as_mut_ptr(&mut self) -> *mut u8
Converts the object to a mutable raw pointer for FFI interfacing
Source§impl SecretKey
impl SecretKey
Sourcepub fn from_slice(data: &[u8]) -> Result<SecretKey, Error>
pub fn from_slice(data: &[u8]) -> Result<SecretKey, Error>
Converts a SECRET_KEY_SIZE
-byte slice to a secret key
Sourcepub fn negate_assign(&mut self)
pub fn negate_assign(&mut self)
Negates one secret key.
Trait Implementations§
Source§impl Ord for SecretKey
impl Ord for SecretKey
Source§impl PartialOrd for SecretKey
impl PartialOrd for SecretKey
impl Copy for SecretKey
impl Eq for SecretKey
Auto Trait Implementations§
impl Freeze for SecretKey
impl RefUnwindSafe for SecretKey
impl Send for SecretKey
impl Sync for SecretKey
impl Unpin for SecretKey
impl UnwindSafe for SecretKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more