Lift+attest a stored memory with the given keypair.
(repo: &Repository, id: &str, kp: &KeyPair)
| 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) { |