hooks_rs::api

Function util_verify

Source
pub fn util_verify(
    payload: &[u8],
    signature: &[u8],
    publickey: &[u8],
) -> Result<bool>
Expand description

Verify a cryptographic signature

If the public key is prefixed with 0xED then use ED25519. Otherwise assume SECP256k1.