pub trait Verifier {
    fn verify_json(
        &self,
        public_key: &[u8],
        signature: &Signature,
        message: &[u8]
    ) -> Result<(), Error>; }
Expand description

A digital signature verifier.

Required Methods

Use a public key to verify a signature against the JSON object that was signed.

Parameters
  • public_key: The public key of the key pair used to sign the message.
  • signature: The Signature to verify.
  • message: The message that was signed.
Errors

Returns an error if verification fails.

Implementors