Function tor_llcrypto::pk::validate_all_sigs
source ยท pub fn validate_all_sigs(v: &[Box<dyn ValidatableSignature>]) -> bool
Expand description
Check whether all of the signatures in this Vec are valid.
Return true
if every signature is valid; return false
if even
one is invalid.
This function should typically give the same result as just
calling v.iter().all(ValidatableSignature::is_valid))
, while taking
advantage of batch verification to whatever extent possible.
(See ed25519::validate_batch
for caveats.)