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

Function verify

atomic-canonical/src/lib.rs:76–81  ·  view source on GitHub ↗

Verify an attested node's content hash and signature against a public key.

(
    node: &CanonicalNode,
    public_key: &atomic_identity::keypair::PublicKey,
)

Source from the content-addressed store, hash-verified

74
75/// Verify an attested node's content hash and signature against a public key.
76pub fn verify(
77 node: &CanonicalNode,
78 public_key: &atomic_identity::keypair::PublicKey,
79) -> Result<()> {
80 proof::verify(node, public_key)
81}
82
83/// Lift an authored memory (frontmatter + body) into a canonical node, attest
84/// it (hash + sign) with the given identity, and return the node. Mirrors

Calls

no outgoing calls