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

Function certificate

atomic-canonical/src/delegation.rs:687–695  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685 }
686
687 fn certificate() -> (Party, Party, Value) {
688 let alice = human("alice");
689 let claude = agent("alice+claude", &alice.identity);
690 let terms = Delegation::new(&alice.identity, &claude.identity, scope())
691 .with_software_agent("urn:atomic:agent:claude-code")
692 .expires_in(Duration::days(30));
693 let doc = mint(&alice.identity, &alice.keypair, &terms);
694 (alice, claude, doc)
695 }
696
697 #[test]
698 fn mint_then_verify_round_trips() {

Calls 6

humanFunction · 0.85
mintFunction · 0.85
expires_inMethod · 0.80
with_software_agentMethod · 0.80
agentFunction · 0.70
scopeFunction · 0.70