1package identity
2
3import (
4 "github.com/bluesky-social/indigo/atproto/syntax"
5)
6
7type DIDDocument struct {
8 DID syntax.DID `json:"id"`
9 AlsoKnownAs []string `json:"alsoKnownAs,omitempty"`
10 VerificationMethod []DocVerificationMethod `json:"verificationMethod,omitempty"`
11 Service []DocService `json:"service,omitempty"`
12}
13
14type DocVerificationMethod struct {
15 ID string `json:"id"`
16 Type string `json:"type"`
17 Controller string `json:"controller"`
18 PublicKeyMultibase string `json:"publicKeyMultibase"`
19}
20
21type DocService struct {
22 ID string `json:"id"`
23 Type string `json:"type"`
24 ServiceEndpoint string `json:"serviceEndpoint"`
25}