pub struct SecretKey(/* private fields */);Implementations§
Source§impl SecretKey
impl SecretKey
pub fn new<R: Rng + ?Sized>(rng: &mut R) -> Self
pub fn from_slice(data: &[u8]) -> Result<Self, Error>
pub fn from_seed(seed: u64) -> Self
pub fn random() -> Self
pub fn public_key(&self) -> PublicKey
pub fn sign_recoverable(&self, input: &[u8]) -> Result<Signature, Error>
Methods from Deref<Target = 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
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 Eq for SecretKey
impl StructuralPartialEq 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