1package identity
2
3type DidDoc struct {
4 Context []string `json:"@context"`
5 Id string `json:"id"`
6 AlsoKnownAs []string `json:"alsoKnownAs"`
7 VerificationMethods []DidDocVerificationMethod `json:"verificationMethod"`
8 Service []DidDocService `json:"service"`
9}
10
11type DidDocVerificationMethod struct {
12 Id string `json:"id"`
13 Type string `json:"type"`
14 Controller string `json:"controller"`
15 PublicKeyMultibase string `json:"publicKeyMultibase"`
16}
17
18type DidDocService struct {
19 Id string `json:"id"`
20 Type string `json:"type"`
21 ServiceEndpoint string `json:"serviceEndpoint"`
22}
23
24type DidData struct {
25 Did string `json:"did"`
26 VerificationMethods map[string]string `json:"verificationMethods"`
27 RotationKeys []string `json:"rotationKeys"`
28 AlsoKnownAs []string `json:"alsoKnownAs"`
29 Services map[string]OperationService `json:"services"`
30}
31
32type OperationService struct {
33 Type string `json:"type"`
34 Endpoint string `json:"endpoint"`
35}
36
37type DidLog []DidLogEntry
38
39type DidLogEntry struct {
40 Sig string `json:"sig"`
41 Prev *string `json:"prev"`
42 Type string `json:"string"`
43 Services map[string]OperationService `json:"services"`
44 AlsoKnownAs []string `json:"alsoKnownAs"`
45 RotationKeys []string `json:"rotationKeys"`
46 VerificationMethods map[string]string `json:"verificationMethods"`
47}
48
49type DidAuditEntry struct {
50 Did string `json:"did"`
51 Operation DidLogEntry `json:"operation"`
52 Cid string `json:"cid"`
53 Nullified bool `json:"nullified"`
54 CreatedAt string `json:"createdAt"`
55}
56
57type DidAuditLog []DidAuditEntry