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

Function attest_with

atomic-cli/src/commands/memory/list.rs:422–426  ·  view source on GitHub ↗

Lift+attest a stored memory with the given keypair.

(repo: &Repository, id: &str, kp: &KeyPair)

Source from the content-addressed store, hash-verified

420
421 /// Lift+attest a stored memory with the given keypair.
422 fn attest_with(repo: &Repository, id: &str, kp: &KeyPair) -> MemoryNode {
423 let inputs = bridge::read_memory(repo, id).unwrap();
424 let identity = Identity::new("tester", kp);
425 lift_and_attest_memory(&inputs.frontmatter, &inputs.body, &identity, kp).unwrap()
426 }
427
428 /// Mirror `attest`'s tracked-vault write (body = pretty JSON + '\n').
429 fn write_tracked(repo: &Repository, id: &str, node: &MemoryNode) {

Calls 3

read_memoryFunction · 0.85
lift_and_attest_memoryFunction · 0.85
unwrapMethod · 0.45