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

Function verify

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

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

Calls

no outgoing calls