[−][src]Function secp256k1_abc_sys::secp256k1_ec_pubkey_serialize
pub unsafe extern "C" fn secp256k1_ec_pubkey_serialize(
ctx: *const secp256k1_context,
output: *mut c_uchar,
outputlen: *mut usize,
pubkey: *const secp256k1_pubkey,
flags: c_uint
) -> c_int
Serialize a pubkey object into a serialized byte sequence.
Returns: 1 always. Args: ctx: a secp256k1 context object. Out: output: a pointer to a 65-byte (if compressed==0) or 33-byte (if compressed==1) byte array to place the serialized key in. In/Out: outputlen: a pointer to an integer which is initially set to the size of output, and is overwritten with the written size. In: pubkey: a pointer to a secp256k1_pubkey containing an initialized public key. flags: SECP256K1_EC_COMPRESSED if serialization should be in compressed format, otherwise SECP256K1_EC_UNCOMPRESSED.