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

Function pair

atomic-canonical/tests/ingest_boundary.rs:126–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124}
125
126fn pair() -> Pair {
127 let human_key = KeyPair::generate();
128 let human = Identity::new("alice", &human_key);
129 let agent_key = KeyPair::generate();
130 let agent = Identity::builder("alice+claude")
131 .identity_type(IdentityType::Agent)
132 .public_key(agent_key.public.clone())
133 .delegated_by(human.id)
134 .build()
135 .expect("agent identity");
136 Pair {
137 human,
138 human_key,
139 agent,
140 }
141}
142
143fn certificate(p: &Pair) -> Value {
144 let scope = DelegationScope::builder()

Calls 5

delegated_byMethod · 0.80
buildMethod · 0.45
public_keyMethod · 0.45
identity_typeMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected