-
Notifications
You must be signed in to change notification settings - Fork 44
/
certificate.proto
35 lines (29 loc) · 972 Bytes
/
certificate.proto
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
syntax = "proto3";
package zigbeealliance.distributedcomplianceledger.pki;
option go_package = "github.com/zigbee-alliance/distributed-compliance-ledger/x/pki/types";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "zigbeealliance/distributedcomplianceledger/pki/grant.proto";
enum CertificateType {
DeviceAttestationPKI = 0;
OperationalPKI = 1;
VIDSignerPKI = 2;
}
message Certificate {
string pemCert = 1;
string serialNumber = 2;
string issuer = 3;
string authorityKeyId = 4;
string rootSubject = 5;
string rootSubjectKeyId = 6;
bool isRoot = 7;
string owner = 8 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string subject = 9;
string subjectKeyId = 10;
repeated Grant approvals = 11;
string subjectAsText = 12;
repeated Grant rejects = 13;
int32 vid = 14 [(gogoproto.moretags) = "validate:\"gte=1,lte=65535\""];
CertificateType certificateType = 15;
uint32 schemaVersion = 16;
}