···54///
55/// partial because the handle is not verified
56#[derive(Debug, Clone, Serialize, Deserialize)]
57-struct PartialMiniDoc {
58 /// an atproto handle (**unverified**)
59 ///
60 /// the first valid atproto handle from the did doc's aka
61- unverified_handle: Handle,
62 /// the did's atproto pds url (TODO: type this?)
63 ///
64 /// note: atrium *does* actually parse it into a URI, it just doesn't return
65 /// that for some reason
66- pds: String,
67 /// for now we're just pulling this straight from the did doc
68 ///
69 /// would be nice to type and validate it
···71 /// this is the publicKeyMultibase from the did doc.
72 /// legacy key encoding not supported.
73 /// `id`, `type`, and `controller` must be checked, but aren't stored.
74- signing_key: String,
75}
7677impl TryFrom<DidDocument> for PartialMiniDoc {
···212 Ok(Some(did))
213 }
214215- /// Resolve (and verify!) a DID to a pds url
216 ///
217 /// This *also* incidentally resolves and verifies the handle, which might
218 /// make it slower than expected
···271 }
272273 /// Fetch (and cache) a partial mini doc from a did
274- async fn did_to_partial_mini_doc(
275 &self,
276 did: &Did,
277 ) -> Result<Option<PartialMiniDoc>, IdentityError> {
···54///
55/// partial because the handle is not verified
56#[derive(Debug, Clone, Serialize, Deserialize)]
57+pub struct PartialMiniDoc {
58 /// an atproto handle (**unverified**)
59 ///
60 /// the first valid atproto handle from the did doc's aka
61+ pub unverified_handle: Handle,
62 /// the did's atproto pds url (TODO: type this?)
63 ///
64 /// note: atrium *does* actually parse it into a URI, it just doesn't return
65 /// that for some reason
66+ pub pds: String,
67 /// for now we're just pulling this straight from the did doc
68 ///
69 /// would be nice to type and validate it
···71 /// this is the publicKeyMultibase from the did doc.
72 /// legacy key encoding not supported.
73 /// `id`, `type`, and `controller` must be checked, but aren't stored.
74+ pub signing_key: String,
75}
7677impl TryFrom<DidDocument> for PartialMiniDoc {
···212 Ok(Some(did))
213 }
214215+ /// Resolve a DID to a pds url
216 ///
217 /// This *also* incidentally resolves and verifies the handle, which might
218 /// make it slower than expected
···271 }
272273 /// Fetch (and cache) a partial mini doc from a did
274+ pub async fn did_to_partial_mini_doc(
275 &self,
276 did: &Did,
277 ) -> Result<Option<PartialMiniDoc>, IdentityError> {