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

Function verify

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

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

Calls

no outgoing calls