Skip to main content

verify_signatures

Function verify_signatures 

Source
pub fn verify_signatures<E: Ord, K: KeyName + ?Sized>(
    keymaps: Vec<&PublicKeyMap>,
    signed_object: &impl SignedObject<E, K>,
    required_signers: Option<&RequiredSigners<E, K>>,
) -> Result<(), SignatureVerificationError>
Expand description

Main entry point for verifying signatures.

Given a list of [PublicKeyMap] and a signed_object, this function verifies that all the given required_signers have their entries in the signed object signature, and then if the signatures are correct.