-
Notifications
You must be signed in to change notification settings - Fork 15
/
entity.go
61 lines (50 loc) · 1.07 KB
/
entity.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
53
54
55
56
57
58
59
60
61
package serdes
import (
"time"
"github.com/immesys/asn1"
)
type WaveEntity struct {
TBS struct {
Raw asn1.RawContent
VerifyingKey EntityPublicKey
Keys []EntityPublicKey
Validity struct {
NotBefore time.Time `asn1:"utc"`
NotAfter time.Time `asn1:"utc"`
}
Revocations []RevocationOption
Extensions []Extension
}
Signature []byte
}
type EntityPublicKey struct {
Capabilities []int `asn1:"set"`
Key asn1.External
}
type WaveEntitySecret struct {
Entity WaveEntity
Keyring asn1.External
}
type EntityKeyring struct {
Keys []EntityKeyringEntry
}
type EntityKeyringEntry struct {
Public EntityPublicKey
Private asn1.External
}
type BLS12381OAQUEKeyringBundle struct {
Params EntityParamsOQAUE_BLS12381_s20
Entries []BLS12381OAQUEKeyringBundleEntry
}
type BLS12381OAQUEKeyringBundleEntry struct {
PartitionChange []PartitionChange
Key EntitySecretOQAUE_BLS12381_s20
}
type PartitionChange struct {
Index int
Content []byte
}
type Signature struct {
Scheme asn1.ObjectIdentifier
Signature []byte
}