Skip to main content

verify_object

Function verify_object 

Source
pub fn verify_object(
    label: &str,
    value: &Value,
    profile: Profile,
) -> Result<VerifiedObject, ObjectError>
Expand description

Verifies an object that carries its key, under label and the verifier’s profile, in macula’s order: exactly key, tbs and signature, each a byte string; key in the profile’s carried form; the signature over tbs as received; only then tbs under the decoding rule, a map whose alg names the profile’s algorithm. alg is checked and never selects an algorithm.