Struct secp256k1::SecretKey [−][src]
pub struct SecretKey(_);
Secret key (256-bit) on a secp256k1 curve.
Implementations
impl SecretKey[src]
impl SecretKey[src]pub struct SecretKey(_);
Secret key (256-bit) on a secp256k1 curve.
impl SecretKey[src]pub fn parse(p: &[u8; 32]) -> Result<SecretKey, Error>[src]pub fn parse_slice(p: &[u8]) -> Result<SecretKey, Error>[src]pub fn random<R: Rng>(rng: &mut R) -> SecretKey[src]pub fn serialize(&self) -> [u8; 32][src]pub fn tweak_add_assign(&mut self, tweak: &SecretKey) -> Result<(), Error>[src]pub fn tweak_mul_assign(&mut self, tweak: &SecretKey) -> Result<(), Error>[src]pub fn inv(&self) -> Self[src]impl Eq for SecretKey[src]impl StructuralEq for SecretKey[src]impl StructuralPartialEq for SecretKey[src]impl RefUnwindSafe for SecretKeyimpl Send for SecretKeyimpl Sync for SecretKeyimpl Unpin for SecretKeyimpl UnwindSafe for SecretKey