Function verify

Source
pub fn verify<R>(
    pk: &PublicKey,
    signature_box: &SignatureBox,
    data_reader: R,
    quiet: bool,
    output: bool,
    allow_legacy: bool,
) -> Result<()>
where R: Read + Seek,
Expand description

Verify a signature using a public key.

ยงArguments

  • pk - the public key
  • signature_box - the signature and its metadata
  • data_reader - the data source
  • quiet - use false to output status information to stderr
  • output - use true to output a copy of the data to stdout
  • allow_legacy - accept signatures from legacy versions of minisign