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

Function attested_memory

atomic-canonical/src/gate.rs:990–1010  ·  view source on GitHub ↗

A minimal, fully attested Memory that conforms — the base for mutation.

()

Source from the content-addressed store, hash-verified

988
989 /// A minimal, fully attested Memory that conforms — the base for mutation.
990 fn attested_memory() -> MemoryNode {
991 let kp = KeyPair::generate();
992 let id = Identity::new("lee", &kp);
993 let node = MemoryNode {
994 context: CONTEXT_URL.to_string(),
995 type_: NodeType::Memory.as_str().to_string(),
996 id: "urn:atomic:memory:gate-1".to_string(),
997 memory_kind: "constraint".to_string(),
998 text: "a durable constraint".to_string(),
999 about: vec!["urn:atomic:module:storage".to_string()],
1000 derived_from: Vec::new(),
1001 status: "active".to_string(),
1002 supersedes: None,
1003 previous_revision: None,
1004 content_hash: None,
1005 attributed_to: None,
1006 created_at: "2026-05-02T09:14:00Z".to_string(),
1007 proof: None,
1008 };
1009 proof::attest_memory(node, &id, &kp)
1010 }
1011
1012 #[test]
1013 fn memory_gate_rejects_unknown_kind() {

Calls 2

attest_memoryFunction · 0.85
as_strMethod · 0.45