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

Function verify

atomic-canonical/src/proof.rs:170–172  ·  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

168
169/// Verify an attested Intent node — thin wrapper over [`verify_value`].
170pub fn verify(node: &CanonicalNode, public_key: &PublicKey) -> Result<()> {
171 verify_value(&node.to_value(), public_key)
172}
173
174/// Produce a fully attested Memory node — the same thin wrapper over
175/// [`attest_value`] the Intent path uses, so both node types sign through one

Callers

nothing calls this directly

Calls 2

verify_valueFunction · 0.85
to_valueMethod · 0.45

Tested by

no test coverage detected