Skip to main content

Module handles

Module handles 

Source
Expand description

Forward handle resolution: the DID a handle points at.

A handle resolves through the _atproto TXT record first, asked of a DNS-over-HTTPS resolver, and through https://<handle>/.well-known/atproto-did when DNS names no DID. The HTTPS fetch is pinned to the addresses it checked, and refuses this deployment’s own network when the caller passes PrivateAddresses::Refused.

The operator poll checks the operator’s handle through this, and com.atproto.identity.resolveHandle resolves a handle no account here holds through it.

Structs§

Network
The forward lookup over the network.

Constants§

LOOKUP_TIMEOUT
The most one forward lookup may take, DNS and HTTPS together, before it counts as reaching nobody.
MAX_WELL_KNOWN_BYTES 🔒
The most of an /.well-known/atproto-did body this reads. A DID is at most 2 KiB; the rest is room for whitespace.

Traits§

HandleDid
The DID a handle points at.

Type Aliases§

Forward
What a forward lookup found: the DID a handle points at, None when whoever answered named none, or an error when nobody could be asked.