pub fn mul_assign(&mut self, secp: &Secp256k1, other: &SecretKey)
                         -> Result<(), Error> {
        if secp.caps == ContextFlag::SignOnly || secp.caps == ContextFlag::None {
            return Err(IncapableContext);
        }
        unsafe {
            if ffi::secp256k1_ec_pubkey_tweak_mul(secp.ctx, &mut self.0 as *mut _,
                                                  other.as_ptr()) == 1 {
                Ok(())
            } else {
                Err(InvalidSecretKey)
            }
        }
    }
/// Muliplies the pk `self` in place by the scalar `other`
Muliplies the pk `self` in place by the scalar `other`
Muliplies the pk ` self ` in place by the scalar ` other `
pub fn mul_assign(&mut self, secp: &Secp256k1, other: &SecretKey)
                         -> Result<(), Error> {
        if secp.caps == ContextFlag::SignOnly || secp.caps == ContextFlag::None {
            return Err(IncapableContext);
        }
        unsafe {
            if ffi::secp256k1_ec_pubkey_tweak_mul(secp.ctx, &mut self.0 as *mut _,
                                                  other.as_ptr()) == 1 {
                Ok(())
            } else {
                Err(InvalidSecretKey)
            }
        }
    }
pub fn mul_assign ( & mut self , secp : & Secp256k1 , other : & SecretKey ) -> Result < ( ) , Error > { if secp . caps == ContextFlag :: SignOnly || secp . caps == ContextFlag :: None { return Err ( IncapableContext ) ; } unsafe { if ffi :: secp256k1_ec_pubkey_tweak_mul ( secp . ctx , & mut self . 0 as * mut _ , other . as_ptr ( ) ) == 1 { Ok ( ( ) ) } else { Err ( InvalidSecretKey ) } } }
Muliplies the pk `self` in place by the scalar `other`
Muliplies the pk ` self ` in place by the scalar ` other `
&mut self
secp
&Secp256k1
other
&SecretKey