Function util_verify

Source
pub unsafe extern "C" fn util_verify(
    dread_ptr: u32,
    dread_len: u32,
    sread_ptr: u32,
    sread_len: u32,
    kread_ptr: u32,
    kread_len: u32,
) -> i64
Expand description

Verify a cryptographic signature either ED25519 of SECP256k1. Public key should be prefixed with 0xED for 25519. @param dread_ptr The memory location of the data or payload to verify @param dread_len The length of the data or payload to verify @param sread_ptr The memory location of the signature @param sread_len The length of the signature @param kread_ptr The memory location of the public key @param kread_len The length of the public key @return True if and only if the signature was verified.