Skip to main content

verify

Function verify 

Source
pub fn verify(public_key: &str, message: &[u8], signature: &str) -> bool
Expand description

Verify signature (hex) over message against public_key (hex). False on any malformed material: a verifier never panics on hostile input.

use majordomus_cli::mesh::identity::verify;
assert!(!verify("zz", b"m", "zz"), "garbage material is false, not a panic");