Build inputs for a minimal, liftable intent and attest them into a node.
(inputs: &LiftInputs)
| 316 | |
| 317 | /// Build inputs for a minimal, liftable intent and attest them into a node. |
| 318 | fn attested_node(inputs: &LiftInputs) -> (CanonicalNode, KeyPair) { |
| 319 | let kp = KeyPair::generate(); |
| 320 | let id = Identity::new("tester", &kp); |
| 321 | let node = lift_and_attest(&inputs.frontmatter, &inputs.body, &id, &kp) |
| 322 | .expect("lift_and_attest on a minimal intent should succeed"); |
| 323 | (node, kp) |
| 324 | } |
| 325 | |
| 326 | /// Create a repo+vault and a single intent; return (repo, normalized id, |
| 327 | /// lift inputs for the stored intent). |