MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / verify_prov

Function verify_prov

atomic-canonical/src/prov.rs:203–205  ·  view source on GitHub ↗

Verify a signed PROV subgraph against a public key — thin wrapper over [`crate::proof::verify_value`] (content-hash integrity + signature + the proof's verificationMethod DID belonging to the key).

(value: &Value, public_key: &PublicKey)

Source from the content-addressed store, hash-verified

201/// [`crate::proof::verify_value`] (content-hash integrity + signature + the
202/// proof's verificationMethod DID belonging to the key).
203pub fn verify_prov(value: &Value, public_key: &PublicKey) -> Result<()> {
204 proof::verify_value(value, public_key)
205}
206
207#[cfg(test)]
208mod tests {

Calls 1

verify_valueFunction · 0.85