Skip to main content

verify

Function verify 

Source
pub fn verify(
    public_key: &[u8],
    message: &[u8],
    signature: &[u8],
) -> Result<(), AuthError>
Expand description

Verifies signature over message against the raw public_key.

ยงErrors

Returns AuthError::Malformed if the key or signature is the wrong length, or AuthError::BadSignature if verification fails.