Allow parsing AT URIs with handle as authority #1

Open mortn.space
Open opened by mortn.space

Currently, atproto_record::aturi::ATURI can only parse AT URIs that have a DID as authority. If the authority is a handle, AturiError::HandleNotSupported is returned. It would be useful if either (a) the type could also represent handle URIs or (b) HandleNotSupported included the handle in a field so that it can be resolved to a DID.

(I am fairly new to ATProto, so please tell me if this doesn't make sense.)

I'd like to think about how to do this in a way that discourages them from being used in records.

I see… Maybe the simplest solution would be to have two types:

  • atproto_record::aturi::CanonicalAtUri for usage in records
  • atproto_extras::aturi::AtUri for things interacting with humans

Yeah, that feels like a good solution.

Sign up or Sign in to add to the discussion.