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