Skip to main content

verify_signature_hex

Function verify_signature_hex 

Source
pub fn verify_signature_hex(pk_hex: &str, sig_hex: &str, message: &[u8]) -> bool
Expand description

Verify a hex-encoded detached Ed25519 signature (sig_hex) over message against a hex-encoded public key (pk_hex). Malformed hex, a wrong-length key or signature, or a non-matching signature all fail closed (false). The shared hex front-end of this crate’s raw signature check, used by signed Store objects and membership entries so the decode-and-verify path lives in one place.