Skip to main content

crypto_sign_verify_detached

Function crypto_sign_verify_detached 

Source
pub fn crypto_sign_verify_detached(
    signature: &Signature,
    message: &[u8],
    public_key: &PublicKey,
) -> Result<(), Error>
Expand description

Verifies that signature is a valid signature for message using the given public_key.

This function is compatible with libsodium’s crypto_sign_verify_detached; the ED25519_NONDETERMINISTIC feature is not supported.

§Errors

Returns an error if signature or public_key is malformed, or if the signature does not authenticate message.