pub struct SecretKey(/* private fields */);
Expand description
Secret key (256-bit) on a secp256k1 curve.
Implementations§
Source§impl SecretKey
impl SecretKey
pub fn parse(p: &[u8; 32]) -> Result<SecretKey, Error>
pub fn parse_slice(p: &[u8]) -> Result<SecretKey, Error>
pub fn serialize(&self) -> [u8; 32]
pub fn tweak_add_assign(&mut self, tweak: &SecretKey) -> Result<(), Error>
pub fn tweak_mul_assign(&mut self, tweak: &SecretKey) -> Result<(), Error>
pub fn inv(&self) -> Self
pub fn clear(&mut self)
pub fn is_zero(&self) -> bool
Trait Implementations§
impl Copy 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