Skip to main content

verify

Function verify 

Source
pub fn verify(secret: &[u8; 32], callback_id: &str, signature: &str) -> bool
Expand description

Verify a provided signature against the expected one. Returns true only when the signature is well-formed hex and equals the keyed hash of the callback id. Comparison is constant-time.