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

Function attest_with

atomic-cli/src/commands/intent/list.rs:335–339  ·  view source on GitHub ↗

Lift+attest a stored intent with a given keypair, returning the node.

(repo: &Repository, id: &str, kp: &KeyPair)

Source from the content-addressed store, hash-verified

333
334 /// Lift+attest a stored intent with a given keypair, returning the node.
335 fn attest_with(repo: &Repository, id: &str, kp: &KeyPair) -> CanonicalNode {
336 let inputs = bridge::read_intent(repo, id).unwrap();
337 let identity = Identity::new("tester", kp);
338 lift_and_attest(&inputs.frontmatter, &inputs.body, &identity, kp).unwrap()
339 }
340
341 /// Mirror `attest`'s tracked-vault write (body = pretty JSON + '\n').
342 fn write_tracked(repo: &Repository, id: &str, node: &CanonicalNode) {

Callers 6

stale_is_stale_and_naFunction · 0.70
other_signer_is_na_not_xFunction · 0.70

Calls 3

read_intentFunction · 0.85
lift_and_attestFunction · 0.85
unwrapMethod · 0.45

Tested by 6

stale_is_stale_and_naFunction · 0.56
other_signer_is_na_not_xFunction · 0.56