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

Method resolve_identity_by_public_key

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

Resolve an identity by its base32-encoded Ed25519 public key. Reverse of the name/email resolution: given the key (the same value used as the JWT `kid`), returns the registered identity together with its canonical public key. Base32 keys are URL-safe (A-Z2-7), so the key can be embedded in the path without encoding. The endpoint is unauthenticated — a caller must already possess the key to learn

(
        &self,
        public_key: &str,
    )

Source from the content-addressed store, hash-verified

544 /// unauthenticated — a caller must already possess the key to learn
545 /// anything from the lookup.
546 pub async fn resolve_identity_by_public_key(
547 &self,
548 public_key: &str,
549 ) -> Result<IdentityInfo, RemoteError> {
550 self.get(&format!("/identities/by-key/{public_key}")).await
551 }
552
553 /// Resolve a `did:atomic:` identifier to the identity that registered
554 /// the fingerprinted key.

Callers 2

executeMethod · 0.80
refreshFunction · 0.80

Calls 1

getMethod · 0.65

Tested by

no test coverage detected