forked from TBD54566975/ssi-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enum.go
executable file
·52 lines (40 loc) · 1.11 KB
/
enum.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package ion
type Network string
const (
Mainnet Network = "mainnet"
Testnet Network = "testnet"
)
type PublicKeyPurpose string
const (
Authentication PublicKeyPurpose = "authentication"
AssertionMethod PublicKeyPurpose = "assertionMethod"
CapabilityInvocation PublicKeyPurpose = "capabilityInvocation"
CapabilityDelegation PublicKeyPurpose = "capabilityDelegation"
KeyAgreement PublicKeyPurpose = "keyAgreement"
)
type OperationKeyType string
const (
Public OperationKeyType = "public"
Private OperationKeyType = "private"
)
type OperationType string
const (
Create OperationType = "create"
Update OperationType = "update"
Deactivate OperationType = "deactivate"
Recover OperationType = "recover"
)
type Patch interface {
GetAction() PatchAction
}
type PatchAction string
const (
Replace PatchAction = "replace"
AddPublicKeys PatchAction = "add-public-keys"
RemovePublicKeys PatchAction = "remove-public-keys"
AddServices PatchAction = "add-services"
RemoveServices PatchAction = "remove-services"
)
func (p PatchAction) String() string {
return string(p)
}