Skip to main content

verify_object_integrity_proof

Function verify_object_integrity_proof 

Source
pub fn verify_object_integrity_proof(
    document: &Value,
    proof: &Map<String, Value>,
    public_key: &PublicKey,
) -> Result<(), Error>
Expand description

Verify an integrity proof on document against public_key, the key resolved from the proof’s verificationMethod.

§Errors

Returns an error if the proof is malformed, the key does not match the cryptosuite, or the signature does not verify.