[][src]Function secp256k1_abc_sys::secp256k1_ec_pubkey_create

pub unsafe extern "C" fn secp256k1_ec_pubkey_create(
    ctx: *const secp256k1_context,
    pubkey: *mut secp256k1_pubkey,
    seckey: *const c_uchar
) -> c_int

Compute the public key for a secret key.

Returns: 1: secret was valid, public key stores 0: secret was invalid, try again Args: ctx: pointer to a context object, initialized for signing (cannot be NULL) Out: pubkey: pointer to the created public key (cannot be NULL) In: seckey: pointer to a 32-byte private key (cannot be NULL)