[][src]Function secp256k1_abc_sys::secp256k1_ec_pubkey_parse

pub unsafe extern "C" fn secp256k1_ec_pubkey_parse(
    ctx: *const secp256k1_context,
    pubkey: *mut secp256k1_pubkey,
    input: *const c_uchar,
    inputlen: usize
) -> c_int

Parse a variable-length public key into the pubkey object.

Returns: 1 if the public key was fully valid. 0 if the public key could not be parsed or is invalid. Args: ctx: a secp256k1 context object. Out: pubkey: pointer to a pubkey object. If 1 is returned, it is set to a parsed version of input. If not, its value is undefined. In: input: pointer to a serialized public key inputlen: length of the array pointed to by input

This function supports parsing compressed (33 bytes, header byte 0x02 or 0x03), uncompressed (65 bytes, header byte 0x04), or hybrid (65 bytes, header byte 0x06 or 0x07) format public keys.