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

Function attested_memory

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

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

()

Source from the content-addressed store, hash-verified

1004
1005 /// A minimal, fully attested Memory that conforms — the base for mutation.
1006 fn attested_memory() -> MemoryNode {
1007 let kp = KeyPair::generate();
1008 let id = Identity::new("lee", &kp);
1009 let node = MemoryNode {
1010 context: CONTEXT_URL.to_string(),
1011 type_: NodeType::Memory.as_str().to_string(),
1012 id: "urn:atomic:memory:gate-1".to_string(),
1013 memory_kind: "constraint".to_string(),
1014 text: "a durable constraint".to_string(),
1015 about: vec!["urn:atomic:module:storage".to_string()],
1016 derived_from: Vec::new(),
1017 status: "active".to_string(),
1018 supersedes: None,
1019 previous_revision: None,
1020 content_hash: None,
1021 attributed_to: None,
1022 created_at: "2026-05-02T09:14:00Z".to_string(),
1023 proof: None,
1024 };
1025 proof::attest_memory(node, &id, &kp)
1026 }
1027
1028 #[test]
1029 fn memory_gate_rejects_unknown_kind() {

Calls 2

attest_memoryFunction · 0.85
as_strMethod · 0.45