Build inputs for a minimal, liftable intent and attest them into a node.
(inputs: &LiftInputs)
| 335 | |
| 336 | /// Build inputs for a minimal, liftable intent and attest them into a node. |
| 337 | fn attested_node(inputs: &LiftInputs) -> (CanonicalNode, KeyPair) { |
| 338 | let kp = KeyPair::generate(); |
| 339 | let id = Identity::new("tester", &kp); |
| 340 | let node = lift_and_attest(&inputs.frontmatter, &inputs.body, &id, &kp) |
| 341 | .expect("lift_and_attest on a minimal intent should succeed"); |
| 342 | (node, kp) |
| 343 | } |
| 344 | |
| 345 | /// Create a repo+vault and a single intent; return (repo, normalized id, |
| 346 | /// lift inputs for the stored intent). |