Lift+attest a stored intent with a given keypair, returning the node.
(repo: &Repository, id: &str, kp: &KeyPair)
| 333 | |
| 334 | /// Lift+attest a stored intent with a given keypair, returning the node. |
| 335 | fn attest_with(repo: &Repository, id: &str, kp: &KeyPair) -> CanonicalNode { |
| 336 | let inputs = bridge::read_intent(repo, id).unwrap(); |
| 337 | let identity = Identity::new("tester", kp); |
| 338 | lift_and_attest(&inputs.frontmatter, &inputs.body, &identity, kp).unwrap() |
| 339 | } |
| 340 | |
| 341 | /// Mirror `attest`'s tracked-vault write (body = pretty JSON + '\n'). |
| 342 | fn write_tracked(repo: &Repository, id: &str, node: &CanonicalNode) { |