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

Function verify_memory

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

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

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

Source from the content-addressed store, hash-verified

91
92/// Verify an attested memory's content hash and signature against a public key.
93pub fn verify_memory(
94 node: &MemoryNode,
95 public_key: &atomic_identity::keypair::PublicKey,
96) -> Result<()> {
97 proof::verify_memory(node, public_key)
98}

Calls

no outgoing calls