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,
)
| 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. |