MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / attested_node

Function attested_node

atomic-cli/src/commands/intent/bridge.rs:337–343  ·  view source on GitHub ↗

Build inputs for a minimal, liftable intent and attest them into a node.

(inputs: &LiftInputs)

Source from the content-addressed store, hash-verified

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).

Calls 1

lift_and_attestFunction · 0.85