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

Method resolve_identity_by_did

atomic-remote/src/storage.rs:569–575  ·  view source on GitHub ↗

Resolve a `did:atomic:` identifier to the identity that registered the fingerprinted key. Signed objects (attestations, delegations) carry only the signer's DID — `did:atomic: `, a one-way fingerprint — so verifying such an object means first recovering the key through the server. Authenticated like the name/email resolution (unlike `by-key`: holding a DID proves nothi

(&self, did: &str)

Source from the content-addressed store, hash-verified

567 /// the answer to verify a signature must not take it on faith. A
568 /// mismatch is an error, never a success.
569 pub async fn resolve_identity_by_did(&self, did: &str) -> Result<IdentityInfo, RemoteError> {
570 let info: IdentityInfo = self
571 .get(&format!("/identities/by-did/{}", urlencoding::encode(did)))
572 .await?;
573 verify_did_binding(did, &info)?;
574 Ok(info)
575 }
576}
577
578/// Does the identity record a server returned actually belong to `did`?

Callers

nothing calls this directly

Calls 2

verify_did_bindingFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected