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

Function attested_memory

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

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

()

Source from the content-addressed store, hash-verified

951
952 /// A minimal, fully attested Memory that conforms — the base for mutation.
953 fn attested_memory() -> MemoryNode {
954 let kp = KeyPair::generate();
955 let id = Identity::new("lee", &kp);
956 let node = MemoryNode {
957 context: CONTEXT_URL.to_string(),
958 type_: NodeType::Memory.as_str().to_string(),
959 id: "urn:atomic:memory:gate-1".to_string(),
960 memory_kind: "constraint".to_string(),
961 text: "a durable constraint".to_string(),
962 about: vec!["urn:atomic:module:storage".to_string()],
963 derived_from: Vec::new(),
964 status: "active".to_string(),
965 supersedes: None,
966 previous_revision: None,
967 content_hash: None,
968 attributed_to: None,
969 created_at: "2026-05-02T09:14:00Z".to_string(),
970 proof: None,
971 };
972 proof::attest_memory(node, &id, &kp)
973 }
974
975 #[test]
976 fn memory_gate_rejects_unknown_kind() {

Calls 2

attest_memoryFunction · 0.85
as_strMethod · 0.45