···13131414// Represents an atproto identity. Could be a regular user account, or a service account (eg, feed generator)
1515type Identity struct {
1616- DID syntax.DID `json:"did"`
1616+ DID syntax.DID
17171818 // Handle/DID mapping must be bi-directionally verified. If that fails, the Handle should be the special 'handle.invalid' value
1919- Handle syntax.Handle `json:"handle"`
1919+ Handle syntax.Handle
20202121 // These fields represent a parsed subset of a DID document. They are all nullable. Note that the services and keys maps do not preserve order, so they don't exactly round-trip DID documents.
2222- AlsoKnownAs []string `json:"alsoKnownAs"`
2323- Services map[string]Service `json:"services"`
2424- Keys map[string]Key `json:"keys"`
2222+ AlsoKnownAs []string
2323+ Services map[string]Service
2424+ Keys map[string]Key
2525}
26262727type Key struct {
2828- Type string `json:"type"`
2929- PublicKeyMultibase string `json:"publicKeyMultibase"`
2828+ Type string
2929+ PublicKeyMultibase string
3030}
31313232type Service struct {
3333- Type string `json:"type"`
3434- URL string `json:"url"`
3333+ Type string
3434+ URL string
3535}
36363737// Extracts the information relevant to atproto from an arbitrary DID document.