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

Function attested_memory

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

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

()

Source from the content-addressed store, hash-verified

1053
1054 /// A minimal, fully attested Memory that conforms — the base for mutation.
1055 fn attested_memory() -> MemoryNode {
1056 let kp = KeyPair::generate();
1057 let id = Identity::new("lee", &kp);
1058 let node = MemoryNode {
1059 context: CONTEXT_URL.to_string(),
1060 type_: NodeType::Memory.as_str().to_string(),
1061 id: "urn:atomic:memory:gate-1".to_string(),
1062 memory_kind: "constraint".to_string(),
1063 text: "a durable constraint".to_string(),
1064 about: vec!["urn:atomic:module:storage".to_string()],
1065 derived_from: Vec::new(),
1066 status: "active".to_string(),
1067 supersedes: None,
1068 previous_revision: None,
1069 content_hash: None,
1070 attributed_to: None,
1071 created_at: "2026-05-02T09:14:00Z".to_string(),
1072 proof: None,
1073 };
1074 proof::attest_memory(node, &id, &kp)
1075 }
1076
1077 #[test]
1078 fn memory_gate_rejects_unknown_kind() {

Calls 2

attest_memoryFunction · 0.85
as_strMethod · 0.45