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

Function attested_memory

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

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

()

Source from the content-addressed store, hash-verified

316
317 /// A minimal, fully attested Memory that conforms — the base for mutation.
318 fn attested_memory() -> MemoryNode {
319 let kp = KeyPair::generate();
320 let id = Identity::new("lee", &kp);
321 let node = MemoryNode {
322 context: CONTEXT_URL.to_string(),
323 type_: NodeType::Memory.as_str().to_string(),
324 id: "urn:atomic:memory:gate-1".to_string(),
325 memory_kind: "constraint".to_string(),
326 text: "a durable constraint".to_string(),
327 about: vec!["urn:atomic:module:storage".to_string()],
328 status: "active".to_string(),
329 supersedes: None,
330 previous_revision: None,
331 content_hash: None,
332 attributed_to: None,
333 created_at: "2026-05-02T09:14:00Z".to_string(),
334 proof: None,
335 };
336 proof::attest_memory(node, &id, &kp)
337 }
338
339 #[test]
340 fn memory_gate_rejects_unknown_kind() {

Calls 2

attest_memoryFunction · 0.85
as_strMethod · 0.45