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

Function verify

atomic-canonical/src/proof.rs:221–223  ·  view source on GitHub ↗

Verify an attested Intent node — thin wrapper over [`verify_value`].

(node: &CanonicalNode, public_key: &PublicKey)

Source from the content-addressed store, hash-verified

219
220/// Verify an attested Intent node — thin wrapper over [`verify_value`].
221pub fn verify(node: &CanonicalNode, public_key: &PublicKey) -> Result<()> {
222 verify_value(&node.to_value(), public_key)
223}
224
225/// Produce a fully attested Memory node — the same thin wrapper over
226/// [`attest_value`] the Intent path uses, so both node types sign through one

Calls 2

verify_valueFunction · 0.85
to_valueMethod · 0.45