pub fn serialize_uncompressed(&self) -> [u8; constants::UNCOMPRESSED_PUBLIC_KEY_SIZE] {
        let secp = Secp256k1::with_caps(ContextFlag::None);
        let mut ret = [0; constants::UNCOMPRESSED_PUBLIC_KEY_SIZE];

        unsafe {
            let mut ret_len = constants::UNCOMPRESSED_PUBLIC_KEY_SIZE as ::libc::size_t;
            let err = ffi::secp256k1_ec_pubkey_serialize(
                secp.ctx,
                ret.as_mut_ptr(),
                &mut ret_len,
                self.as_ptr(),
                ffi::SECP256K1_SER_UNCOMPRESSED,
            );
            debug_assert_eq!(err, 1);
            debug_assert_eq!(ret_len, ret.len());
        }
        ret
    }
/// Serialize the key as a byte-encoded pair of values, in uncompressed form
Serialize the key as a byte-encoded pair of values, in uncompressed form
Serialize the key as a byte - encoded pair of values in uncompressed form
pub fn serialize_uncompressed(&self) -> [u8; constants::UNCOMPRESSED_PUBLIC_KEY_SIZE] {
        let secp = Secp256k1::with_caps(ContextFlag::None);
        let mut ret = [0; constants::UNCOMPRESSED_PUBLIC_KEY_SIZE];
        unsafe {
            let mut ret_len = constants::UNCOMPRESSED_PUBLIC_KEY_SIZE as ::libc::size_t;
            let err = ffi::secp256k1_ec_pubkey_serialize(
                secp.ctx,
                ret.as_mut_ptr(),
                &mut ret_len,
                self.as_ptr(),
                ffi::SECP256K1_SER_UNCOMPRESSED,
            );
            debug_assert_eq!(err, 1);
            debug_assert_eq!(ret_len, ret.len());
        }
        ret
    }
pub fn serialize_uncompressed ( & self ) -> [ u8 ; constants :: UNCOMPRESSED_PUBLIC_KEY_SIZE ] { let secp = Secp256k1 :: with_caps ( ContextFlag :: None ) ; let mut ret = [ 0 ; constants :: UNCOMPRESSED_PUBLIC_KEY_SIZE ] ; unsafe { let mut ret_len = constants :: UNCOMPRESSED_PUBLIC_KEY_SIZE as :: libc :: size_t ; let err = ffi :: secp256k1_ec_pubkey_serialize ( secp . ctx , ret . as_mut_ptr ( ) , & mut ret_len , self . as_ptr ( ) , ffi :: SECP256K1_SER_UNCOMPRESSED , ) ; debug_assert_eq ! ( err 1 ) ; debug_assert_eq ! ( ret_len ret len ( ) ) ; } ret }
Serialize the key as a byte-encoded pair of values, in uncompressed form
Serialize the key as a byte - encoded pair of values in uncompressed form
&self
&self