Function tor_hsservice::internal_prelude::ed25519::validate_batch

pub fn validate_batch(sigs: &[&ValidatableEd25519Signature]) -> bool
Expand description

Perform a batch verification operation on the provided signatures

Return true if every signature is valid; otherwise return false.

Note that the mathematics for batch validation are slightly different than those for normal one-signature validation. Because of this, it is possible for an ostensible signature that passes one validation algorithm might fail the other. (Well-formed signatures generated by a correct Ed25519 implementation will always pass both kinds of validation, and an attacker should not be able to forge a signature that passes either kind.)