/
resources.pb.go
293 lines (262 loc) · 11.6 KB
/
resources.pb.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
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//由Protoc Gen Go生成的代码。不要编辑。
//来源:peer/resources.proto
package peer //导入“github.com/hyperledger/fabric/protos/peer”
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import common "github.com/hyperledger/fabric/protos/common"
//引用导入以禁止错误(如果未使用)。
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
//这是一个编译时断言,以确保生成的文件
//与正在编译的proto包兼容。
//此行的编译错误可能意味着您的
//需要更新proto包。
const _ = proto.ProtoPackageIsVersion2 //请升级proto包
//chaincodeidentifier标识一段chaincode。允许对等机接受
//此链码,安装的代码的哈希必须匹配,版本字符串也必须匹配
//包含在安装命令中。
type ChaincodeIdentifier struct {
Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChaincodeIdentifier) Reset() { *m = ChaincodeIdentifier{} }
func (m *ChaincodeIdentifier) String() string { return proto.CompactTextString(m) }
func (*ChaincodeIdentifier) ProtoMessage() {}
func (*ChaincodeIdentifier) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_8467365451aa3557, []int{0}
}
func (m *ChaincodeIdentifier) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChaincodeIdentifier.Unmarshal(m, b)
}
func (m *ChaincodeIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChaincodeIdentifier.Marshal(b, m, deterministic)
}
func (dst *ChaincodeIdentifier) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChaincodeIdentifier.Merge(dst, src)
}
func (m *ChaincodeIdentifier) XXX_Size() int {
return xxx_messageInfo_ChaincodeIdentifier.Size(m)
}
func (m *ChaincodeIdentifier) XXX_DiscardUnknown() {
xxx_messageInfo_ChaincodeIdentifier.DiscardUnknown(m)
}
var xxx_messageInfo_ChaincodeIdentifier proto.InternalMessageInfo
func (m *ChaincodeIdentifier) GetHash() []byte {
if m != nil {
return m.Hash
}
return nil
}
func (m *ChaincodeIdentifier) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
//chaincodevalidation指示对等端如何处理此chaincode的事务
//验证。目前唯一与织物一起提供的验证机制是标准的
//“vscc”验证机制。此内置验证方法使用认可策略
//它检查是否包含了足够数量的签名。“争论”
//字段对验证实现所需的任何参数进行编码。
type ChaincodeValidation struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Argument []byte `protobuf:"bytes,2,opt,name=argument,proto3" json:"argument,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChaincodeValidation) Reset() { *m = ChaincodeValidation{} }
func (m *ChaincodeValidation) String() string { return proto.CompactTextString(m) }
func (*ChaincodeValidation) ProtoMessage() {}
func (*ChaincodeValidation) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_8467365451aa3557, []int{1}
}
func (m *ChaincodeValidation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChaincodeValidation.Unmarshal(m, b)
}
func (m *ChaincodeValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChaincodeValidation.Marshal(b, m, deterministic)
}
func (dst *ChaincodeValidation) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChaincodeValidation.Merge(dst, src)
}
func (m *ChaincodeValidation) XXX_Size() int {
return xxx_messageInfo_ChaincodeValidation.Size(m)
}
func (m *ChaincodeValidation) XXX_DiscardUnknown() {
xxx_messageInfo_ChaincodeValidation.DiscardUnknown(m)
}
var xxx_messageInfo_ChaincodeValidation proto.InternalMessageInfo
func (m *ChaincodeValidation) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ChaincodeValidation) GetArgument() []byte {
if m != nil {
return m.Argument
}
return nil
}
//vsccargs作为参数通过
//chaincodevalidation消息的参数字段。
type VSCCArgs struct {
EndorsementPolicyRef string `protobuf:"bytes,1,opt,name=endorsement_policy_ref,json=endorsementPolicyRef,proto3" json:"endorsement_policy_ref,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *VSCCArgs) Reset() { *m = VSCCArgs{} }
func (m *VSCCArgs) String() string { return proto.CompactTextString(m) }
func (*VSCCArgs) ProtoMessage() {}
func (*VSCCArgs) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_8467365451aa3557, []int{2}
}
func (m *VSCCArgs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_VSCCArgs.Unmarshal(m, b)
}
func (m *VSCCArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_VSCCArgs.Marshal(b, m, deterministic)
}
func (dst *VSCCArgs) XXX_Merge(src proto.Message) {
xxx_messageInfo_VSCCArgs.Merge(dst, src)
}
func (m *VSCCArgs) XXX_Size() int {
return xxx_messageInfo_VSCCArgs.Size(m)
}
func (m *VSCCArgs) XXX_DiscardUnknown() {
xxx_messageInfo_VSCCArgs.DiscardUnknown(m)
}
var xxx_messageInfo_VSCCArgs proto.InternalMessageInfo
func (m *VSCCArgs) GetEndorsementPolicyRef() string {
if m != nil {
return m.EndorsementPolicyRef
}
return ""
}
//chaincode认可指示对等方如何认可事务。唯一
//如今与织物一起提供的认可机制是标准的“ESCC”机制。
//此代码简单地模拟生成一个rw集的建议,然后对结果进行签名。
//使用对等机的本地签名标识。
type ChaincodeEndorsement struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ChaincodeEndorsement) Reset() { *m = ChaincodeEndorsement{} }
func (m *ChaincodeEndorsement) String() string { return proto.CompactTextString(m) }
func (*ChaincodeEndorsement) ProtoMessage() {}
func (*ChaincodeEndorsement) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_8467365451aa3557, []int{3}
}
func (m *ChaincodeEndorsement) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ChaincodeEndorsement.Unmarshal(m, b)
}
func (m *ChaincodeEndorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ChaincodeEndorsement.Marshal(b, m, deterministic)
}
func (dst *ChaincodeEndorsement) XXX_Merge(src proto.Message) {
xxx_messageInfo_ChaincodeEndorsement.Merge(dst, src)
}
func (m *ChaincodeEndorsement) XXX_Size() int {
return xxx_messageInfo_ChaincodeEndorsement.Size(m)
}
func (m *ChaincodeEndorsement) XXX_DiscardUnknown() {
xxx_messageInfo_ChaincodeEndorsement.DiscardUnknown(m)
}
var xxx_messageInfo_ChaincodeEndorsement proto.InternalMessageInfo
func (m *ChaincodeEndorsement) GetName() string {
if m != nil {
return m.Name
}
return ""
}
//configtree封装通道和通道的资源配置。
//两种配置都表示为common.config
type ConfigTree struct {
ChannelConfig *common.Config `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"`
ResourcesConfig *common.Config `protobuf:"bytes,2,opt,name=resources_config,json=resourcesConfig,proto3" json:"resources_config,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ConfigTree) Reset() { *m = ConfigTree{} }
func (m *ConfigTree) String() string { return proto.CompactTextString(m) }
func (*ConfigTree) ProtoMessage() {}
func (*ConfigTree) Descriptor() ([]byte, []int) {
return fileDescriptor_resources_8467365451aa3557, []int{4}
}
func (m *ConfigTree) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ConfigTree.Unmarshal(m, b)
}
func (m *ConfigTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ConfigTree.Marshal(b, m, deterministic)
}
func (dst *ConfigTree) XXX_Merge(src proto.Message) {
xxx_messageInfo_ConfigTree.Merge(dst, src)
}
func (m *ConfigTree) XXX_Size() int {
return xxx_messageInfo_ConfigTree.Size(m)
}
func (m *ConfigTree) XXX_DiscardUnknown() {
xxx_messageInfo_ConfigTree.DiscardUnknown(m)
}
var xxx_messageInfo_ConfigTree proto.InternalMessageInfo
func (m *ConfigTree) GetChannelConfig() *common.Config {
if m != nil {
return m.ChannelConfig
}
return nil
}
func (m *ConfigTree) GetResourcesConfig() *common.Config {
if m != nil {
return m.ResourcesConfig
}
return nil
}
func init() {
proto.RegisterType((*ChaincodeIdentifier)(nil), "protos.ChaincodeIdentifier")
proto.RegisterType((*ChaincodeValidation)(nil), "protos.ChaincodeValidation")
proto.RegisterType((*VSCCArgs)(nil), "protos.VSCCArgs")
proto.RegisterType((*ChaincodeEndorsement)(nil), "protos.ChaincodeEndorsement")
proto.RegisterType((*ConfigTree)(nil), "protos.ConfigTree")
}
func init() { proto.RegisterFile("peer/resources.proto", fileDescriptor_resources_8467365451aa3557) }
var fileDescriptor_resources_8467365451aa3557 = []byte{
//gzip文件描述符或协议的326字节
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0xbf, 0x4f, 0xfb, 0x30,
0x10, 0xc5, 0xd5, 0xea, 0xab, 0x2f, 0xed, 0x51, 0x0a, 0x32, 0x05, 0x55, 0x9d, 0xaa, 0x4c, 0x85,
0x21, 0x91, 0xf8, 0x31, 0xb0, 0x01, 0x51, 0x07, 0x26, 0x50, 0x40, 0x1d, 0x58, 0x2a, 0xd7, 0xb9,
0x24, 0x96, 0x12, 0x3b, 0x3a, 0xbb, 0x88, 0x2e, 0xfc, 0xed, 0x28, 0x76, 0x1b, 0x3a, 0x74, 0xf2,
0x9d, 0xdf, 0xe7, 0x9e, 0x4e, 0xef, 0x60, 0x54, 0x23, 0x52, 0x44, 0x68, 0xf4, 0x9a, 0x04, 0x9a,
0xb0, 0x26, 0x6d, 0x35, 0xfb, 0xef, 0x1e, 0x33, 0xb9, 0x10, 0xba, 0xaa, 0xb4, 0x8a, 0x84, 0x56,
0x99, 0xcc, 0xed, 0xb7, 0x97, 0x83, 0x18, 0xce, 0xe3, 0x82, 0x4b, 0x25, 0x74, 0x8a, 0x2f, 0x29,
0x2a, 0x2b, 0x33, 0x89, 0xc4, 0x18, 0xfc, 0x2b, 0xb8, 0x29, 0xc6, 0x9d, 0x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