generated from cheqd/.github
-
Notifications
You must be signed in to change notification settings - Fork 5
/
constants.go
34 lines (29 loc) · 961 Bytes
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package types
type ContentType string
const (
DIDJSON ContentType = "application/did+json"
DIDJSONLD ContentType = "application/did+ld+json"
JSONLD ContentType = "application/ld+json"
JSON ContentType = "application/json"
)
func (cType ContentType) IsSupported() bool {
supportedTypes := map[ContentType]bool{
DIDJSON: true,
DIDJSONLD: true,
JSONLD: true,
}
return supportedTypes[cType]
}
const (
DIDSchemaJSONLD = "https://www.w3.org/ns/did/v1"
ResolutionSchemaJSONLD = "https://w3id.org/did-resolution/v1"
Ed25519VerificationKey2020JSONLD = "https://w3id.org/security/suites/ed25519-2020/v1"
Ed25519VerificationKey2018JSONLD = "https://w3id.org/security/suites/ed25519-2018/v1"
JsonWebKey2020JSONLD = "https://w3id.org/security/suites/jws-2020/v1"
)
const (
DID_METHOD = "cheqd"
RESOLVER_PATH = "/1.0/identifiers/"
RESOURCE_PATH = "/resources/"
SWAGGER_PATH = "/swagger/"
)