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

Function attested_node

atomic-repository/src/intent_bridge.rs:380–386  ·  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

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

Calls 1

lift_and_attestFunction · 0.85