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

Function attest_with

atomic-cli/src/commands/memory/list.rs:414–418  ·  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

412
413 /// Lift+attest a stored memory with the given keypair.
414 fn attest_with(repo: &Repository, id: &str, kp: &KeyPair) -> MemoryNode {
415 let inputs = bridge::read_memory(repo, id).unwrap();
416 let identity = Identity::new("tester", kp);
417 lift_and_attest_memory(&inputs.frontmatter, &inputs.body, &identity, kp).unwrap()
418 }
419
420 /// Mirror `attest`'s tracked-vault write (body = pretty JSON + '\n').
421 fn write_tracked(repo: &Repository, id: &str, node: &MemoryNode) {

Calls 3

read_memoryFunction · 0.85
lift_and_attest_memoryFunction · 0.85
unwrapMethod · 0.45