Lift+attest a stored memory with the given keypair.
(repo: &Repository, id: &str, kp: &KeyPair)
| 589 | |
| 590 | /// Lift+attest a stored memory with the given keypair. |
| 591 | fn attest_with(repo: &Repository, id: &str, kp: &KeyPair) -> MemoryNode { |
| 592 | let inputs = bridge::read_memory(repo, id).unwrap(); |
| 593 | let identity = Identity::new("tester", kp); |
| 594 | lift_and_attest_memory(&inputs.frontmatter, &inputs.body, &identity, kp).unwrap() |
| 595 | } |
| 596 | |
| 597 | /// Mirror `attest`'s tracked-vault write (body = pretty JSON + '\n'). |
| 598 | fn write_tracked(repo: &Repository, id: &str, node: &MemoryNode) { |