-
Notifications
You must be signed in to change notification settings - Fork 44
/
tx.proto
244 lines (204 loc) · 10.9 KB
/
tx.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
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
syntax = "proto3";
package zigbeealliance.distributedcomplianceledger.pki;
// this line is used by starport scaffolding # proto/tx/import
option go_package = "github.com/zigbee-alliance/distributed-compliance-ledger/x/pki/types";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
// Msg defines the Msg service.
service Msg {
rpc ProposeAddX509RootCert(MsgProposeAddX509RootCert) returns (MsgProposeAddX509RootCertResponse);
rpc ApproveAddX509RootCert(MsgApproveAddX509RootCert) returns (MsgApproveAddX509RootCertResponse);
rpc AddX509Cert(MsgAddX509Cert) returns (MsgAddX509CertResponse);
rpc ProposeRevokeX509RootCert(MsgProposeRevokeX509RootCert) returns (MsgProposeRevokeX509RootCertResponse);
rpc ApproveRevokeX509RootCert(MsgApproveRevokeX509RootCert) returns (MsgApproveRevokeX509RootCertResponse);
rpc RevokeX509Cert(MsgRevokeX509Cert) returns (MsgRevokeX509CertResponse);
rpc RejectAddX509RootCert(MsgRejectAddX509RootCert) returns (MsgRejectAddX509RootCertResponse);
rpc AddPkiRevocationDistributionPoint(MsgAddPkiRevocationDistributionPoint) returns (MsgAddPkiRevocationDistributionPointResponse);
rpc UpdatePkiRevocationDistributionPoint(MsgUpdatePkiRevocationDistributionPoint) returns (MsgUpdatePkiRevocationDistributionPointResponse);
rpc DeletePkiRevocationDistributionPoint(MsgDeletePkiRevocationDistributionPoint) returns (MsgDeletePkiRevocationDistributionPointResponse);
rpc AssignVid(MsgAssignVid) returns (MsgAssignVidResponse);
rpc AddNocX509RootCert(MsgAddNocX509RootCert) returns (MsgAddNocX509RootCertResponse);
rpc RemoveX509Cert(MsgRemoveX509Cert) returns (MsgRemoveX509CertResponse);
rpc AddNocX509IcaCert(MsgAddNocX509IcaCert) returns (MsgAddNocX509IcaCertResponse);
rpc RevokeNocX509RootCert(MsgRevokeNocX509RootCert) returns (MsgRevokeNocX509RootCertResponse);
rpc RevokeNocX509IcaCert(MsgRevokeNocX509IcaCert) returns (MsgRevokeNocX509IcaCertResponse);
rpc RemoveNocX509IcaCert (MsgRemoveNocX509IcaCert) returns (MsgRemoveNocX509IcaCertResponse);
rpc RemoveNocX509RootCert (MsgRemoveNocX509RootCert) returns (MsgRemoveNocX509RootCertResponse);
// this line is used by starport scaffolding # proto/tx/rpc
}
message MsgProposeAddX509RootCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string cert = 2 [(gogoproto.moretags) = "validate:\"required,max=10485760\""];
string info = 3 [(gogoproto.moretags) = "validate:\"max=4096\""];
int64 time = 4;
int32 vid = 5 [(gogoproto.moretags) = "validate:\"gte=1,lte=65535,required\""];
uint32 certSchemaVersion = 6 [(gogoproto.moretags) = "validate:\"eq=0\""];
}
message MsgProposeAddX509RootCertResponse {
}
message MsgApproveAddX509RootCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string info = 4 [(gogoproto.moretags) = "validate:\"max=4096\""];
int64 time = 5;
}
message MsgApproveAddX509RootCertResponse {
}
message MsgAddX509Cert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string cert = 2 [(gogoproto.moretags) = "validate:\"required,max=10485760\""];
string info = 3 [(gogoproto.moretags) = "validate:\"max=4096\""];
int64 time = 4;
uint32 certSchemaVersion = 5 [(gogoproto.moretags) = "validate:\"eq=0\""];
}
message MsgAddX509CertResponse {
}
message MsgProposeRevokeX509RootCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string info = 4 [(gogoproto.moretags) = "validate:\"max=4096\""];
int64 time = 5;
string serialNumber = 6;
bool revokeChild = 7;
}
message MsgProposeRevokeX509RootCertResponse {
}
message MsgApproveRevokeX509RootCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string info = 5 [(gogoproto.moretags) = "validate:\"max=4096\""];
int64 time = 6;
string serialNumber = 7;
}
message MsgApproveRevokeX509RootCertResponse {
}
message MsgRevokeX509Cert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string info = 4 [(gogoproto.moretags) = "validate:\"max=4096\""];
int64 time = 5;
string serialNumber = 6;
bool revokeChild = 7;
}
message MsgRevokeX509CertResponse {
}
message MsgRejectAddX509RootCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string info = 4 [(gogoproto.moretags) = "validate:\"max=4096\""];
int64 time = 5;
}
message MsgRejectAddX509RootCertResponse {
}
message MsgAddPkiRevocationDistributionPoint {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
int32 vid = 2 [(gogoproto.moretags) = "validate:\"gte=1,lte=65535,required\""];
int32 pid = 3 [(gogoproto.moretags) = "validate:\"gte=0,lte=65535\""];
bool isPAA = 4;
string label = 5 [(gogoproto.moretags) = "validate:\"required\""];
string crlSignerCertificate = 6 [(gogoproto.moretags) = "validate:\"required\""];
string issuerSubjectKeyID = 7 [(gogoproto.moretags) = "validate:\"required\""];
string dataURL = 8 [(gogoproto.moretags) = "validate:\"required,url\""];
uint64 dataFileSize = 9;
string dataDigest = 10;
uint32 dataDigestType = 11;
uint32 revocationType = 12 [(gogoproto.moretags) = "validate:\"required\""];
uint32 schemaVersion = 13 [(gogoproto.moretags) = "validate:\"eq=0\""];
string crlSignerDelegator = 14 [(gogoproto.moretags) = "validate:\"max=10485760\""];
}
message MsgAddPkiRevocationDistributionPointResponse {
}
message MsgUpdatePkiRevocationDistributionPoint {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
int32 vid = 2 [(gogoproto.moretags) = "validate:\"gte=1,lte=65535,required\""];
string label = 3 [(gogoproto.moretags) = "validate:\"required\""];
string crlSignerCertificate = 4;
string issuerSubjectKeyID = 5 [(gogoproto.moretags) = "validate:\"required\""];
string dataURL = 6 [(gogoproto.moretags) = "validate:\"omitempty,url\""];
uint64 dataFileSize = 7;
string dataDigest = 8;
uint32 dataDigestType = 9;
uint32 schemaVersion = 10 [(gogoproto.moretags) = "validate:\"eq=0\""];
string crlSignerDelegator = 11 [(gogoproto.moretags) = "validate:\"max=10485760\""];
}
message MsgUpdatePkiRevocationDistributionPointResponse {
}
message MsgDeletePkiRevocationDistributionPoint {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
int32 vid = 2 [(gogoproto.moretags) = "validate:\"gte=1,lte=65535,required\""];
string label = 3 [(gogoproto.moretags) = "validate:\"required\""];
string issuerSubjectKeyID = 4 [(gogoproto.moretags) = "validate:\"required\""];
}
message MsgDeletePkiRevocationDistributionPointResponse {
}
message MsgAssignVid {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
int32 vid = 4 [(gogoproto.moretags) = "validate:\"gte=1,lte=65535,required\""];
}
message MsgAssignVidResponse {
}
message MsgAddNocX509RootCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string cert = 2 [(gogoproto.moretags) = "validate:\"required,max=10485760\""];
uint32 certSchemaVersion = 4 [(gogoproto.moretags) = "validate:\"eq=0\""];
}
message MsgAddNocX509RootCertResponse {
}
message MsgRemoveX509Cert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string serialNumber = 4;
}
message MsgRemoveX509CertResponse {
}
message MsgAddNocX509IcaCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string cert = 2 [(gogoproto.moretags) = "validate:\"required,max=10485760\""];
uint32 certSchemaVersion = 3 [(gogoproto.moretags) = "validate:\"eq=0\""];
}
message MsgAddNocX509IcaCertResponse {
}
message MsgRevokeNocX509RootCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string serialNumber = 4;
string info = 5 [(gogoproto.moretags) = "validate:\"max=4096\""];
int64 time = 6;
bool revokeChild = 7;
}
message MsgRevokeNocX509RootCertResponse {
}
message MsgRevokeNocX509IcaCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string serialNumber = 4;
string info = 5 [(gogoproto.moretags) = "validate:\"max=4096\""];
int64 time = 6;
bool revokeChild = 7;
}
message MsgRevokeNocX509IcaCertResponse {
}
message MsgRemoveNocX509IcaCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string serialNumber = 4;
}
message MsgRemoveNocX509IcaCertResponse {}
message MsgRemoveNocX509RootCert {
string signer = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.moretags) = "validate:\"required\""];
string subject = 2 [(gogoproto.moretags) = "validate:\"required,max=1024\""];
string subjectKeyId = 3 [(gogoproto.moretags) = "validate:\"required,max=256\""];
string serialNumber = 4;
}
message MsgRemoveNocX509RootCertResponse {}