blob: 62f5a6a672c46dcdf7b62d73ff3e0e81d1b0b72b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package main
import "github.com/whyrusleeping/go-did"
type Document struct {
Context []string `json:"@context"`
Id did.DID `json:"id"`
AlsoKnownAs []string `json:"alsoKnownAs"`
VerificationMethod []*VerificationMethod `json:"verificationMethod"`
Service []*Service `json:"service"`
}
type VerificationMethod struct {
ID string `json:"id"`
Type string `json:"type"`
Controller string `json:"controller"`
PublicKeyMultibase string `json:"publicKeyMultibase"`
}
type Service struct {
ID did.DID `json:"id"`
Type string `json:"type"`
ServiceEndpoint string `json:"serviceEndpoint"`
}
|