-
Notifications
You must be signed in to change notification settings - Fork 9
/
spec-registries.go
30 lines (21 loc) · 1.23 KB
/
spec-registries.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
package ssi
type KeyType string
// JsonWebKey2020 is a VerificationMethod type.
// https://w3c-ccg.github.io/lds-jws2020/
const JsonWebKey2020 = KeyType("JsonWebKey2020")
// ED25519VerificationKey2018 is the Ed25519VerificationKey2018 verification key type as specified here:
// https://w3c-ccg.github.io/
const ED25519VerificationKey2018 = KeyType("Ed25519VerificationKey2018")
// ED25519VerificationKey2020 is the Ed25519VerificationKey2020 verification key type as specified here:
// https://www.w3.org/TR/vc-di-eddsa/#ed25519verificationkey2020
const ED25519VerificationKey2020 = KeyType("Ed25519VerificationKey2020")
// ECDSASECP256K1VerificationKey2019 is the EcdsaSecp256k1VerificationKey2019 verification key type as specified here:
// https://w3c-ccg.github.io/lds-ecdsa-secp256k1-2019/
const ECDSASECP256K1VerificationKey2019 = KeyType("EcdsaSecp256k1VerificationKey2019")
// RSAVerificationKey2018 is the RsaVerificationKey2018 verification key type as specified here:
// https://w3c-ccg.github.io/lds-rsa2018/
const RSAVerificationKey2018 = KeyType("RsaVerificationKey2018")
type ProofType string
// JsonWebSignature2020 is a Proof type.
// https://w3c-ccg.github.io/lds-jws2020
const JsonWebSignature2020 = ProofType("JsonWebSignature2020")