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

Function verify

atomic-canonical/src/lib.rs:71–76  ·  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

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

Calls

no outgoing calls