Build inputs for a minimal, liftable intent and attest them into a node.
(inputs: &LiftInputs)
| 378 | |
| 379 | /// Build inputs for a minimal, liftable intent and attest them into a node. |
| 380 | fn attested_node(inputs: &LiftInputs) -> (CanonicalNode, KeyPair) { |
| 381 | let kp = KeyPair::generate(); |
| 382 | let id = Identity::new("tester", &kp); |
| 383 | let node = lift_and_attest(&inputs.frontmatter, &inputs.body, &id, &kp) |
| 384 | .expect("lift_and_attest on a minimal intent should succeed"); |
| 385 | (node, kp) |
| 386 | } |
| 387 | |
| 388 | /// Create a repo+vault and a single intent; return (repo, normalized id, |
| 389 | /// lift inputs for the stored intent). |