├── .github └── settings.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── common ├── collection.pb.go ├── common.pb.go ├── configtx.pb.go ├── configuration.pb.go ├── ledger.pb.go └── policies.pb.go ├── discovery └── protocol.pb.go ├── doc.go ├── gateway └── gateway.pb.go ├── go.mod ├── go.sum ├── gossip └── message.pb.go ├── ledger ├── queryresult │ └── kv_query_result.pb.go └── rwset │ ├── kvrwset │ └── kv_rwset.pb.go │ └── rwset.pb.go ├── msp ├── identities.pb.go ├── msp_config.pb.go └── msp_principal.pb.go ├── orderer ├── ab.pb.go ├── cluster.pb.go ├── clusterserver.pb.go ├── configuration.pb.go ├── etcdraft │ ├── configuration.pb.go │ └── metadata.pb.go └── smartbft │ └── configuration.pb.go ├── peer ├── chaincode.pb.go ├── chaincode_event.pb.go ├── chaincode_shim.pb.go ├── collection.pb.go ├── configuration.pb.go ├── events.pb.go ├── lifecycle │ ├── chaincode_definition.pb.go │ ├── db.pb.go │ └── lifecycle.pb.go ├── peer.pb.go ├── policy.pb.go ├── proposal.pb.go ├── proposal_response.pb.go ├── query.pb.go ├── resources.pb.go ├── signed_cc_dep_spec.pb.go ├── snapshot.pb.go └── transaction.pb.go └── transientstore └── transientstore.pb.go /.github/settings.yml: -------------------------------------------------------------------------------- 1 | # 2 | # SPDX-License-Identifier: Apache-2.0 3 | # 4 | 5 | repository: 6 | name: fabric-protos-go 7 | description: Generated Go bindings for fabric-protos 8 | homepage: https://hyperledger.github.io/fabric-protos/ 9 | default_branch: main 10 | has_downloads: false 11 | has_issues: false 12 | has_projects: false 13 | has_wiki: false 14 | archived: false 15 | private: false 16 | allow_squash_merge: true 17 | allow_merge_commit: false 18 | allow_rebase_merge: true 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #SPDX-License-Identifier: Apache-2.0 2 | .idea 3 | .vscode 4 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | Code of Conduct Guidelines 2 | ========================== 3 | 4 | Please review the Hyperledger [Code of Conduct](https://wiki.hyperledger.org/community/hyperledger-project-code-of-conduct) 5 | before participating. It is important that we keep things civil. 6 | 7 | Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License. 8 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | We welcome contributions to the Hyperledger Fabric Project in many forms, and there's always plenty to do! 4 | 5 | Please visit the [contributors guide](http://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html) in the docs to learn how to make contributions to this exciting project. 6 | 7 | Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License. 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hyperledger Fabric gRPC and Protocol Buffer Bindings for go 2 | 3 | IMPORTANT: you should not attempt to make changes to this repository. 4 | It is an assembled representation of the [repository][fabric-protos]. 5 | If you want to make changes, you must prepare them for the [repository][fabric-protos] 6 | 7 | This repository contains the Hyperledger Fabric [grpc] service and [protocol 8 | buffer][protobuf] bindings for [go]. 9 | 10 | ## Community 11 | 12 | We welcome contributions to the Hyperledger Fabric project in many forms. 13 | There’s always plenty to do! Check the documentation on 14 | [how to contribute][contributing] to this project for the full details. 15 | 16 | - [Hyperledger Community](https://www.hyperledger.org/community) 17 | - [Hyperledger mailing lists and archives](http://lists.hyperledger.org/) 18 | - [Hyperledger Chat](http://chat.hyperledger.org/channel/fabric) 19 | - [Hyperledger Fabric Issue Tracking (JIRA)](https://jira.hyperledger.org/secure/Dashboard.jspa?selectPageId=10104) 20 | - [Hyperledger Fabric Wiki](https://wiki.hyperledger.org/display/Fabric) 21 | - [Hyperledger Wiki](https://wiki.hyperledger.org/) 22 | - [Hyperledger Code of Conduct](https://wiki.hyperledger.org/display/HYP/Hyperledger+Code+of+Conduct) 23 | 24 | ## License 25 | 26 | Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the [LICENSE](LICENSE) file. Hyperledger Project documentation files are made available under the Creative Commons Attribution 4.0 International License (CC-BY-4.0), available at http://creativecommons.org/licenses/by/4.0/. 27 | 28 | [contributing]: https://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html 29 | [go]: https://golang.org/ 30 | [grpc]: https://grpc.io/docs/guides/ 31 | [protobuf]: https://github.com/protocolbuffers/protobuf/ 32 | [rocketchat-image]: https://open.rocket.chat/images/join-chat.svg 33 | [rocketchat-url]: https://chat.hyperledger.org/channel/fabric 34 | [fabric-protos]: https://github.com/hyperledger/fabric-protos/ 35 | -------------------------------------------------------------------------------- /common/collection.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: common/collection.proto 3 | 4 | package common 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // CollectionConfigPackage represents an array of CollectionConfig 24 | // messages; the extra struct is required because repeated oneof is 25 | // forbidden by the protobuf syntax 26 | // 27 | // Deprecated: Do not use. 28 | type CollectionConfigPackage struct { 29 | Config []*CollectionConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"` 30 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 31 | XXX_unrecognized []byte `json:"-"` 32 | XXX_sizecache int32 `json:"-"` 33 | } 34 | 35 | func (m *CollectionConfigPackage) Reset() { *m = CollectionConfigPackage{} } 36 | func (m *CollectionConfigPackage) String() string { return proto.CompactTextString(m) } 37 | func (*CollectionConfigPackage) ProtoMessage() {} 38 | func (*CollectionConfigPackage) Descriptor() ([]byte, []int) { 39 | return fileDescriptor_89f245fc544906c7, []int{0} 40 | } 41 | 42 | func (m *CollectionConfigPackage) XXX_Unmarshal(b []byte) error { 43 | return xxx_messageInfo_CollectionConfigPackage.Unmarshal(m, b) 44 | } 45 | func (m *CollectionConfigPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 | return xxx_messageInfo_CollectionConfigPackage.Marshal(b, m, deterministic) 47 | } 48 | func (m *CollectionConfigPackage) XXX_Merge(src proto.Message) { 49 | xxx_messageInfo_CollectionConfigPackage.Merge(m, src) 50 | } 51 | func (m *CollectionConfigPackage) XXX_Size() int { 52 | return xxx_messageInfo_CollectionConfigPackage.Size(m) 53 | } 54 | func (m *CollectionConfigPackage) XXX_DiscardUnknown() { 55 | xxx_messageInfo_CollectionConfigPackage.DiscardUnknown(m) 56 | } 57 | 58 | var xxx_messageInfo_CollectionConfigPackage proto.InternalMessageInfo 59 | 60 | func (m *CollectionConfigPackage) GetConfig() []*CollectionConfig { 61 | if m != nil { 62 | return m.Config 63 | } 64 | return nil 65 | } 66 | 67 | // CollectionConfig defines the configuration of a collection object; 68 | // it currently contains a single, static type. 69 | // Dynamic collections are deferred. 70 | // 71 | // Deprecated: Do not use. 72 | type CollectionConfig struct { 73 | // Types that are valid to be assigned to Payload: 74 | // 75 | // *CollectionConfig_StaticCollectionConfig 76 | Payload isCollectionConfig_Payload `protobuf_oneof:"payload"` 77 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 78 | XXX_unrecognized []byte `json:"-"` 79 | XXX_sizecache int32 `json:"-"` 80 | } 81 | 82 | func (m *CollectionConfig) Reset() { *m = CollectionConfig{} } 83 | func (m *CollectionConfig) String() string { return proto.CompactTextString(m) } 84 | func (*CollectionConfig) ProtoMessage() {} 85 | func (*CollectionConfig) Descriptor() ([]byte, []int) { 86 | return fileDescriptor_89f245fc544906c7, []int{1} 87 | } 88 | 89 | func (m *CollectionConfig) XXX_Unmarshal(b []byte) error { 90 | return xxx_messageInfo_CollectionConfig.Unmarshal(m, b) 91 | } 92 | func (m *CollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 93 | return xxx_messageInfo_CollectionConfig.Marshal(b, m, deterministic) 94 | } 95 | func (m *CollectionConfig) XXX_Merge(src proto.Message) { 96 | xxx_messageInfo_CollectionConfig.Merge(m, src) 97 | } 98 | func (m *CollectionConfig) XXX_Size() int { 99 | return xxx_messageInfo_CollectionConfig.Size(m) 100 | } 101 | func (m *CollectionConfig) XXX_DiscardUnknown() { 102 | xxx_messageInfo_CollectionConfig.DiscardUnknown(m) 103 | } 104 | 105 | var xxx_messageInfo_CollectionConfig proto.InternalMessageInfo 106 | 107 | type isCollectionConfig_Payload interface { 108 | isCollectionConfig_Payload() 109 | } 110 | 111 | type CollectionConfig_StaticCollectionConfig struct { 112 | StaticCollectionConfig *StaticCollectionConfig `protobuf:"bytes,1,opt,name=static_collection_config,json=staticCollectionConfig,proto3,oneof"` 113 | } 114 | 115 | func (*CollectionConfig_StaticCollectionConfig) isCollectionConfig_Payload() {} 116 | 117 | func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload { 118 | if m != nil { 119 | return m.Payload 120 | } 121 | return nil 122 | } 123 | 124 | func (m *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig { 125 | if x, ok := m.GetPayload().(*CollectionConfig_StaticCollectionConfig); ok { 126 | return x.StaticCollectionConfig 127 | } 128 | return nil 129 | } 130 | 131 | // XXX_OneofWrappers is for the internal use of the proto package. 132 | func (*CollectionConfig) XXX_OneofWrappers() []interface{} { 133 | return []interface{}{ 134 | (*CollectionConfig_StaticCollectionConfig)(nil), 135 | } 136 | } 137 | 138 | // StaticCollectionConfig constitutes the configuration parameters of a 139 | // static collection object. Static collections are collections that are 140 | // known at chaincode instantiation time, and that cannot be changed. 141 | // Dynamic collections are deferred. 142 | // 143 | // Deprecated: Do not use. 144 | type StaticCollectionConfig struct { 145 | // the name of the collection inside the denoted chaincode 146 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 147 | // a reference to a policy residing / managed in the config block 148 | // to define which orgs have access to this collection’s private data 149 | MemberOrgsPolicy *CollectionPolicyConfig `protobuf:"bytes,2,opt,name=member_orgs_policy,json=memberOrgsPolicy,proto3" json:"member_orgs_policy,omitempty"` 150 | // The minimum number of peers private data will be sent to upon 151 | // endorsement. The endorsement would fail if dissemination to at least 152 | // this number of peers is not achieved. 153 | RequiredPeerCount int32 `protobuf:"varint,3,opt,name=required_peer_count,json=requiredPeerCount,proto3" json:"required_peer_count,omitempty"` 154 | // The maximum number of peers that private data will be sent to 155 | // upon endorsement. This number has to be bigger than required_peer_count. 156 | MaximumPeerCount int32 `protobuf:"varint,4,opt,name=maximum_peer_count,json=maximumPeerCount,proto3" json:"maximum_peer_count,omitempty"` 157 | // The number of blocks after which the collection data expires. 158 | // For instance if the value is set to 10, a key last modified by block number 100 159 | // will be purged at block number 111. A zero value is treated same as MaxUint64 160 | BlockToLive uint64 `protobuf:"varint,5,opt,name=block_to_live,json=blockToLive,proto3" json:"block_to_live,omitempty"` 161 | // The member only read access denotes whether only collection member clients 162 | // can read the private data (if set to true), or even non members can 163 | // read the data (if set to false, for example if you want to implement more granular 164 | // access logic in the chaincode) 165 | MemberOnlyRead bool `protobuf:"varint,6,opt,name=member_only_read,json=memberOnlyRead,proto3" json:"member_only_read,omitempty"` 166 | // The member only write access denotes whether only collection member clients 167 | // can write the private data (if set to true), or even non members can 168 | // write the data (if set to false, for example if you want to implement more granular 169 | // access logic in the chaincode) 170 | MemberOnlyWrite bool `protobuf:"varint,7,opt,name=member_only_write,json=memberOnlyWrite,proto3" json:"member_only_write,omitempty"` 171 | // a reference to a policy residing / managed in the config block 172 | // to define the endorsement policy for this collection 173 | EndorsementPolicy *ApplicationPolicy `protobuf:"bytes,8,opt,name=endorsement_policy,json=endorsementPolicy,proto3" json:"endorsement_policy,omitempty"` 174 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 175 | XXX_unrecognized []byte `json:"-"` 176 | XXX_sizecache int32 `json:"-"` 177 | } 178 | 179 | func (m *StaticCollectionConfig) Reset() { *m = StaticCollectionConfig{} } 180 | func (m *StaticCollectionConfig) String() string { return proto.CompactTextString(m) } 181 | func (*StaticCollectionConfig) ProtoMessage() {} 182 | func (*StaticCollectionConfig) Descriptor() ([]byte, []int) { 183 | return fileDescriptor_89f245fc544906c7, []int{2} 184 | } 185 | 186 | func (m *StaticCollectionConfig) XXX_Unmarshal(b []byte) error { 187 | return xxx_messageInfo_StaticCollectionConfig.Unmarshal(m, b) 188 | } 189 | func (m *StaticCollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 190 | return xxx_messageInfo_StaticCollectionConfig.Marshal(b, m, deterministic) 191 | } 192 | func (m *StaticCollectionConfig) XXX_Merge(src proto.Message) { 193 | xxx_messageInfo_StaticCollectionConfig.Merge(m, src) 194 | } 195 | func (m *StaticCollectionConfig) XXX_Size() int { 196 | return xxx_messageInfo_StaticCollectionConfig.Size(m) 197 | } 198 | func (m *StaticCollectionConfig) XXX_DiscardUnknown() { 199 | xxx_messageInfo_StaticCollectionConfig.DiscardUnknown(m) 200 | } 201 | 202 | var xxx_messageInfo_StaticCollectionConfig proto.InternalMessageInfo 203 | 204 | func (m *StaticCollectionConfig) GetName() string { 205 | if m != nil { 206 | return m.Name 207 | } 208 | return "" 209 | } 210 | 211 | func (m *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig { 212 | if m != nil { 213 | return m.MemberOrgsPolicy 214 | } 215 | return nil 216 | } 217 | 218 | func (m *StaticCollectionConfig) GetRequiredPeerCount() int32 { 219 | if m != nil { 220 | return m.RequiredPeerCount 221 | } 222 | return 0 223 | } 224 | 225 | func (m *StaticCollectionConfig) GetMaximumPeerCount() int32 { 226 | if m != nil { 227 | return m.MaximumPeerCount 228 | } 229 | return 0 230 | } 231 | 232 | func (m *StaticCollectionConfig) GetBlockToLive() uint64 { 233 | if m != nil { 234 | return m.BlockToLive 235 | } 236 | return 0 237 | } 238 | 239 | func (m *StaticCollectionConfig) GetMemberOnlyRead() bool { 240 | if m != nil { 241 | return m.MemberOnlyRead 242 | } 243 | return false 244 | } 245 | 246 | func (m *StaticCollectionConfig) GetMemberOnlyWrite() bool { 247 | if m != nil { 248 | return m.MemberOnlyWrite 249 | } 250 | return false 251 | } 252 | 253 | func (m *StaticCollectionConfig) GetEndorsementPolicy() *ApplicationPolicy { 254 | if m != nil { 255 | return m.EndorsementPolicy 256 | } 257 | return nil 258 | } 259 | 260 | // Collection policy configuration. Initially, the configuration can only 261 | // contain a SignaturePolicy. In the future, the SignaturePolicy may be a 262 | // more general Policy. Instead of containing the actual policy, the 263 | // configuration may in the future contain a string reference to a policy. 264 | // 265 | // Deprecated: Do not use. 266 | type CollectionPolicyConfig struct { 267 | // Types that are valid to be assigned to Payload: 268 | // 269 | // *CollectionPolicyConfig_SignaturePolicy 270 | Payload isCollectionPolicyConfig_Payload `protobuf_oneof:"payload"` 271 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 272 | XXX_unrecognized []byte `json:"-"` 273 | XXX_sizecache int32 `json:"-"` 274 | } 275 | 276 | func (m *CollectionPolicyConfig) Reset() { *m = CollectionPolicyConfig{} } 277 | func (m *CollectionPolicyConfig) String() string { return proto.CompactTextString(m) } 278 | func (*CollectionPolicyConfig) ProtoMessage() {} 279 | func (*CollectionPolicyConfig) Descriptor() ([]byte, []int) { 280 | return fileDescriptor_89f245fc544906c7, []int{3} 281 | } 282 | 283 | func (m *CollectionPolicyConfig) XXX_Unmarshal(b []byte) error { 284 | return xxx_messageInfo_CollectionPolicyConfig.Unmarshal(m, b) 285 | } 286 | func (m *CollectionPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 287 | return xxx_messageInfo_CollectionPolicyConfig.Marshal(b, m, deterministic) 288 | } 289 | func (m *CollectionPolicyConfig) XXX_Merge(src proto.Message) { 290 | xxx_messageInfo_CollectionPolicyConfig.Merge(m, src) 291 | } 292 | func (m *CollectionPolicyConfig) XXX_Size() int { 293 | return xxx_messageInfo_CollectionPolicyConfig.Size(m) 294 | } 295 | func (m *CollectionPolicyConfig) XXX_DiscardUnknown() { 296 | xxx_messageInfo_CollectionPolicyConfig.DiscardUnknown(m) 297 | } 298 | 299 | var xxx_messageInfo_CollectionPolicyConfig proto.InternalMessageInfo 300 | 301 | type isCollectionPolicyConfig_Payload interface { 302 | isCollectionPolicyConfig_Payload() 303 | } 304 | 305 | type CollectionPolicyConfig_SignaturePolicy struct { 306 | SignaturePolicy *SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"` 307 | } 308 | 309 | func (*CollectionPolicyConfig_SignaturePolicy) isCollectionPolicyConfig_Payload() {} 310 | 311 | func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload { 312 | if m != nil { 313 | return m.Payload 314 | } 315 | return nil 316 | } 317 | 318 | func (m *CollectionPolicyConfig) GetSignaturePolicy() *SignaturePolicyEnvelope { 319 | if x, ok := m.GetPayload().(*CollectionPolicyConfig_SignaturePolicy); ok { 320 | return x.SignaturePolicy 321 | } 322 | return nil 323 | } 324 | 325 | // XXX_OneofWrappers is for the internal use of the proto package. 326 | func (*CollectionPolicyConfig) XXX_OneofWrappers() []interface{} { 327 | return []interface{}{ 328 | (*CollectionPolicyConfig_SignaturePolicy)(nil), 329 | } 330 | } 331 | 332 | func init() { 333 | proto.RegisterType((*CollectionConfigPackage)(nil), "common.CollectionConfigPackage") 334 | proto.RegisterType((*CollectionConfig)(nil), "common.CollectionConfig") 335 | proto.RegisterType((*StaticCollectionConfig)(nil), "common.StaticCollectionConfig") 336 | proto.RegisterType((*CollectionPolicyConfig)(nil), "common.CollectionPolicyConfig") 337 | } 338 | 339 | func init() { proto.RegisterFile("common/collection.proto", fileDescriptor_89f245fc544906c7) } 340 | 341 | var fileDescriptor_89f245fc544906c7 = []byte{ 342 | // 479 bytes of a gzipped FileDescriptorProto 343 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xc1, 0x6f, 0xd3, 0x30, 344 | 0x14, 0xc6, 0x97, 0xb5, 0xeb, 0x36, 0x57, 0xb0, 0xd4, 0x88, 0x2e, 0x70, 0x80, 0xaa, 0xe2, 0x10, 345 | 0x21, 0x96, 0xa2, 0x71, 0xe3, 0xc6, 0x2a, 0xa4, 0x1e, 0x2a, 0xad, 0x0a, 0x08, 0xa4, 0x5d, 0x22, 346 | 0xc7, 0x79, 0xcb, 0xac, 0x39, 0x76, 0xb0, 0x9d, 0x42, 0x0e, 0xfc, 0x2f, 0xfc, 0xa9, 0xa8, 0x76, 347 | 0xd2, 0x74, 0x55, 0x6f, 0xed, 0xfb, 0x7e, 0xef, 0x7b, 0xcf, 0x9f, 0x5e, 0xd0, 0x25, 0x95, 0x45, 348 | 0x21, 0xc5, 0x8c, 0x4a, 0xce, 0x81, 0x1a, 0x26, 0x45, 0x54, 0x2a, 0x69, 0x24, 0x1e, 0x38, 0xe1, 349 | 0xf5, 0xcb, 0x06, 0x28, 0x25, 0x67, 0x94, 0x81, 0x76, 0xf2, 0xf4, 0x16, 0x5d, 0xce, 0xb7, 0x2d, 350 | 0x73, 0x29, 0xee, 0x59, 0xbe, 0x22, 0xf4, 0x91, 0xe4, 0x80, 0x3f, 0xa2, 0x01, 0xb5, 0x85, 0xc0, 351 | 0x9b, 0xf4, 0xc2, 0xe1, 0x75, 0x10, 0x39, 0x8b, 0x68, 0xbf, 0x21, 0x6e, 0xb8, 0xcf, 0xc7, 0x81, 352 | 0x37, 0xfd, 0x8b, 0xfc, 0x7d, 0x1d, 0xdf, 0xa1, 0x40, 0x1b, 0x62, 0x18, 0x4d, 0xba, 0xf5, 0x92, 353 | 0xad, 0xb7, 0x17, 0x0e, 0xaf, 0xdf, 0xb4, 0xde, 0xdf, 0x2c, 0xb7, 0xef, 0xb0, 0x38, 0x8a, 0xc7, 354 | 0xfa, 0xa0, 0xb2, 0x99, 0x79, 0x73, 0x8e, 0x4e, 0x4b, 0x52, 0x73, 0x49, 0xb2, 0xe9, 0xbf, 0x1e, 355 | 0x1a, 0x1f, 0xf6, 0xc0, 0x18, 0xf5, 0x05, 0x29, 0xc0, 0x4e, 0x3c, 0x8f, 0xed, 0x6f, 0xbc, 0x44, 356 | 0xb8, 0x80, 0x22, 0x05, 0x95, 0x48, 0x95, 0xeb, 0xc4, 0x86, 0x53, 0x07, 0xc7, 0x4f, 0x77, 0xea, 357 | 0x9c, 0x56, 0x56, 0x6f, 0x5e, 0xed, 0xbb, 0xce, 0x5b, 0x95, 0x6b, 0x57, 0xc7, 0x11, 0x7a, 0xa1, 358 | 0xe0, 0x57, 0xc5, 0x14, 0x64, 0x49, 0x09, 0xa0, 0x12, 0x2a, 0x2b, 0x61, 0x82, 0xde, 0xc4, 0x0b, 359 | 0x4f, 0xe2, 0x51, 0x2b, 0xad, 0x00, 0xd4, 0x7c, 0x23, 0xe0, 0x0f, 0x08, 0x17, 0xe4, 0x0f, 0x2b, 360 | 0xaa, 0x62, 0x17, 0xef, 0x5b, 0xdc, 0x6f, 0x94, 0x8e, 0x9e, 0xa2, 0x67, 0x29, 0x97, 0xf4, 0x31, 361 | 0x31, 0x32, 0xe1, 0x6c, 0x0d, 0xc1, 0xc9, 0xc4, 0x0b, 0xfb, 0xf1, 0xd0, 0x16, 0xbf, 0xcb, 0x25, 362 | 0x5b, 0x03, 0x0e, 0x91, 0xdf, 0xbe, 0x47, 0xf0, 0x3a, 0x51, 0x40, 0xb2, 0x60, 0x30, 0xf1, 0xc2, 363 | 0xb3, 0xf8, 0x79, 0xb3, 0xad, 0xe0, 0x75, 0x0c, 0x24, 0xc3, 0xef, 0xd1, 0x68, 0x97, 0xfc, 0xad, 364 | 0x98, 0x81, 0xe0, 0xd4, 0xa2, 0x17, 0x1d, 0xfa, 0x73, 0x53, 0xc6, 0x0b, 0x84, 0x41, 0x64, 0x52, 365 | 0x69, 0x28, 0x40, 0x98, 0x36, 0xa5, 0x33, 0x9b, 0xd2, 0xab, 0x36, 0xa5, 0x2f, 0x65, 0xc9, 0x19, 366 | 0x25, 0x5d, 0x4c, 0xf1, 0x68, 0xa7, 0xc9, 0x95, 0xec, 0x85, 0x54, 0x68, 0x7c, 0x38, 0x51, 0xbc, 367 | 0x44, 0xbe, 0x66, 0xb9, 0x20, 0xa6, 0x52, 0xd0, 0x4e, 0x71, 0xf7, 0xf1, 0x76, 0x7b, 0x1f, 0xad, 368 | 0xee, 0x1a, 0xbf, 0x8a, 0x35, 0x70, 0x59, 0xc2, 0xe2, 0x28, 0xbe, 0xd0, 0x4f, 0xa5, 0xbd, 0xcb, 369 | 0xb8, 0xf9, 0x81, 0xde, 0x49, 0x95, 0x47, 0x0f, 0x75, 0x09, 0x8a, 0x43, 0x96, 0x83, 0x8a, 0xee, 370 | 0x49, 0xaa, 0x18, 0x75, 0x5f, 0x82, 0x6e, 0x26, 0xdc, 0x45, 0x39, 0x33, 0x0f, 0x55, 0xba, 0xf9, 371 | 0x3b, 0xdb, 0x81, 0x67, 0x0e, 0xbe, 0x72, 0xf0, 0x55, 0x2e, 0x67, 0x8e, 0x4f, 0x07, 0xb6, 0xf2, 372 | 0xe9, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x86, 0x11, 0xe6, 0xd8, 0x82, 0x03, 0x00, 0x00, 373 | } 374 | -------------------------------------------------------------------------------- /common/ledger.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: common/ledger.proto 3 | 4 | package common 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // Contains information about the blockchain ledger such as height, current 24 | // block hash, and previous block hash. 25 | type BlockchainInfo struct { 26 | Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 27 | CurrentBlockHash []byte `protobuf:"bytes,2,opt,name=currentBlockHash,proto3" json:"currentBlockHash,omitempty"` 28 | PreviousBlockHash []byte `protobuf:"bytes,3,opt,name=previousBlockHash,proto3" json:"previousBlockHash,omitempty"` 29 | // Specifies bootstrapping snapshot info if the channel is bootstrapped from a snapshot. 30 | // It is nil if the channel is not bootstrapped from a snapshot. 31 | BootstrappingSnapshotInfo *BootstrappingSnapshotInfo `protobuf:"bytes,4,opt,name=bootstrappingSnapshotInfo,proto3" json:"bootstrappingSnapshotInfo,omitempty"` 32 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 | XXX_unrecognized []byte `json:"-"` 34 | XXX_sizecache int32 `json:"-"` 35 | } 36 | 37 | func (m *BlockchainInfo) Reset() { *m = BlockchainInfo{} } 38 | func (m *BlockchainInfo) String() string { return proto.CompactTextString(m) } 39 | func (*BlockchainInfo) ProtoMessage() {} 40 | func (*BlockchainInfo) Descriptor() ([]byte, []int) { 41 | return fileDescriptor_da3410306adbea27, []int{0} 42 | } 43 | 44 | func (m *BlockchainInfo) XXX_Unmarshal(b []byte) error { 45 | return xxx_messageInfo_BlockchainInfo.Unmarshal(m, b) 46 | } 47 | func (m *BlockchainInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 | return xxx_messageInfo_BlockchainInfo.Marshal(b, m, deterministic) 49 | } 50 | func (m *BlockchainInfo) XXX_Merge(src proto.Message) { 51 | xxx_messageInfo_BlockchainInfo.Merge(m, src) 52 | } 53 | func (m *BlockchainInfo) XXX_Size() int { 54 | return xxx_messageInfo_BlockchainInfo.Size(m) 55 | } 56 | func (m *BlockchainInfo) XXX_DiscardUnknown() { 57 | xxx_messageInfo_BlockchainInfo.DiscardUnknown(m) 58 | } 59 | 60 | var xxx_messageInfo_BlockchainInfo proto.InternalMessageInfo 61 | 62 | func (m *BlockchainInfo) GetHeight() uint64 { 63 | if m != nil { 64 | return m.Height 65 | } 66 | return 0 67 | } 68 | 69 | func (m *BlockchainInfo) GetCurrentBlockHash() []byte { 70 | if m != nil { 71 | return m.CurrentBlockHash 72 | } 73 | return nil 74 | } 75 | 76 | func (m *BlockchainInfo) GetPreviousBlockHash() []byte { 77 | if m != nil { 78 | return m.PreviousBlockHash 79 | } 80 | return nil 81 | } 82 | 83 | func (m *BlockchainInfo) GetBootstrappingSnapshotInfo() *BootstrappingSnapshotInfo { 84 | if m != nil { 85 | return m.BootstrappingSnapshotInfo 86 | } 87 | return nil 88 | } 89 | 90 | // Contains information for the bootstrapping snapshot. 91 | type BootstrappingSnapshotInfo struct { 92 | LastBlockInSnapshot uint64 `protobuf:"varint,1,opt,name=lastBlockInSnapshot,proto3" json:"lastBlockInSnapshot,omitempty"` 93 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 94 | XXX_unrecognized []byte `json:"-"` 95 | XXX_sizecache int32 `json:"-"` 96 | } 97 | 98 | func (m *BootstrappingSnapshotInfo) Reset() { *m = BootstrappingSnapshotInfo{} } 99 | func (m *BootstrappingSnapshotInfo) String() string { return proto.CompactTextString(m) } 100 | func (*BootstrappingSnapshotInfo) ProtoMessage() {} 101 | func (*BootstrappingSnapshotInfo) Descriptor() ([]byte, []int) { 102 | return fileDescriptor_da3410306adbea27, []int{1} 103 | } 104 | 105 | func (m *BootstrappingSnapshotInfo) XXX_Unmarshal(b []byte) error { 106 | return xxx_messageInfo_BootstrappingSnapshotInfo.Unmarshal(m, b) 107 | } 108 | func (m *BootstrappingSnapshotInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 109 | return xxx_messageInfo_BootstrappingSnapshotInfo.Marshal(b, m, deterministic) 110 | } 111 | func (m *BootstrappingSnapshotInfo) XXX_Merge(src proto.Message) { 112 | xxx_messageInfo_BootstrappingSnapshotInfo.Merge(m, src) 113 | } 114 | func (m *BootstrappingSnapshotInfo) XXX_Size() int { 115 | return xxx_messageInfo_BootstrappingSnapshotInfo.Size(m) 116 | } 117 | func (m *BootstrappingSnapshotInfo) XXX_DiscardUnknown() { 118 | xxx_messageInfo_BootstrappingSnapshotInfo.DiscardUnknown(m) 119 | } 120 | 121 | var xxx_messageInfo_BootstrappingSnapshotInfo proto.InternalMessageInfo 122 | 123 | func (m *BootstrappingSnapshotInfo) GetLastBlockInSnapshot() uint64 { 124 | if m != nil { 125 | return m.LastBlockInSnapshot 126 | } 127 | return 0 128 | } 129 | 130 | func init() { 131 | proto.RegisterType((*BlockchainInfo)(nil), "common.BlockchainInfo") 132 | proto.RegisterType((*BootstrappingSnapshotInfo)(nil), "common.BootstrappingSnapshotInfo") 133 | } 134 | 135 | func init() { proto.RegisterFile("common/ledger.proto", fileDescriptor_da3410306adbea27) } 136 | 137 | var fileDescriptor_da3410306adbea27 = []byte{ 138 | // 252 bytes of a gzipped FileDescriptorProto 139 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0xc1, 0x4a, 0xc4, 0x30, 140 | 0x10, 0x86, 0x89, 0x2e, 0x3d, 0x44, 0x11, 0xcd, 0x82, 0x74, 0x6f, 0x75, 0xf1, 0x50, 0xc4, 0x4d, 141 | 0x45, 0xdf, 0xa0, 0x27, 0xf7, 0xe0, 0xa5, 0x82, 0x07, 0x2f, 0x92, 0xc6, 0x6c, 0x12, 0xec, 0x66, 142 | 0xc2, 0x24, 0x15, 0x7c, 0x5e, 0x5f, 0x44, 0xb6, 0xa9, 0x28, 0xec, 0xf6, 0x38, 0xff, 0xff, 0x4d, 143 | 0xf8, 0x32, 0x74, 0x2e, 0x61, 0xbb, 0x05, 0x57, 0x75, 0xea, 0x5d, 0x2b, 0xe4, 0x1e, 0x21, 0x02, 144 | 0xcb, 0x52, 0xb8, 0xfc, 0x26, 0xf4, 0xac, 0xee, 0x40, 0x7e, 0x48, 0x23, 0xac, 0x5b, 0xbb, 0x0d, 145 | 0xb0, 0x4b, 0x9a, 0x19, 0x65, 0xb5, 0x89, 0x39, 0x29, 0x48, 0x39, 0x6b, 0xc6, 0x89, 0xdd, 0xd0, 146 | 0x73, 0xd9, 0x23, 0x2a, 0x17, 0x87, 0x85, 0x47, 0x11, 0x4c, 0x7e, 0x54, 0x90, 0xf2, 0xb4, 0xd9, 147 | 0xcb, 0xd9, 0x2d, 0xbd, 0xf0, 0xa8, 0x3e, 0x2d, 0xf4, 0xe1, 0x0f, 0x3e, 0x1e, 0xe0, 0xfd, 0x82, 148 | 0xbd, 0xd1, 0x45, 0x0b, 0x10, 0x43, 0x44, 0xe1, 0xbd, 0x75, 0xfa, 0xd9, 0x09, 0x1f, 0x0c, 0xc4, 149 | 0x9d, 0x4e, 0x3e, 0x2b, 0x48, 0x79, 0x72, 0x7f, 0xc5, 0x93, 0x30, 0xaf, 0xa7, 0xc0, 0x66, 0xfa, 150 | 0x8d, 0xe5, 0x13, 0x5d, 0x4c, 0xee, 0xb1, 0x3b, 0x3a, 0xef, 0x44, 0x48, 0xf2, 0x6b, 0xf7, 0x5b, 151 | 0x8d, 0x9f, 0x3f, 0x54, 0xd5, 0x2f, 0xf4, 0x1a, 0x50, 0x73, 0xf3, 0xe5, 0x15, 0x8e, 0x57, 0xdd, 152 | 0x88, 0x16, 0xad, 0x4c, 0xc7, 0x0d, 0xa3, 0xeb, 0x2b, 0xd7, 0x36, 0x9a, 0xbe, 0xdd, 0x8d, 0xd5, 153 | 0x3f, 0xb8, 0x4a, 0xf0, 0x2a, 0xc1, 0x2b, 0x0d, 0x55, 0xe2, 0xdb, 0x6c, 0x48, 0x1e, 0x7e, 0x02, 154 | 0x00, 0x00, 0xff, 0xff, 0x34, 0xc4, 0xfd, 0x0b, 0xb2, 0x01, 0x00, 0x00, 155 | } 156 | -------------------------------------------------------------------------------- /doc.go: -------------------------------------------------------------------------------- 1 | // Copyright the Hyperledger Fabric contributors. All rights reserved. 2 | // SPDX-License-Identifier: Apache-2.0 3 | 4 | // Package protos contains the protobuf and gRPC service bindings for 5 | // Hyperledger Fabric. 6 | package protos 7 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hyperledger/fabric-protos-go 2 | 3 | go 1.23.0 4 | 5 | require ( 6 | github.com/golang/protobuf v1.5.4 7 | google.golang.org/grpc v1.71.0 8 | google.golang.org/protobuf v1.36.6 9 | ) 10 | 11 | require ( 12 | golang.org/x/net v0.39.0 // indirect 13 | golang.org/x/sys v0.32.0 // indirect 14 | golang.org/x/text v0.24.0 // indirect 15 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 // indirect 16 | ) 17 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= 2 | github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= 3 | github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= 4 | github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= 5 | github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= 6 | github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= 7 | github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= 8 | github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= 9 | github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= 10 | github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 11 | go.opentelemetry.io/auto/sdk v1.1.0 h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA= 12 | go.opentelemetry.io/auto/sdk v1.1.0/go.mod h1:3wSPjt5PWp2RhlCcmmOial7AvC4DQqZb7a7wCow3W8A= 13 | go.opentelemetry.io/otel v1.34.0 h1:zRLXxLCgL1WyKsPVrgbSdMN4c0FMkDAskSTQP+0hdUY= 14 | go.opentelemetry.io/otel v1.34.0/go.mod h1:OWFPOQ+h4G8xpyjgqo4SxJYdDQ/qmRH+wivy7zzx9oI= 15 | go.opentelemetry.io/otel/metric v1.34.0 h1:+eTR3U0MyfWjRDhmFMxe2SsW64QrZ84AOhvqS7Y+PoQ= 16 | go.opentelemetry.io/otel/metric v1.34.0/go.mod h1:CEDrp0fy2D0MvkXE+dPV7cMi8tWZwX3dmaIhwPOaqHE= 17 | go.opentelemetry.io/otel/sdk v1.34.0 h1:95zS4k/2GOy069d321O8jWgYsW3MzVV+KuSPKp7Wr1A= 18 | go.opentelemetry.io/otel/sdk v1.34.0/go.mod h1:0e/pNiaMAqaykJGKbi+tSjWfNNHMTxoC9qANsCzbyxU= 19 | go.opentelemetry.io/otel/sdk/metric v1.34.0 h1:5CeK9ujjbFVL5c1PhLuStg1wxA7vQv7ce1EK0Gyvahk= 20 | go.opentelemetry.io/otel/sdk/metric v1.34.0/go.mod h1:jQ/r8Ze28zRKoNRdkjCZxfs6YvBTG1+YIqyFVFYec5w= 21 | go.opentelemetry.io/otel/trace v1.34.0 h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC8mh/k= 22 | go.opentelemetry.io/otel/trace v1.34.0/go.mod h1:Svm7lSjQD7kG7KJ/MUHPVXSDGz2OX4h0M2jHBhmSfRE= 23 | golang.org/x/net v0.39.0 h1:ZCu7HMWDxpXpaiKdhzIfaltL9Lp31x/3fCP11bc6/fY= 24 | golang.org/x/net v0.39.0/go.mod h1:X7NRbYVEA+ewNkCNyJ513WmMdQ3BineSwVtN2zD/d+E= 25 | golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20= 26 | golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= 27 | golang.org/x/text v0.24.0 h1:dd5Bzh4yt5KYA8f9CJHCP4FB4D51c2c6JvN37xJJkJ0= 28 | golang.org/x/text v0.24.0/go.mod h1:L8rBsPeo2pSS+xqN0d5u2ikmjtmoJbDBT1b7nHvFCdU= 29 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 h1:e0AIkUUhxyBKh6ssZNrAMeqhA7RKUj42346d1y02i2g= 30 | google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463/go.mod h1:qQ0YXyHHx3XkvlzUtpXDkS29lDSafHMZBAZDc03LQ3A= 31 | google.golang.org/grpc v1.71.0 h1:kF77BGdPTQ4/JZWMlb9VpJ5pa25aqvVqogsxNHHdeBg= 32 | google.golang.org/grpc v1.71.0/go.mod h1:H0GRtasmQOh9LkFoCPDu3ZrwUtD1YGE+b2vYBYd/8Ec= 33 | google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY= 34 | google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY= 35 | -------------------------------------------------------------------------------- /ledger/queryresult/kv_query_result.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: ledger/queryresult/kv_query_result.proto 3 | 4 | package queryresult 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | timestamppb "google.golang.org/protobuf/types/known/timestamppb" 10 | math "math" 11 | ) 12 | 13 | // Reference imports to suppress errors if they are not otherwise used. 14 | var _ = proto.Marshal 15 | var _ = fmt.Errorf 16 | var _ = math.Inf 17 | 18 | // This is a compile-time assertion to ensure that this generated file 19 | // is compatible with the proto package it is being compiled against. 20 | // A compilation error at this line likely means your copy of the 21 | // proto package needs to be updated. 22 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 | 24 | // KV -- QueryResult for range/execute query. Holds a key and corresponding value. 25 | type KV struct { 26 | Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 27 | Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` 28 | Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` 29 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 | XXX_unrecognized []byte `json:"-"` 31 | XXX_sizecache int32 `json:"-"` 32 | } 33 | 34 | func (m *KV) Reset() { *m = KV{} } 35 | func (m *KV) String() string { return proto.CompactTextString(m) } 36 | func (*KV) ProtoMessage() {} 37 | func (*KV) Descriptor() ([]byte, []int) { 38 | return fileDescriptor_f8ee2fe66594a8f2, []int{0} 39 | } 40 | 41 | func (m *KV) XXX_Unmarshal(b []byte) error { 42 | return xxx_messageInfo_KV.Unmarshal(m, b) 43 | } 44 | func (m *KV) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 | return xxx_messageInfo_KV.Marshal(b, m, deterministic) 46 | } 47 | func (m *KV) XXX_Merge(src proto.Message) { 48 | xxx_messageInfo_KV.Merge(m, src) 49 | } 50 | func (m *KV) XXX_Size() int { 51 | return xxx_messageInfo_KV.Size(m) 52 | } 53 | func (m *KV) XXX_DiscardUnknown() { 54 | xxx_messageInfo_KV.DiscardUnknown(m) 55 | } 56 | 57 | var xxx_messageInfo_KV proto.InternalMessageInfo 58 | 59 | func (m *KV) GetNamespace() string { 60 | if m != nil { 61 | return m.Namespace 62 | } 63 | return "" 64 | } 65 | 66 | func (m *KV) GetKey() string { 67 | if m != nil { 68 | return m.Key 69 | } 70 | return "" 71 | } 72 | 73 | func (m *KV) GetValue() []byte { 74 | if m != nil { 75 | return m.Value 76 | } 77 | return nil 78 | } 79 | 80 | // KeyModification -- QueryResult for history query. Holds a transaction ID, value, 81 | // timestamp, and delete marker which resulted from a history query. 82 | type KeyModification struct { 83 | TxId string `protobuf:"bytes,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` 84 | Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 85 | Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 86 | IsDelete bool `protobuf:"varint,4,opt,name=is_delete,json=isDelete,proto3" json:"is_delete,omitempty"` 87 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 88 | XXX_unrecognized []byte `json:"-"` 89 | XXX_sizecache int32 `json:"-"` 90 | } 91 | 92 | func (m *KeyModification) Reset() { *m = KeyModification{} } 93 | func (m *KeyModification) String() string { return proto.CompactTextString(m) } 94 | func (*KeyModification) ProtoMessage() {} 95 | func (*KeyModification) Descriptor() ([]byte, []int) { 96 | return fileDescriptor_f8ee2fe66594a8f2, []int{1} 97 | } 98 | 99 | func (m *KeyModification) XXX_Unmarshal(b []byte) error { 100 | return xxx_messageInfo_KeyModification.Unmarshal(m, b) 101 | } 102 | func (m *KeyModification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 | return xxx_messageInfo_KeyModification.Marshal(b, m, deterministic) 104 | } 105 | func (m *KeyModification) XXX_Merge(src proto.Message) { 106 | xxx_messageInfo_KeyModification.Merge(m, src) 107 | } 108 | func (m *KeyModification) XXX_Size() int { 109 | return xxx_messageInfo_KeyModification.Size(m) 110 | } 111 | func (m *KeyModification) XXX_DiscardUnknown() { 112 | xxx_messageInfo_KeyModification.DiscardUnknown(m) 113 | } 114 | 115 | var xxx_messageInfo_KeyModification proto.InternalMessageInfo 116 | 117 | func (m *KeyModification) GetTxId() string { 118 | if m != nil { 119 | return m.TxId 120 | } 121 | return "" 122 | } 123 | 124 | func (m *KeyModification) GetValue() []byte { 125 | if m != nil { 126 | return m.Value 127 | } 128 | return nil 129 | } 130 | 131 | func (m *KeyModification) GetTimestamp() *timestamppb.Timestamp { 132 | if m != nil { 133 | return m.Timestamp 134 | } 135 | return nil 136 | } 137 | 138 | func (m *KeyModification) GetIsDelete() bool { 139 | if m != nil { 140 | return m.IsDelete 141 | } 142 | return false 143 | } 144 | 145 | func init() { 146 | proto.RegisterType((*KV)(nil), "queryresult.KV") 147 | proto.RegisterType((*KeyModification)(nil), "queryresult.KeyModification") 148 | } 149 | 150 | func init() { 151 | proto.RegisterFile("ledger/queryresult/kv_query_result.proto", fileDescriptor_f8ee2fe66594a8f2) 152 | } 153 | 154 | var fileDescriptor_f8ee2fe66594a8f2 = []byte{ 155 | // 290 bytes of a gzipped FileDescriptorProto 156 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x4f, 0x4b, 0xc3, 0x30, 157 | 0x18, 0xc6, 0xe9, 0xfe, 0xc8, 0x9a, 0x09, 0x4a, 0xf4, 0x50, 0xa6, 0x60, 0xd9, 0xa9, 0x97, 0x25, 158 | 0xa2, 0x17, 0xf1, 0x28, 0x5e, 0x74, 0x78, 0x29, 0xe2, 0xc1, 0x4b, 0x49, 0xdb, 0xb7, 0x59, 0x58, 159 | 0xdb, 0xd4, 0x24, 0x1d, 0xeb, 0xe7, 0xf0, 0x0b, 0x8b, 0xc9, 0x66, 0x0b, 0xde, 0xf2, 0xbc, 0xef, 160 | 0xf3, 0x7b, 0x78, 0x78, 0x83, 0xa2, 0x12, 0x72, 0x0e, 0x8a, 0x7e, 0xb5, 0xa0, 0x3a, 0x05, 0xba, 161 | 0x2d, 0x0d, 0xdd, 0xee, 0x12, 0x2b, 0x13, 0xa7, 0x49, 0xa3, 0xa4, 0x91, 0x78, 0x3e, 0xb0, 0x2c, 162 | 0x6e, 0xb8, 0x94, 0xbc, 0x04, 0x6a, 0x57, 0x69, 0x5b, 0x50, 0x23, 0x2a, 0xd0, 0x86, 0x55, 0x8d, 163 | 0x73, 0x2f, 0x5f, 0xd1, 0x68, 0xfd, 0x81, 0xaf, 0x91, 0x5f, 0xb3, 0x0a, 0x74, 0xc3, 0x32, 0x08, 164 | 0xbc, 0xd0, 0x8b, 0xfc, 0xb8, 0x1f, 0xe0, 0x73, 0x34, 0xde, 0x42, 0x17, 0x8c, 0xec, 0xfc, 0xf7, 165 | 0x89, 0x2f, 0xd1, 0x74, 0xc7, 0xca, 0x16, 0x82, 0x71, 0xe8, 0x45, 0xa7, 0xb1, 0x13, 0xcb, 0x6f, 166 | 0x0f, 0x9d, 0xad, 0xa1, 0x7b, 0x93, 0xb9, 0x28, 0x44, 0xc6, 0x8c, 0x90, 0x35, 0xbe, 0x40, 0x53, 167 | 0xb3, 0x4f, 0x44, 0x7e, 0x48, 0x9d, 0x98, 0xfd, 0x4b, 0xde, 0xe3, 0xa3, 0x01, 0x8e, 0x1f, 0x90, 168 | 0xff, 0xd7, 0xce, 0x06, 0xcf, 0xef, 0x16, 0xc4, 0xf5, 0x27, 0xc7, 0xfe, 0xe4, 0xfd, 0xe8, 0x88, 169 | 0x7b, 0x33, 0xbe, 0x42, 0xbe, 0xd0, 0x49, 0x0e, 0x25, 0x18, 0x08, 0x26, 0xa1, 0x17, 0xcd, 0xe2, 170 | 0x99, 0xd0, 0xcf, 0x56, 0x3f, 0xd5, 0xe8, 0x56, 0x2a, 0x4e, 0x36, 0x5d, 0x03, 0xca, 0x1d, 0x91, 171 | 0x14, 0x2c, 0x55, 0x22, 0x73, 0xa1, 0x9a, 0x1c, 0x86, 0x83, 0xb3, 0x7d, 0x3e, 0x72, 0x61, 0x36, 172 | 0x6d, 0x4a, 0x32, 0x59, 0xd1, 0x01, 0x48, 0x1d, 0xb8, 0x72, 0xe0, 0x8a, 0x4b, 0xfa, 0xff, 0x57, 173 | 0xd2, 0x13, 0xbb, 0xbd, 0xff, 0x09, 0x00, 0x00, 0xff, 0xff, 0x07, 0x6d, 0xd7, 0x47, 0xb2, 0x01, 174 | 0x00, 0x00, 175 | } 176 | -------------------------------------------------------------------------------- /ledger/rwset/rwset.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: ledger/rwset/rwset.proto 3 | 4 | package rwset 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | type TxReadWriteSet_DataModel int32 24 | 25 | const ( 26 | TxReadWriteSet_KV TxReadWriteSet_DataModel = 0 27 | ) 28 | 29 | var TxReadWriteSet_DataModel_name = map[int32]string{ 30 | 0: "KV", 31 | } 32 | 33 | var TxReadWriteSet_DataModel_value = map[string]int32{ 34 | "KV": 0, 35 | } 36 | 37 | func (x TxReadWriteSet_DataModel) String() string { 38 | return proto.EnumName(TxReadWriteSet_DataModel_name, int32(x)) 39 | } 40 | 41 | func (TxReadWriteSet_DataModel) EnumDescriptor() ([]byte, []int) { 42 | return fileDescriptor_794d00b812408f20, []int{0, 0} 43 | } 44 | 45 | // TxReadWriteSet encapsulates a read-write set for a transaction 46 | // DataModel specifies the enum value of the data model 47 | // ns_rwset field specifies a list of chaincode specific read-write set (one for each chaincode) 48 | type TxReadWriteSet struct { 49 | DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,proto3,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"` 50 | NsRwset []*NsReadWriteSet `protobuf:"bytes,2,rep,name=ns_rwset,json=nsRwset,proto3" json:"ns_rwset,omitempty"` 51 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 52 | XXX_unrecognized []byte `json:"-"` 53 | XXX_sizecache int32 `json:"-"` 54 | } 55 | 56 | func (m *TxReadWriteSet) Reset() { *m = TxReadWriteSet{} } 57 | func (m *TxReadWriteSet) String() string { return proto.CompactTextString(m) } 58 | func (*TxReadWriteSet) ProtoMessage() {} 59 | func (*TxReadWriteSet) Descriptor() ([]byte, []int) { 60 | return fileDescriptor_794d00b812408f20, []int{0} 61 | } 62 | 63 | func (m *TxReadWriteSet) XXX_Unmarshal(b []byte) error { 64 | return xxx_messageInfo_TxReadWriteSet.Unmarshal(m, b) 65 | } 66 | func (m *TxReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 67 | return xxx_messageInfo_TxReadWriteSet.Marshal(b, m, deterministic) 68 | } 69 | func (m *TxReadWriteSet) XXX_Merge(src proto.Message) { 70 | xxx_messageInfo_TxReadWriteSet.Merge(m, src) 71 | } 72 | func (m *TxReadWriteSet) XXX_Size() int { 73 | return xxx_messageInfo_TxReadWriteSet.Size(m) 74 | } 75 | func (m *TxReadWriteSet) XXX_DiscardUnknown() { 76 | xxx_messageInfo_TxReadWriteSet.DiscardUnknown(m) 77 | } 78 | 79 | var xxx_messageInfo_TxReadWriteSet proto.InternalMessageInfo 80 | 81 | func (m *TxReadWriteSet) GetDataModel() TxReadWriteSet_DataModel { 82 | if m != nil { 83 | return m.DataModel 84 | } 85 | return TxReadWriteSet_KV 86 | } 87 | 88 | func (m *TxReadWriteSet) GetNsRwset() []*NsReadWriteSet { 89 | if m != nil { 90 | return m.NsRwset 91 | } 92 | return nil 93 | } 94 | 95 | // NsReadWriteSet encapsulates the read-write set for a chaincode 96 | type NsReadWriteSet struct { 97 | Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 98 | Rwset []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"` 99 | CollectionHashedRwset []*CollectionHashedReadWriteSet `protobuf:"bytes,3,rep,name=collection_hashed_rwset,json=collectionHashedRwset,proto3" json:"collection_hashed_rwset,omitempty"` 100 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 101 | XXX_unrecognized []byte `json:"-"` 102 | XXX_sizecache int32 `json:"-"` 103 | } 104 | 105 | func (m *NsReadWriteSet) Reset() { *m = NsReadWriteSet{} } 106 | func (m *NsReadWriteSet) String() string { return proto.CompactTextString(m) } 107 | func (*NsReadWriteSet) ProtoMessage() {} 108 | func (*NsReadWriteSet) Descriptor() ([]byte, []int) { 109 | return fileDescriptor_794d00b812408f20, []int{1} 110 | } 111 | 112 | func (m *NsReadWriteSet) XXX_Unmarshal(b []byte) error { 113 | return xxx_messageInfo_NsReadWriteSet.Unmarshal(m, b) 114 | } 115 | func (m *NsReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 116 | return xxx_messageInfo_NsReadWriteSet.Marshal(b, m, deterministic) 117 | } 118 | func (m *NsReadWriteSet) XXX_Merge(src proto.Message) { 119 | xxx_messageInfo_NsReadWriteSet.Merge(m, src) 120 | } 121 | func (m *NsReadWriteSet) XXX_Size() int { 122 | return xxx_messageInfo_NsReadWriteSet.Size(m) 123 | } 124 | func (m *NsReadWriteSet) XXX_DiscardUnknown() { 125 | xxx_messageInfo_NsReadWriteSet.DiscardUnknown(m) 126 | } 127 | 128 | var xxx_messageInfo_NsReadWriteSet proto.InternalMessageInfo 129 | 130 | func (m *NsReadWriteSet) GetNamespace() string { 131 | if m != nil { 132 | return m.Namespace 133 | } 134 | return "" 135 | } 136 | 137 | func (m *NsReadWriteSet) GetRwset() []byte { 138 | if m != nil { 139 | return m.Rwset 140 | } 141 | return nil 142 | } 143 | 144 | func (m *NsReadWriteSet) GetCollectionHashedRwset() []*CollectionHashedReadWriteSet { 145 | if m != nil { 146 | return m.CollectionHashedRwset 147 | } 148 | return nil 149 | } 150 | 151 | // CollectionHashedReadWriteSet encapsulate the hashed representation for the private read-write set for a collection 152 | type CollectionHashedReadWriteSet struct { 153 | CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` 154 | HashedRwset []byte `protobuf:"bytes,2,opt,name=hashed_rwset,json=hashedRwset,proto3" json:"hashed_rwset,omitempty"` 155 | PvtRwsetHash []byte `protobuf:"bytes,3,opt,name=pvt_rwset_hash,json=pvtRwsetHash,proto3" json:"pvt_rwset_hash,omitempty"` 156 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 157 | XXX_unrecognized []byte `json:"-"` 158 | XXX_sizecache int32 `json:"-"` 159 | } 160 | 161 | func (m *CollectionHashedReadWriteSet) Reset() { *m = CollectionHashedReadWriteSet{} } 162 | func (m *CollectionHashedReadWriteSet) String() string { return proto.CompactTextString(m) } 163 | func (*CollectionHashedReadWriteSet) ProtoMessage() {} 164 | func (*CollectionHashedReadWriteSet) Descriptor() ([]byte, []int) { 165 | return fileDescriptor_794d00b812408f20, []int{2} 166 | } 167 | 168 | func (m *CollectionHashedReadWriteSet) XXX_Unmarshal(b []byte) error { 169 | return xxx_messageInfo_CollectionHashedReadWriteSet.Unmarshal(m, b) 170 | } 171 | func (m *CollectionHashedReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 172 | return xxx_messageInfo_CollectionHashedReadWriteSet.Marshal(b, m, deterministic) 173 | } 174 | func (m *CollectionHashedReadWriteSet) XXX_Merge(src proto.Message) { 175 | xxx_messageInfo_CollectionHashedReadWriteSet.Merge(m, src) 176 | } 177 | func (m *CollectionHashedReadWriteSet) XXX_Size() int { 178 | return xxx_messageInfo_CollectionHashedReadWriteSet.Size(m) 179 | } 180 | func (m *CollectionHashedReadWriteSet) XXX_DiscardUnknown() { 181 | xxx_messageInfo_CollectionHashedReadWriteSet.DiscardUnknown(m) 182 | } 183 | 184 | var xxx_messageInfo_CollectionHashedReadWriteSet proto.InternalMessageInfo 185 | 186 | func (m *CollectionHashedReadWriteSet) GetCollectionName() string { 187 | if m != nil { 188 | return m.CollectionName 189 | } 190 | return "" 191 | } 192 | 193 | func (m *CollectionHashedReadWriteSet) GetHashedRwset() []byte { 194 | if m != nil { 195 | return m.HashedRwset 196 | } 197 | return nil 198 | } 199 | 200 | func (m *CollectionHashedReadWriteSet) GetPvtRwsetHash() []byte { 201 | if m != nil { 202 | return m.PvtRwsetHash 203 | } 204 | return nil 205 | } 206 | 207 | // TxPvtReadWriteSet encapsulate the private read-write set for a transaction 208 | type TxPvtReadWriteSet struct { 209 | DataModel TxReadWriteSet_DataModel `protobuf:"varint,1,opt,name=data_model,json=dataModel,proto3,enum=rwset.TxReadWriteSet_DataModel" json:"data_model,omitempty"` 210 | NsPvtRwset []*NsPvtReadWriteSet `protobuf:"bytes,2,rep,name=ns_pvt_rwset,json=nsPvtRwset,proto3" json:"ns_pvt_rwset,omitempty"` 211 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 212 | XXX_unrecognized []byte `json:"-"` 213 | XXX_sizecache int32 `json:"-"` 214 | } 215 | 216 | func (m *TxPvtReadWriteSet) Reset() { *m = TxPvtReadWriteSet{} } 217 | func (m *TxPvtReadWriteSet) String() string { return proto.CompactTextString(m) } 218 | func (*TxPvtReadWriteSet) ProtoMessage() {} 219 | func (*TxPvtReadWriteSet) Descriptor() ([]byte, []int) { 220 | return fileDescriptor_794d00b812408f20, []int{3} 221 | } 222 | 223 | func (m *TxPvtReadWriteSet) XXX_Unmarshal(b []byte) error { 224 | return xxx_messageInfo_TxPvtReadWriteSet.Unmarshal(m, b) 225 | } 226 | func (m *TxPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 227 | return xxx_messageInfo_TxPvtReadWriteSet.Marshal(b, m, deterministic) 228 | } 229 | func (m *TxPvtReadWriteSet) XXX_Merge(src proto.Message) { 230 | xxx_messageInfo_TxPvtReadWriteSet.Merge(m, src) 231 | } 232 | func (m *TxPvtReadWriteSet) XXX_Size() int { 233 | return xxx_messageInfo_TxPvtReadWriteSet.Size(m) 234 | } 235 | func (m *TxPvtReadWriteSet) XXX_DiscardUnknown() { 236 | xxx_messageInfo_TxPvtReadWriteSet.DiscardUnknown(m) 237 | } 238 | 239 | var xxx_messageInfo_TxPvtReadWriteSet proto.InternalMessageInfo 240 | 241 | func (m *TxPvtReadWriteSet) GetDataModel() TxReadWriteSet_DataModel { 242 | if m != nil { 243 | return m.DataModel 244 | } 245 | return TxReadWriteSet_KV 246 | } 247 | 248 | func (m *TxPvtReadWriteSet) GetNsPvtRwset() []*NsPvtReadWriteSet { 249 | if m != nil { 250 | return m.NsPvtRwset 251 | } 252 | return nil 253 | } 254 | 255 | // NsPvtReadWriteSet encapsulates the private read-write set for a chaincode 256 | type NsPvtReadWriteSet struct { 257 | Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` 258 | CollectionPvtRwset []*CollectionPvtReadWriteSet `protobuf:"bytes,2,rep,name=collection_pvt_rwset,json=collectionPvtRwset,proto3" json:"collection_pvt_rwset,omitempty"` 259 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 260 | XXX_unrecognized []byte `json:"-"` 261 | XXX_sizecache int32 `json:"-"` 262 | } 263 | 264 | func (m *NsPvtReadWriteSet) Reset() { *m = NsPvtReadWriteSet{} } 265 | func (m *NsPvtReadWriteSet) String() string { return proto.CompactTextString(m) } 266 | func (*NsPvtReadWriteSet) ProtoMessage() {} 267 | func (*NsPvtReadWriteSet) Descriptor() ([]byte, []int) { 268 | return fileDescriptor_794d00b812408f20, []int{4} 269 | } 270 | 271 | func (m *NsPvtReadWriteSet) XXX_Unmarshal(b []byte) error { 272 | return xxx_messageInfo_NsPvtReadWriteSet.Unmarshal(m, b) 273 | } 274 | func (m *NsPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 275 | return xxx_messageInfo_NsPvtReadWriteSet.Marshal(b, m, deterministic) 276 | } 277 | func (m *NsPvtReadWriteSet) XXX_Merge(src proto.Message) { 278 | xxx_messageInfo_NsPvtReadWriteSet.Merge(m, src) 279 | } 280 | func (m *NsPvtReadWriteSet) XXX_Size() int { 281 | return xxx_messageInfo_NsPvtReadWriteSet.Size(m) 282 | } 283 | func (m *NsPvtReadWriteSet) XXX_DiscardUnknown() { 284 | xxx_messageInfo_NsPvtReadWriteSet.DiscardUnknown(m) 285 | } 286 | 287 | var xxx_messageInfo_NsPvtReadWriteSet proto.InternalMessageInfo 288 | 289 | func (m *NsPvtReadWriteSet) GetNamespace() string { 290 | if m != nil { 291 | return m.Namespace 292 | } 293 | return "" 294 | } 295 | 296 | func (m *NsPvtReadWriteSet) GetCollectionPvtRwset() []*CollectionPvtReadWriteSet { 297 | if m != nil { 298 | return m.CollectionPvtRwset 299 | } 300 | return nil 301 | } 302 | 303 | // CollectionPvtReadWriteSet encapsulates the private read-write set for a collection 304 | type CollectionPvtReadWriteSet struct { 305 | CollectionName string `protobuf:"bytes,1,opt,name=collection_name,json=collectionName,proto3" json:"collection_name,omitempty"` 306 | Rwset []byte `protobuf:"bytes,2,opt,name=rwset,proto3" json:"rwset,omitempty"` 307 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 308 | XXX_unrecognized []byte `json:"-"` 309 | XXX_sizecache int32 `json:"-"` 310 | } 311 | 312 | func (m *CollectionPvtReadWriteSet) Reset() { *m = CollectionPvtReadWriteSet{} } 313 | func (m *CollectionPvtReadWriteSet) String() string { return proto.CompactTextString(m) } 314 | func (*CollectionPvtReadWriteSet) ProtoMessage() {} 315 | func (*CollectionPvtReadWriteSet) Descriptor() ([]byte, []int) { 316 | return fileDescriptor_794d00b812408f20, []int{5} 317 | } 318 | 319 | func (m *CollectionPvtReadWriteSet) XXX_Unmarshal(b []byte) error { 320 | return xxx_messageInfo_CollectionPvtReadWriteSet.Unmarshal(m, b) 321 | } 322 | func (m *CollectionPvtReadWriteSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 323 | return xxx_messageInfo_CollectionPvtReadWriteSet.Marshal(b, m, deterministic) 324 | } 325 | func (m *CollectionPvtReadWriteSet) XXX_Merge(src proto.Message) { 326 | xxx_messageInfo_CollectionPvtReadWriteSet.Merge(m, src) 327 | } 328 | func (m *CollectionPvtReadWriteSet) XXX_Size() int { 329 | return xxx_messageInfo_CollectionPvtReadWriteSet.Size(m) 330 | } 331 | func (m *CollectionPvtReadWriteSet) XXX_DiscardUnknown() { 332 | xxx_messageInfo_CollectionPvtReadWriteSet.DiscardUnknown(m) 333 | } 334 | 335 | var xxx_messageInfo_CollectionPvtReadWriteSet proto.InternalMessageInfo 336 | 337 | func (m *CollectionPvtReadWriteSet) GetCollectionName() string { 338 | if m != nil { 339 | return m.CollectionName 340 | } 341 | return "" 342 | } 343 | 344 | func (m *CollectionPvtReadWriteSet) GetRwset() []byte { 345 | if m != nil { 346 | return m.Rwset 347 | } 348 | return nil 349 | } 350 | 351 | func init() { 352 | proto.RegisterEnum("rwset.TxReadWriteSet_DataModel", TxReadWriteSet_DataModel_name, TxReadWriteSet_DataModel_value) 353 | proto.RegisterType((*TxReadWriteSet)(nil), "rwset.TxReadWriteSet") 354 | proto.RegisterType((*NsReadWriteSet)(nil), "rwset.NsReadWriteSet") 355 | proto.RegisterType((*CollectionHashedReadWriteSet)(nil), "rwset.CollectionHashedReadWriteSet") 356 | proto.RegisterType((*TxPvtReadWriteSet)(nil), "rwset.TxPvtReadWriteSet") 357 | proto.RegisterType((*NsPvtReadWriteSet)(nil), "rwset.NsPvtReadWriteSet") 358 | proto.RegisterType((*CollectionPvtReadWriteSet)(nil), "rwset.CollectionPvtReadWriteSet") 359 | } 360 | 361 | func init() { proto.RegisterFile("ledger/rwset/rwset.proto", fileDescriptor_794d00b812408f20) } 362 | 363 | var fileDescriptor_794d00b812408f20 = []byte{ 364 | // 421 bytes of a gzipped FileDescriptorProto 365 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcf, 0xef, 0x93, 0x30, 366 | 0x18, 0xc6, 0xed, 0x77, 0xd9, 0x94, 0x77, 0x04, 0x5d, 0xdd, 0x22, 0x26, 0x4b, 0x9c, 0xd3, 0xc4, 367 | 0xc5, 0x64, 0x60, 0xa6, 0x27, 0x0f, 0x1e, 0xd4, 0x83, 0x89, 0x71, 0x31, 0x75, 0xd1, 0x64, 0x1e, 368 | 0x48, 0x81, 0x0a, 0x24, 0x40, 0x09, 0xad, 0x73, 0xfe, 0x01, 0x9e, 0xf5, 0xe6, 0xd9, 0xff, 0xd4, 369 | 0xac, 0x65, 0x0c, 0x98, 0xbf, 0x0e, 0x5e, 0x08, 0x7d, 0xfb, 0x3c, 0x3c, 0x9f, 0xf6, 0xe5, 0x05, 370 | 0x3b, 0x65, 0x61, 0xc4, 0x4a, 0xb7, 0xfc, 0x24, 0x98, 0xd4, 0x4f, 0xa7, 0x28, 0xb9, 0xe4, 0xb8, 371 | 0xaf, 0x16, 0xf3, 0xef, 0x08, 0xac, 0xcd, 0x9e, 0x30, 0x1a, 0xbe, 0x2b, 0x13, 0xc9, 0xde, 0x30, 372 | 0x89, 0x9f, 0x00, 0x84, 0x54, 0x52, 0x2f, 0xe3, 0x21, 0x4b, 0x6d, 0x34, 0x43, 0x0b, 0x6b, 0x75, 373 | 0xcb, 0xd1, 0xde, 0xb6, 0xd4, 0x79, 0x4e, 0x25, 0x7d, 0x75, 0x90, 0x11, 0x23, 0x3c, 0xbe, 0xe2, 374 | 0x07, 0x70, 0x25, 0x17, 0x9e, 0xd2, 0xdb, 0x17, 0xb3, 0xde, 0x62, 0xb8, 0x9a, 0x54, 0xee, 0xb5, 375 | 0x68, 0xba, 0xc9, 0xe5, 0x5c, 0x10, 0x05, 0x71, 0x1d, 0x8c, 0xfa, 0x4b, 0x78, 0x00, 0x17, 0x2f, 376 | 0xdf, 0x5e, 0xbb, 0x34, 0xff, 0x81, 0xc0, 0x6a, 0x1b, 0xf0, 0x14, 0x8c, 0x9c, 0x66, 0x4c, 0x14, 377 | 0x34, 0x60, 0x0a, 0xcc, 0x20, 0xa7, 0x02, 0x1e, 0x43, 0xff, 0x18, 0x8a, 0x16, 0x26, 0xd1, 0x0b, 378 | 0xfc, 0x1e, 0x6e, 0x04, 0x3c, 0x4d, 0x59, 0x20, 0x13, 0x9e, 0x7b, 0x31, 0x15, 0x31, 0x0b, 0x2b, 379 | 0xb8, 0x9e, 0x82, 0xbb, 0x53, 0xc1, 0x3d, 0xab, 0x55, 0x2f, 0x94, 0xa8, 0x85, 0x3a, 0x09, 0xba, 380 | 0xbb, 0x0a, 0xfc, 0x1b, 0x82, 0xe9, 0x9f, 0x7c, 0xf8, 0x1e, 0x5c, 0x6d, 0xa4, 0x1f, 0x58, 0x2b, 381 | 0x6e, 0xeb, 0x54, 0x5e, 0xd3, 0x8c, 0xe1, 0xdb, 0x60, 0xb6, 0xd8, 0xf4, 0x19, 0x86, 0xf1, 0x29, 382 | 0x0c, 0xdf, 0x05, 0xab, 0xd8, 0x49, 0xbd, 0xaf, 0x0e, 0x62, 0xf7, 0x94, 0xc8, 0x2c, 0x76, 0x52, 383 | 0x29, 0x0e, 0xf9, 0xf3, 0xaf, 0x08, 0x46, 0x9b, 0xfd, 0xeb, 0x9d, 0xfc, 0xaf, 0x3d, 0x7d, 0x0c, 384 | 0x66, 0x2e, 0xbc, 0x3a, 0xbe, 0xea, 0xab, 0x5d, 0xf7, 0xb5, 0x93, 0x47, 0x20, 0x57, 0x25, 0x75, 385 | 0x49, 0x5f, 0x10, 0x8c, 0xce, 0x14, 0x7f, 0xe9, 0x25, 0x81, 0x71, 0xe3, 0xde, 0xba, 0xb9, 0xb3, 386 | 0xb3, 0x96, 0x75, 0xf3, 0x71, 0xd0, 0xda, 0x52, 0x1c, 0x5b, 0xb8, 0xf9, 0x5b, 0xc3, 0xbf, 0x37, 387 | 0xea, 0x97, 0x7f, 0xd9, 0x53, 0x1f, 0xee, 0xf3, 0x32, 0x72, 0xe2, 0xcf, 0x05, 0x2b, 0xf5, 0xc8, 388 | 0x39, 0x1f, 0xa8, 0x5f, 0x26, 0x81, 0x9e, 0x36, 0xe1, 0x54, 0x45, 0xa5, 0xde, 0x3e, 0x8a, 0x12, 389 | 0x19, 0x7f, 0xf4, 0x9d, 0x80, 0x67, 0x6e, 0xc3, 0xe2, 0x6a, 0xcb, 0x52, 0x5b, 0x96, 0x11, 0x77, 390 | 0x9b, 0xd3, 0xeb, 0x0f, 0x54, 0xfd, 0xe1, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x47, 0x32, 0x8f, 391 | 0x91, 0xd4, 0x03, 0x00, 0x00, 392 | } 393 | -------------------------------------------------------------------------------- /msp/identities.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: msp/identities.proto 3 | 4 | package msp 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // This struct represents an Identity 24 | // (with its MSP identifier) to be used 25 | // to serialize it and deserialize it 26 | type SerializedIdentity struct { 27 | // The identifier of the associated membership service provider 28 | Mspid string `protobuf:"bytes,1,opt,name=mspid,proto3" json:"mspid,omitempty"` 29 | // the Identity, serialized according to the rules of its MPS 30 | IdBytes []byte `protobuf:"bytes,2,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"` 31 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 32 | XXX_unrecognized []byte `json:"-"` 33 | XXX_sizecache int32 `json:"-"` 34 | } 35 | 36 | func (m *SerializedIdentity) Reset() { *m = SerializedIdentity{} } 37 | func (m *SerializedIdentity) String() string { return proto.CompactTextString(m) } 38 | func (*SerializedIdentity) ProtoMessage() {} 39 | func (*SerializedIdentity) Descriptor() ([]byte, []int) { 40 | return fileDescriptor_872f7fc14bf2c238, []int{0} 41 | } 42 | 43 | func (m *SerializedIdentity) XXX_Unmarshal(b []byte) error { 44 | return xxx_messageInfo_SerializedIdentity.Unmarshal(m, b) 45 | } 46 | func (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 | return xxx_messageInfo_SerializedIdentity.Marshal(b, m, deterministic) 48 | } 49 | func (m *SerializedIdentity) XXX_Merge(src proto.Message) { 50 | xxx_messageInfo_SerializedIdentity.Merge(m, src) 51 | } 52 | func (m *SerializedIdentity) XXX_Size() int { 53 | return xxx_messageInfo_SerializedIdentity.Size(m) 54 | } 55 | func (m *SerializedIdentity) XXX_DiscardUnknown() { 56 | xxx_messageInfo_SerializedIdentity.DiscardUnknown(m) 57 | } 58 | 59 | var xxx_messageInfo_SerializedIdentity proto.InternalMessageInfo 60 | 61 | func (m *SerializedIdentity) GetMspid() string { 62 | if m != nil { 63 | return m.Mspid 64 | } 65 | return "" 66 | } 67 | 68 | func (m *SerializedIdentity) GetIdBytes() []byte { 69 | if m != nil { 70 | return m.IdBytes 71 | } 72 | return nil 73 | } 74 | 75 | // This struct represents an Idemix Identity 76 | // to be used to serialize it and deserialize it. 77 | // The IdemixMSP will first serialize an idemix identity to bytes using 78 | // this proto, and then uses these bytes as id_bytes in SerializedIdentity 79 | type SerializedIdemixIdentity struct { 80 | // nym_x is the X-component of the pseudonym elliptic curve point. 81 | // It is a []byte representation of an amcl.BIG 82 | // The pseudonym can be seen as a public key of the identity, it is used to verify signatures. 83 | NymX []byte `protobuf:"bytes,1,opt,name=nym_x,json=nymX,proto3" json:"nym_x,omitempty"` 84 | // nym_y is the Y-component of the pseudonym elliptic curve point. 85 | // It is a []byte representation of an amcl.BIG 86 | // The pseudonym can be seen as a public key of the identity, it is used to verify signatures. 87 | NymY []byte `protobuf:"bytes,2,opt,name=nym_y,json=nymY,proto3" json:"nym_y,omitempty"` 88 | // ou contains the organizational unit of the idemix identity 89 | Ou []byte `protobuf:"bytes,3,opt,name=ou,proto3" json:"ou,omitempty"` 90 | // role contains the role of this identity (e.g., ADMIN or MEMBER) 91 | Role []byte `protobuf:"bytes,4,opt,name=role,proto3" json:"role,omitempty"` 92 | // proof contains the cryptographic evidence that this identity is valid 93 | Proof []byte `protobuf:"bytes,5,opt,name=proof,proto3" json:"proof,omitempty"` 94 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 95 | XXX_unrecognized []byte `json:"-"` 96 | XXX_sizecache int32 `json:"-"` 97 | } 98 | 99 | func (m *SerializedIdemixIdentity) Reset() { *m = SerializedIdemixIdentity{} } 100 | func (m *SerializedIdemixIdentity) String() string { return proto.CompactTextString(m) } 101 | func (*SerializedIdemixIdentity) ProtoMessage() {} 102 | func (*SerializedIdemixIdentity) Descriptor() ([]byte, []int) { 103 | return fileDescriptor_872f7fc14bf2c238, []int{1} 104 | } 105 | 106 | func (m *SerializedIdemixIdentity) XXX_Unmarshal(b []byte) error { 107 | return xxx_messageInfo_SerializedIdemixIdentity.Unmarshal(m, b) 108 | } 109 | func (m *SerializedIdemixIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 110 | return xxx_messageInfo_SerializedIdemixIdentity.Marshal(b, m, deterministic) 111 | } 112 | func (m *SerializedIdemixIdentity) XXX_Merge(src proto.Message) { 113 | xxx_messageInfo_SerializedIdemixIdentity.Merge(m, src) 114 | } 115 | func (m *SerializedIdemixIdentity) XXX_Size() int { 116 | return xxx_messageInfo_SerializedIdemixIdentity.Size(m) 117 | } 118 | func (m *SerializedIdemixIdentity) XXX_DiscardUnknown() { 119 | xxx_messageInfo_SerializedIdemixIdentity.DiscardUnknown(m) 120 | } 121 | 122 | var xxx_messageInfo_SerializedIdemixIdentity proto.InternalMessageInfo 123 | 124 | func (m *SerializedIdemixIdentity) GetNymX() []byte { 125 | if m != nil { 126 | return m.NymX 127 | } 128 | return nil 129 | } 130 | 131 | func (m *SerializedIdemixIdentity) GetNymY() []byte { 132 | if m != nil { 133 | return m.NymY 134 | } 135 | return nil 136 | } 137 | 138 | func (m *SerializedIdemixIdentity) GetOu() []byte { 139 | if m != nil { 140 | return m.Ou 141 | } 142 | return nil 143 | } 144 | 145 | func (m *SerializedIdemixIdentity) GetRole() []byte { 146 | if m != nil { 147 | return m.Role 148 | } 149 | return nil 150 | } 151 | 152 | func (m *SerializedIdemixIdentity) GetProof() []byte { 153 | if m != nil { 154 | return m.Proof 155 | } 156 | return nil 157 | } 158 | 159 | func init() { 160 | proto.RegisterType((*SerializedIdentity)(nil), "msp.SerializedIdentity") 161 | proto.RegisterType((*SerializedIdemixIdentity)(nil), "msp.SerializedIdemixIdentity") 162 | } 163 | 164 | func init() { proto.RegisterFile("msp/identities.proto", fileDescriptor_872f7fc14bf2c238) } 165 | 166 | var fileDescriptor_872f7fc14bf2c238 = []byte{ 167 | // 243 bytes of a gzipped FileDescriptorProto 168 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x31, 0x4f, 0xfb, 0x30, 169 | 0x10, 0x47, 0x95, 0x34, 0xf9, 0xff, 0xc1, 0xaa, 0x18, 0x4c, 0x07, 0xb3, 0x95, 0x4e, 0x95, 0x50, 170 | 0x9d, 0x81, 0x6f, 0x50, 0x89, 0x81, 0x0d, 0x85, 0x05, 0x58, 0xaa, 0xa6, 0xbe, 0xa6, 0x27, 0xe5, 171 | 0x72, 0x96, 0xed, 0x48, 0x35, 0x03, 0x9f, 0x1d, 0x25, 0x06, 0x04, 0x9b, 0x7f, 0x4f, 0x4f, 0x4f, 172 | 0x3e, 0xb1, 0x20, 0x6f, 0x2b, 0x34, 0xd0, 0x07, 0x0c, 0x08, 0x5e, 0x5b, 0xc7, 0x81, 0xe5, 0x8c, 173 | 0xbc, 0x5d, 0x3d, 0x08, 0xf9, 0x0c, 0x0e, 0xf7, 0x1d, 0xbe, 0x83, 0x79, 0x4c, 0x4a, 0x94, 0x0b, 174 | 0x51, 0x92, 0xb7, 0x68, 0x54, 0xb6, 0xcc, 0xd6, 0x97, 0x75, 0x1a, 0xf2, 0x46, 0x5c, 0xa0, 0xd9, 175 | 0x35, 0x31, 0x80, 0x57, 0xf9, 0x32, 0x5b, 0xcf, 0xeb, 0xff, 0x68, 0xb6, 0xe3, 0x5c, 0x7d, 0x08, 176 | 0xf5, 0x27, 0x43, 0x78, 0xfe, 0x89, 0x5d, 0x8b, 0xb2, 0x8f, 0xb4, 0x3b, 0x4f, 0xb1, 0x79, 0x5d, 177 | 0xf4, 0x91, 0x5e, 0xbe, 0x61, 0xfc, 0x0a, 0x8d, 0xf0, 0x55, 0x5e, 0x89, 0x9c, 0x07, 0x35, 0x9b, 178 | 0x48, 0xce, 0x83, 0x94, 0xa2, 0x70, 0xdc, 0x81, 0x2a, 0x92, 0x33, 0xbe, 0xc7, 0xaf, 0x59, 0xc7, 179 | 0x7c, 0x54, 0xe5, 0x04, 0xd3, 0xd8, 0x3e, 0x89, 0x5b, 0x76, 0xad, 0x3e, 0x45, 0x0b, 0xae, 0x03, 180 | 0xd3, 0x82, 0xd3, 0xc7, 0x7d, 0xe3, 0xf0, 0x90, 0x6e, 0xf5, 0x9a, 0xbc, 0x7d, 0xbb, 0x6b, 0x31, 181 | 0x9c, 0x86, 0x46, 0x1f, 0x98, 0xaa, 0x5f, 0x66, 0x95, 0xcc, 0x4d, 0x32, 0x37, 0x2d, 0x57, 0xe4, 182 | 0x6d, 0xf3, 0x6f, 0x9a, 0xf7, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2d, 0xf7, 0x41, 0xf7, 0x3c, 183 | 0x01, 0x00, 0x00, 184 | } 185 | -------------------------------------------------------------------------------- /orderer/configuration.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: orderer/configuration.proto 3 | 4 | package orderer 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // State defines the orderer mode of operation, typically for consensus-type migration. 24 | // NORMAL is during normal operation, when consensus-type migration is not, and can not, take place. 25 | // MAINTENANCE is when the consensus-type can be changed. 26 | type ConsensusType_State int32 27 | 28 | const ( 29 | ConsensusType_STATE_NORMAL ConsensusType_State = 0 30 | ConsensusType_STATE_MAINTENANCE ConsensusType_State = 1 31 | ) 32 | 33 | var ConsensusType_State_name = map[int32]string{ 34 | 0: "STATE_NORMAL", 35 | 1: "STATE_MAINTENANCE", 36 | } 37 | 38 | var ConsensusType_State_value = map[string]int32{ 39 | "STATE_NORMAL": 0, 40 | "STATE_MAINTENANCE": 1, 41 | } 42 | 43 | func (x ConsensusType_State) String() string { 44 | return proto.EnumName(ConsensusType_State_name, int32(x)) 45 | } 46 | 47 | func (ConsensusType_State) EnumDescriptor() ([]byte, []int) { 48 | return fileDescriptor_bcce68f21316dd30, []int{0, 0} 49 | } 50 | 51 | type ConsensusType struct { 52 | // The consensus type: "solo" or "etcdraft". 53 | Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` 54 | // Opaque metadata, dependent on the consensus type. 55 | Metadata []byte `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` 56 | // The state signals the ordering service to go into maintenance mode, typically for consensus-type migration. 57 | State ConsensusType_State `protobuf:"varint,3,opt,name=state,proto3,enum=orderer.ConsensusType_State" json:"state,omitempty"` 58 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 59 | XXX_unrecognized []byte `json:"-"` 60 | XXX_sizecache int32 `json:"-"` 61 | } 62 | 63 | func (m *ConsensusType) Reset() { *m = ConsensusType{} } 64 | func (m *ConsensusType) String() string { return proto.CompactTextString(m) } 65 | func (*ConsensusType) ProtoMessage() {} 66 | func (*ConsensusType) Descriptor() ([]byte, []int) { 67 | return fileDescriptor_bcce68f21316dd30, []int{0} 68 | } 69 | 70 | func (m *ConsensusType) XXX_Unmarshal(b []byte) error { 71 | return xxx_messageInfo_ConsensusType.Unmarshal(m, b) 72 | } 73 | func (m *ConsensusType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 74 | return xxx_messageInfo_ConsensusType.Marshal(b, m, deterministic) 75 | } 76 | func (m *ConsensusType) XXX_Merge(src proto.Message) { 77 | xxx_messageInfo_ConsensusType.Merge(m, src) 78 | } 79 | func (m *ConsensusType) XXX_Size() int { 80 | return xxx_messageInfo_ConsensusType.Size(m) 81 | } 82 | func (m *ConsensusType) XXX_DiscardUnknown() { 83 | xxx_messageInfo_ConsensusType.DiscardUnknown(m) 84 | } 85 | 86 | var xxx_messageInfo_ConsensusType proto.InternalMessageInfo 87 | 88 | func (m *ConsensusType) GetType() string { 89 | if m != nil { 90 | return m.Type 91 | } 92 | return "" 93 | } 94 | 95 | func (m *ConsensusType) GetMetadata() []byte { 96 | if m != nil { 97 | return m.Metadata 98 | } 99 | return nil 100 | } 101 | 102 | func (m *ConsensusType) GetState() ConsensusType_State { 103 | if m != nil { 104 | return m.State 105 | } 106 | return ConsensusType_STATE_NORMAL 107 | } 108 | 109 | type BatchSize struct { 110 | // Simply specified as number of messages for now, in the future 111 | // we may want to allow this to be specified by size in bytes 112 | MaxMessageCount uint32 `protobuf:"varint,1,opt,name=max_message_count,json=maxMessageCount,proto3" json:"max_message_count,omitempty"` 113 | // The byte count of the serialized messages in a batch cannot 114 | // exceed this value. 115 | AbsoluteMaxBytes uint32 `protobuf:"varint,2,opt,name=absolute_max_bytes,json=absoluteMaxBytes,proto3" json:"absolute_max_bytes,omitempty"` 116 | // The byte count of the serialized messages in a batch should not 117 | // exceed this value. 118 | PreferredMaxBytes uint32 `protobuf:"varint,3,opt,name=preferred_max_bytes,json=preferredMaxBytes,proto3" json:"preferred_max_bytes,omitempty"` 119 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 120 | XXX_unrecognized []byte `json:"-"` 121 | XXX_sizecache int32 `json:"-"` 122 | } 123 | 124 | func (m *BatchSize) Reset() { *m = BatchSize{} } 125 | func (m *BatchSize) String() string { return proto.CompactTextString(m) } 126 | func (*BatchSize) ProtoMessage() {} 127 | func (*BatchSize) Descriptor() ([]byte, []int) { 128 | return fileDescriptor_bcce68f21316dd30, []int{1} 129 | } 130 | 131 | func (m *BatchSize) XXX_Unmarshal(b []byte) error { 132 | return xxx_messageInfo_BatchSize.Unmarshal(m, b) 133 | } 134 | func (m *BatchSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 135 | return xxx_messageInfo_BatchSize.Marshal(b, m, deterministic) 136 | } 137 | func (m *BatchSize) XXX_Merge(src proto.Message) { 138 | xxx_messageInfo_BatchSize.Merge(m, src) 139 | } 140 | func (m *BatchSize) XXX_Size() int { 141 | return xxx_messageInfo_BatchSize.Size(m) 142 | } 143 | func (m *BatchSize) XXX_DiscardUnknown() { 144 | xxx_messageInfo_BatchSize.DiscardUnknown(m) 145 | } 146 | 147 | var xxx_messageInfo_BatchSize proto.InternalMessageInfo 148 | 149 | func (m *BatchSize) GetMaxMessageCount() uint32 { 150 | if m != nil { 151 | return m.MaxMessageCount 152 | } 153 | return 0 154 | } 155 | 156 | func (m *BatchSize) GetAbsoluteMaxBytes() uint32 { 157 | if m != nil { 158 | return m.AbsoluteMaxBytes 159 | } 160 | return 0 161 | } 162 | 163 | func (m *BatchSize) GetPreferredMaxBytes() uint32 { 164 | if m != nil { 165 | return m.PreferredMaxBytes 166 | } 167 | return 0 168 | } 169 | 170 | type BatchTimeout struct { 171 | // Any duration string parseable by ParseDuration(): 172 | // https://golang.org/pkg/time/#ParseDuration 173 | Timeout string `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"` 174 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 175 | XXX_unrecognized []byte `json:"-"` 176 | XXX_sizecache int32 `json:"-"` 177 | } 178 | 179 | func (m *BatchTimeout) Reset() { *m = BatchTimeout{} } 180 | func (m *BatchTimeout) String() string { return proto.CompactTextString(m) } 181 | func (*BatchTimeout) ProtoMessage() {} 182 | func (*BatchTimeout) Descriptor() ([]byte, []int) { 183 | return fileDescriptor_bcce68f21316dd30, []int{2} 184 | } 185 | 186 | func (m *BatchTimeout) XXX_Unmarshal(b []byte) error { 187 | return xxx_messageInfo_BatchTimeout.Unmarshal(m, b) 188 | } 189 | func (m *BatchTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 190 | return xxx_messageInfo_BatchTimeout.Marshal(b, m, deterministic) 191 | } 192 | func (m *BatchTimeout) XXX_Merge(src proto.Message) { 193 | xxx_messageInfo_BatchTimeout.Merge(m, src) 194 | } 195 | func (m *BatchTimeout) XXX_Size() int { 196 | return xxx_messageInfo_BatchTimeout.Size(m) 197 | } 198 | func (m *BatchTimeout) XXX_DiscardUnknown() { 199 | xxx_messageInfo_BatchTimeout.DiscardUnknown(m) 200 | } 201 | 202 | var xxx_messageInfo_BatchTimeout proto.InternalMessageInfo 203 | 204 | func (m *BatchTimeout) GetTimeout() string { 205 | if m != nil { 206 | return m.Timeout 207 | } 208 | return "" 209 | } 210 | 211 | // Carries a list of bootstrap brokers, i.e. this is not the exclusive set of 212 | // brokers an ordering service 213 | // 214 | // Deprecated: Do not use. 215 | type KafkaBrokers struct { 216 | // Each broker here should be identified using the (IP|host):port notation, 217 | // e.g. 127.0.0.1:7050, or localhost:7050 are valid entries 218 | Brokers []string `protobuf:"bytes,1,rep,name=brokers,proto3" json:"brokers,omitempty"` 219 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 220 | XXX_unrecognized []byte `json:"-"` 221 | XXX_sizecache int32 `json:"-"` 222 | } 223 | 224 | func (m *KafkaBrokers) Reset() { *m = KafkaBrokers{} } 225 | func (m *KafkaBrokers) String() string { return proto.CompactTextString(m) } 226 | func (*KafkaBrokers) ProtoMessage() {} 227 | func (*KafkaBrokers) Descriptor() ([]byte, []int) { 228 | return fileDescriptor_bcce68f21316dd30, []int{3} 229 | } 230 | 231 | func (m *KafkaBrokers) XXX_Unmarshal(b []byte) error { 232 | return xxx_messageInfo_KafkaBrokers.Unmarshal(m, b) 233 | } 234 | func (m *KafkaBrokers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 235 | return xxx_messageInfo_KafkaBrokers.Marshal(b, m, deterministic) 236 | } 237 | func (m *KafkaBrokers) XXX_Merge(src proto.Message) { 238 | xxx_messageInfo_KafkaBrokers.Merge(m, src) 239 | } 240 | func (m *KafkaBrokers) XXX_Size() int { 241 | return xxx_messageInfo_KafkaBrokers.Size(m) 242 | } 243 | func (m *KafkaBrokers) XXX_DiscardUnknown() { 244 | xxx_messageInfo_KafkaBrokers.DiscardUnknown(m) 245 | } 246 | 247 | var xxx_messageInfo_KafkaBrokers proto.InternalMessageInfo 248 | 249 | func (m *KafkaBrokers) GetBrokers() []string { 250 | if m != nil { 251 | return m.Brokers 252 | } 253 | return nil 254 | } 255 | 256 | // ChannelRestrictions is the mssage which conveys restrictions on channel creation for an orderer 257 | type ChannelRestrictions struct { 258 | MaxCount uint64 `protobuf:"varint,1,opt,name=max_count,json=maxCount,proto3" json:"max_count,omitempty"` 259 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 260 | XXX_unrecognized []byte `json:"-"` 261 | XXX_sizecache int32 `json:"-"` 262 | } 263 | 264 | func (m *ChannelRestrictions) Reset() { *m = ChannelRestrictions{} } 265 | func (m *ChannelRestrictions) String() string { return proto.CompactTextString(m) } 266 | func (*ChannelRestrictions) ProtoMessage() {} 267 | func (*ChannelRestrictions) Descriptor() ([]byte, []int) { 268 | return fileDescriptor_bcce68f21316dd30, []int{4} 269 | } 270 | 271 | func (m *ChannelRestrictions) XXX_Unmarshal(b []byte) error { 272 | return xxx_messageInfo_ChannelRestrictions.Unmarshal(m, b) 273 | } 274 | func (m *ChannelRestrictions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 275 | return xxx_messageInfo_ChannelRestrictions.Marshal(b, m, deterministic) 276 | } 277 | func (m *ChannelRestrictions) XXX_Merge(src proto.Message) { 278 | xxx_messageInfo_ChannelRestrictions.Merge(m, src) 279 | } 280 | func (m *ChannelRestrictions) XXX_Size() int { 281 | return xxx_messageInfo_ChannelRestrictions.Size(m) 282 | } 283 | func (m *ChannelRestrictions) XXX_DiscardUnknown() { 284 | xxx_messageInfo_ChannelRestrictions.DiscardUnknown(m) 285 | } 286 | 287 | var xxx_messageInfo_ChannelRestrictions proto.InternalMessageInfo 288 | 289 | func (m *ChannelRestrictions) GetMaxCount() uint64 { 290 | if m != nil { 291 | return m.MaxCount 292 | } 293 | return 0 294 | } 295 | 296 | func init() { 297 | proto.RegisterEnum("orderer.ConsensusType_State", ConsensusType_State_name, ConsensusType_State_value) 298 | proto.RegisterType((*ConsensusType)(nil), "orderer.ConsensusType") 299 | proto.RegisterType((*BatchSize)(nil), "orderer.BatchSize") 300 | proto.RegisterType((*BatchTimeout)(nil), "orderer.BatchTimeout") 301 | proto.RegisterType((*KafkaBrokers)(nil), "orderer.KafkaBrokers") 302 | proto.RegisterType((*ChannelRestrictions)(nil), "orderer.ChannelRestrictions") 303 | } 304 | 305 | func init() { proto.RegisterFile("orderer/configuration.proto", fileDescriptor_bcce68f21316dd30) } 306 | 307 | var fileDescriptor_bcce68f21316dd30 = []byte{ 308 | // 413 bytes of a gzipped FileDescriptorProto 309 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0xc1, 0x6a, 0xdb, 0x40, 310 | 0x10, 0x86, 0xbb, 0x71, 0xd2, 0xc4, 0x83, 0xdd, 0xda, 0x1b, 0x0a, 0xa2, 0xe9, 0xc1, 0x08, 0x0a, 311 | 0xa6, 0x24, 0x52, 0x71, 0x6f, 0xbd, 0xd9, 0xc6, 0x87, 0xd2, 0xda, 0x85, 0xb5, 0x0e, 0xa5, 0x17, 312 | 0x33, 0x92, 0xc7, 0xb2, 0x88, 0xa5, 0x15, 0xbb, 0x2b, 0xb0, 0xfb, 0x1e, 0x7d, 0x84, 0xbe, 0x67, 313 | 0xd9, 0x5d, 0x39, 0x4d, 0x6f, 0xf3, 0xff, 0xf3, 0xed, 0x30, 0xb3, 0x3f, 0xdc, 0x49, 0xb5, 0x25, 314 | 0x45, 0x2a, 0xce, 0x64, 0xb5, 0x2b, 0xf2, 0x46, 0xa1, 0x29, 0x64, 0x15, 0xd5, 0x4a, 0x1a, 0xc9, 315 | 0xaf, 0xdb, 0x66, 0xf8, 0x87, 0x41, 0x7f, 0x2e, 0x2b, 0x4d, 0x95, 0x6e, 0x74, 0x72, 0xaa, 0x89, 316 | 0x73, 0xb8, 0x34, 0xa7, 0x9a, 0x02, 0x36, 0x62, 0xe3, 0xae, 0x70, 0x35, 0x7f, 0x0b, 0x37, 0x25, 317 | 0x19, 0xdc, 0xa2, 0xc1, 0xe0, 0x62, 0xc4, 0xc6, 0x3d, 0xf1, 0xa4, 0xf9, 0x04, 0xae, 0xb4, 0x41, 318 | 0x43, 0x41, 0x67, 0xc4, 0xc6, 0xaf, 0x26, 0xef, 0xa2, 0x76, 0x74, 0xf4, 0xdf, 0xd8, 0x68, 0x6d, 319 | 0x19, 0xe1, 0xd1, 0xf0, 0x23, 0x5c, 0x39, 0xcd, 0x07, 0xd0, 0x5b, 0x27, 0xd3, 0x64, 0xb1, 0x59, 320 | 0x7d, 0x17, 0xcb, 0xe9, 0xb7, 0xc1, 0x0b, 0xfe, 0x06, 0x86, 0xde, 0x59, 0x4e, 0xbf, 0xac, 0x92, 321 | 0xc5, 0x6a, 0xba, 0x9a, 0x2f, 0x06, 0x2c, 0xfc, 0xcd, 0xa0, 0x3b, 0x43, 0x93, 0xed, 0xd7, 0xc5, 322 | 0x2f, 0xe2, 0x1f, 0x60, 0x58, 0xe2, 0x71, 0x53, 0x92, 0xd6, 0x98, 0xd3, 0x26, 0x93, 0x4d, 0x65, 323 | 0xdc, 0xc2, 0x7d, 0xf1, 0xba, 0xc4, 0xe3, 0xd2, 0xfb, 0x73, 0x6b, 0xf3, 0x7b, 0xe0, 0x98, 0x6a, 324 | 0x79, 0x68, 0x0c, 0x6d, 0xec, 0xa3, 0xf4, 0x64, 0x48, 0xbb, 0x2b, 0xfa, 0x62, 0x70, 0xee, 0x2c, 325 | 0xf1, 0x38, 0xb3, 0x3e, 0x8f, 0xe0, 0xb6, 0x56, 0xb4, 0x23, 0xa5, 0x68, 0xfb, 0x0c, 0xef, 0x38, 326 | 0x7c, 0xf8, 0xd4, 0x3a, 0xf3, 0xe1, 0x18, 0x7a, 0x6e, 0xad, 0xa4, 0x28, 0x49, 0x36, 0x86, 0x07, 327 | 0x70, 0x6d, 0x7c, 0xd9, 0x7e, 0xe0, 0x59, 0x86, 0xf7, 0xd0, 0xfb, 0x8a, 0xbb, 0x47, 0x9c, 0x29, 328 | 0xf9, 0x48, 0x4a, 0x5b, 0x32, 0xf5, 0x65, 0xc0, 0x46, 0x1d, 0x4b, 0xb6, 0xf2, 0xf3, 0x45, 0xc0, 329 | 0xc2, 0x09, 0xdc, 0xce, 0xf7, 0x58, 0x55, 0x74, 0x10, 0xa4, 0x8d, 0x2a, 0x32, 0x1b, 0x9e, 0xe6, 330 | 0x77, 0xd0, 0xb5, 0x4b, 0xfd, 0x3b, 0xf8, 0x52, 0xdc, 0x94, 0x78, 0x74, 0x97, 0xce, 0x7e, 0xc0, 331 | 0x7b, 0xa9, 0xf2, 0x68, 0x7f, 0xaa, 0x49, 0x1d, 0x68, 0x9b, 0x93, 0x8a, 0x76, 0x98, 0xaa, 0x22, 332 | 0xf3, 0xa1, 0xeb, 0x73, 0x32, 0x3f, 0xe3, 0xbc, 0x30, 0xfb, 0x26, 0x8d, 0x32, 0x59, 0xc6, 0xcf, 333 | 0xe8, 0xd8, 0xd3, 0x0f, 0x9e, 0x7e, 0xc8, 0x65, 0xdc, 0x3e, 0x48, 0x5f, 0x3a, 0xeb, 0xd3, 0xdf, 334 | 0x00, 0x00, 0x00, 0xff, 0xff, 0xc7, 0x40, 0x87, 0xa9, 0x54, 0x02, 0x00, 0x00, 335 | } 336 | -------------------------------------------------------------------------------- /orderer/etcdraft/configuration.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: orderer/etcdraft/configuration.proto 3 | 4 | package etcdraft 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // ConfigMetadata is serialized and set as the value of ConsensusType.Metadata in 24 | // a channel configuration when the ConsensusType.Type is set "etcdraft". 25 | type ConfigMetadata struct { 26 | Consenters []*Consenter `protobuf:"bytes,1,rep,name=consenters,proto3" json:"consenters,omitempty"` 27 | Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` 28 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 29 | XXX_unrecognized []byte `json:"-"` 30 | XXX_sizecache int32 `json:"-"` 31 | } 32 | 33 | func (m *ConfigMetadata) Reset() { *m = ConfigMetadata{} } 34 | func (m *ConfigMetadata) String() string { return proto.CompactTextString(m) } 35 | func (*ConfigMetadata) ProtoMessage() {} 36 | func (*ConfigMetadata) Descriptor() ([]byte, []int) { 37 | return fileDescriptor_6f12d215c949b072, []int{0} 38 | } 39 | 40 | func (m *ConfigMetadata) XXX_Unmarshal(b []byte) error { 41 | return xxx_messageInfo_ConfigMetadata.Unmarshal(m, b) 42 | } 43 | func (m *ConfigMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 | return xxx_messageInfo_ConfigMetadata.Marshal(b, m, deterministic) 45 | } 46 | func (m *ConfigMetadata) XXX_Merge(src proto.Message) { 47 | xxx_messageInfo_ConfigMetadata.Merge(m, src) 48 | } 49 | func (m *ConfigMetadata) XXX_Size() int { 50 | return xxx_messageInfo_ConfigMetadata.Size(m) 51 | } 52 | func (m *ConfigMetadata) XXX_DiscardUnknown() { 53 | xxx_messageInfo_ConfigMetadata.DiscardUnknown(m) 54 | } 55 | 56 | var xxx_messageInfo_ConfigMetadata proto.InternalMessageInfo 57 | 58 | func (m *ConfigMetadata) GetConsenters() []*Consenter { 59 | if m != nil { 60 | return m.Consenters 61 | } 62 | return nil 63 | } 64 | 65 | func (m *ConfigMetadata) GetOptions() *Options { 66 | if m != nil { 67 | return m.Options 68 | } 69 | return nil 70 | } 71 | 72 | // Consenter represents a consenting node (i.e. replica). 73 | type Consenter struct { 74 | Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` 75 | Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 76 | ClientTlsCert []byte `protobuf:"bytes,3,opt,name=client_tls_cert,json=clientTlsCert,proto3" json:"client_tls_cert,omitempty"` 77 | ServerTlsCert []byte `protobuf:"bytes,4,opt,name=server_tls_cert,json=serverTlsCert,proto3" json:"server_tls_cert,omitempty"` 78 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 79 | XXX_unrecognized []byte `json:"-"` 80 | XXX_sizecache int32 `json:"-"` 81 | } 82 | 83 | func (m *Consenter) Reset() { *m = Consenter{} } 84 | func (m *Consenter) String() string { return proto.CompactTextString(m) } 85 | func (*Consenter) ProtoMessage() {} 86 | func (*Consenter) Descriptor() ([]byte, []int) { 87 | return fileDescriptor_6f12d215c949b072, []int{1} 88 | } 89 | 90 | func (m *Consenter) XXX_Unmarshal(b []byte) error { 91 | return xxx_messageInfo_Consenter.Unmarshal(m, b) 92 | } 93 | func (m *Consenter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 94 | return xxx_messageInfo_Consenter.Marshal(b, m, deterministic) 95 | } 96 | func (m *Consenter) XXX_Merge(src proto.Message) { 97 | xxx_messageInfo_Consenter.Merge(m, src) 98 | } 99 | func (m *Consenter) XXX_Size() int { 100 | return xxx_messageInfo_Consenter.Size(m) 101 | } 102 | func (m *Consenter) XXX_DiscardUnknown() { 103 | xxx_messageInfo_Consenter.DiscardUnknown(m) 104 | } 105 | 106 | var xxx_messageInfo_Consenter proto.InternalMessageInfo 107 | 108 | func (m *Consenter) GetHost() string { 109 | if m != nil { 110 | return m.Host 111 | } 112 | return "" 113 | } 114 | 115 | func (m *Consenter) GetPort() uint32 { 116 | if m != nil { 117 | return m.Port 118 | } 119 | return 0 120 | } 121 | 122 | func (m *Consenter) GetClientTlsCert() []byte { 123 | if m != nil { 124 | return m.ClientTlsCert 125 | } 126 | return nil 127 | } 128 | 129 | func (m *Consenter) GetServerTlsCert() []byte { 130 | if m != nil { 131 | return m.ServerTlsCert 132 | } 133 | return nil 134 | } 135 | 136 | // Options to be specified for all the etcd/raft nodes. These can be modified on a 137 | // per-channel basis. 138 | type Options struct { 139 | TickInterval string `protobuf:"bytes,1,opt,name=tick_interval,json=tickInterval,proto3" json:"tick_interval,omitempty"` 140 | ElectionTick uint32 `protobuf:"varint,2,opt,name=election_tick,json=electionTick,proto3" json:"election_tick,omitempty"` 141 | HeartbeatTick uint32 `protobuf:"varint,3,opt,name=heartbeat_tick,json=heartbeatTick,proto3" json:"heartbeat_tick,omitempty"` 142 | MaxInflightBlocks uint32 `protobuf:"varint,4,opt,name=max_inflight_blocks,json=maxInflightBlocks,proto3" json:"max_inflight_blocks,omitempty"` 143 | // Take snapshot when cumulative data exceeds certain size in bytes. 144 | SnapshotIntervalSize uint32 `protobuf:"varint,5,opt,name=snapshot_interval_size,json=snapshotIntervalSize,proto3" json:"snapshot_interval_size,omitempty"` 145 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 146 | XXX_unrecognized []byte `json:"-"` 147 | XXX_sizecache int32 `json:"-"` 148 | } 149 | 150 | func (m *Options) Reset() { *m = Options{} } 151 | func (m *Options) String() string { return proto.CompactTextString(m) } 152 | func (*Options) ProtoMessage() {} 153 | func (*Options) Descriptor() ([]byte, []int) { 154 | return fileDescriptor_6f12d215c949b072, []int{2} 155 | } 156 | 157 | func (m *Options) XXX_Unmarshal(b []byte) error { 158 | return xxx_messageInfo_Options.Unmarshal(m, b) 159 | } 160 | func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 161 | return xxx_messageInfo_Options.Marshal(b, m, deterministic) 162 | } 163 | func (m *Options) XXX_Merge(src proto.Message) { 164 | xxx_messageInfo_Options.Merge(m, src) 165 | } 166 | func (m *Options) XXX_Size() int { 167 | return xxx_messageInfo_Options.Size(m) 168 | } 169 | func (m *Options) XXX_DiscardUnknown() { 170 | xxx_messageInfo_Options.DiscardUnknown(m) 171 | } 172 | 173 | var xxx_messageInfo_Options proto.InternalMessageInfo 174 | 175 | func (m *Options) GetTickInterval() string { 176 | if m != nil { 177 | return m.TickInterval 178 | } 179 | return "" 180 | } 181 | 182 | func (m *Options) GetElectionTick() uint32 { 183 | if m != nil { 184 | return m.ElectionTick 185 | } 186 | return 0 187 | } 188 | 189 | func (m *Options) GetHeartbeatTick() uint32 { 190 | if m != nil { 191 | return m.HeartbeatTick 192 | } 193 | return 0 194 | } 195 | 196 | func (m *Options) GetMaxInflightBlocks() uint32 { 197 | if m != nil { 198 | return m.MaxInflightBlocks 199 | } 200 | return 0 201 | } 202 | 203 | func (m *Options) GetSnapshotIntervalSize() uint32 { 204 | if m != nil { 205 | return m.SnapshotIntervalSize 206 | } 207 | return 0 208 | } 209 | 210 | func init() { 211 | proto.RegisterType((*ConfigMetadata)(nil), "etcdraft.ConfigMetadata") 212 | proto.RegisterType((*Consenter)(nil), "etcdraft.Consenter") 213 | proto.RegisterType((*Options)(nil), "etcdraft.Options") 214 | } 215 | 216 | func init() { 217 | proto.RegisterFile("orderer/etcdraft/configuration.proto", fileDescriptor_6f12d215c949b072) 218 | } 219 | 220 | var fileDescriptor_6f12d215c949b072 = []byte{ 221 | // 392 bytes of a gzipped FileDescriptorProto 222 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x4f, 0x6b, 0xdc, 0x30, 223 | 0x10, 0xc5, 0x71, 0x37, 0x6d, 0x1a, 0x65, 0x9d, 0x12, 0xa5, 0x14, 0x1f, 0xcd, 0xf6, 0x0f, 0x86, 224 | 0x12, 0x19, 0x92, 0x1e, 0x7a, 0xce, 0x9e, 0x72, 0x28, 0x05, 0x37, 0xa7, 0x5e, 0x8c, 0x2c, 0x8f, 225 | 0x6d, 0x75, 0xb5, 0x96, 0x19, 0x4d, 0x42, 0x9a, 0x6b, 0xbf, 0x68, 0x3f, 0x4a, 0xb1, 0x64, 0x3b, 226 | 0x4b, 0x6f, 0xc3, 0x7b, 0xbf, 0x37, 0x7a, 0xa0, 0x61, 0x1f, 0x2c, 0xd6, 0x80, 0x80, 0x39, 0x90, 227 | 0xaa, 0x51, 0x36, 0x94, 0x2b, 0xdb, 0x37, 0xba, 0xbd, 0x47, 0x49, 0xda, 0xf6, 0x62, 0x40, 0x4b, 228 | 0x96, 0xbf, 0x9e, 0xdd, 0x0d, 0xb2, 0xb3, 0xad, 0x07, 0xbe, 0x01, 0xc9, 0x5a, 0x92, 0xe4, 0xd7, 229 | 0x8c, 0x29, 0xdb, 0x3b, 0xe8, 0x09, 0xd0, 0x25, 0x51, 0xba, 0xca, 0x4e, 0xaf, 0x2e, 0xc4, 0x1c, 230 | 0x10, 0xdb, 0xd9, 0x2b, 0x0e, 0x30, 0xfe, 0x99, 0x1d, 0xdb, 0x61, 0x7c, 0xc0, 0x25, 0x2f, 0xd2, 231 | 0x28, 0x3b, 0xbd, 0x3a, 0x7f, 0x4e, 0x7c, 0x0f, 0x46, 0x31, 0x13, 0x9b, 0x3f, 0x11, 0x3b, 0x59, 232 | 0xd6, 0x70, 0xce, 0x8e, 0x3a, 0xeb, 0x28, 0x89, 0xd2, 0x28, 0x3b, 0x29, 0xfc, 0x3c, 0x6a, 0x83, 233 | 0x45, 0xf2, 0xbb, 0xe2, 0xc2, 0xcf, 0xfc, 0x13, 0x7b, 0xa3, 0x8c, 0x86, 0x9e, 0x4a, 0x32, 0xae, 234 | 0x54, 0x80, 0x94, 0xac, 0xd2, 0x28, 0x5b, 0x17, 0x71, 0x90, 0xef, 0x8c, 0xdb, 0x42, 0xe0, 0x1c, 235 | 0xe0, 0x03, 0xe0, 0x33, 0x77, 0x14, 0xb8, 0x20, 0x4f, 0xdc, 0xe6, 0x6f, 0xc4, 0x8e, 0xa7, 0x6a, 236 | 0xfc, 0x3d, 0x8b, 0x49, 0xab, 0x5d, 0xa9, 0xc7, 0x46, 0x0f, 0xd2, 0x4c, 0x65, 0xd6, 0xa3, 0x78, 237 | 0x3b, 0x69, 0x23, 0x04, 0x06, 0xd4, 0x98, 0x28, 0x47, 0x63, 0x6a, 0xb7, 0x9e, 0xc5, 0x3b, 0xad, 238 | 0x76, 0xfc, 0x23, 0x3b, 0xeb, 0x40, 0x22, 0x55, 0x20, 0x29, 0x50, 0x2b, 0x4f, 0xc5, 0x8b, 0xea, 239 | 0x31, 0xc1, 0x2e, 0xf6, 0xf2, 0xb1, 0xd4, 0x7d, 0x63, 0x74, 0xdb, 0x51, 0x59, 0x19, 0xab, 0x76, 240 | 0xce, 0x17, 0x8d, 0x8b, 0xf3, 0xbd, 0x7c, 0xbc, 0x9d, 0x9c, 0x1b, 0x6f, 0xf0, 0x2f, 0xec, 0x9d, 241 | 0xeb, 0xe5, 0xe0, 0x3a, 0x4b, 0x4b, 0xc9, 0xd2, 0xe9, 0x27, 0x48, 0x5e, 0xfa, 0xc8, 0xdb, 0xd9, 242 | 0x9d, 0xdb, 0xfe, 0xd0, 0x4f, 0x70, 0xf3, 0x8b, 0x09, 0x8b, 0xad, 0xe8, 0x7e, 0x0f, 0x80, 0x06, 243 | 0xea, 0x16, 0x50, 0x34, 0xb2, 0x42, 0xad, 0xc2, 0x19, 0x38, 0x31, 0x1d, 0xcb, 0xf2, 0x57, 0x3f, 244 | 0xbf, 0xb6, 0x9a, 0xba, 0xfb, 0x4a, 0x28, 0xbb, 0xcf, 0x0f, 0x62, 0x79, 0x88, 0x5d, 0x86, 0xd8, 245 | 0x65, 0x6b, 0xf3, 0xff, 0xcf, 0xac, 0x7a, 0xe5, 0xbd, 0xeb, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 246 | 0x25, 0x12, 0x78, 0xc2, 0x81, 0x02, 0x00, 0x00, 247 | } 248 | -------------------------------------------------------------------------------- /orderer/etcdraft/metadata.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: orderer/etcdraft/metadata.proto 3 | 4 | package etcdraft 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // BlockMetadata stores data used by the Raft OSNs when 24 | // coordinating with each other, to be serialized into 25 | // block meta dta field and used after failres and restarts. 26 | type BlockMetadata struct { 27 | // Maintains a mapping between the cluster's OSNs 28 | // and their Raft IDs. 29 | ConsenterIds []uint64 `protobuf:"varint,1,rep,packed,name=consenter_ids,json=consenterIds,proto3" json:"consenter_ids,omitempty"` 30 | // Carries the Raft ID value that will be assigned 31 | // to the next OSN that will join this cluster. 32 | NextConsenterId uint64 `protobuf:"varint,2,opt,name=next_consenter_id,json=nextConsenterId,proto3" json:"next_consenter_id,omitempty"` 33 | // Index of etcd/raft entry for current block. 34 | RaftIndex uint64 `protobuf:"varint,3,opt,name=raft_index,json=raftIndex,proto3" json:"raft_index,omitempty"` 35 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 36 | XXX_unrecognized []byte `json:"-"` 37 | XXX_sizecache int32 `json:"-"` 38 | } 39 | 40 | func (m *BlockMetadata) Reset() { *m = BlockMetadata{} } 41 | func (m *BlockMetadata) String() string { return proto.CompactTextString(m) } 42 | func (*BlockMetadata) ProtoMessage() {} 43 | func (*BlockMetadata) Descriptor() ([]byte, []int) { 44 | return fileDescriptor_6d0323e5051228ea, []int{0} 45 | } 46 | 47 | func (m *BlockMetadata) XXX_Unmarshal(b []byte) error { 48 | return xxx_messageInfo_BlockMetadata.Unmarshal(m, b) 49 | } 50 | func (m *BlockMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 51 | return xxx_messageInfo_BlockMetadata.Marshal(b, m, deterministic) 52 | } 53 | func (m *BlockMetadata) XXX_Merge(src proto.Message) { 54 | xxx_messageInfo_BlockMetadata.Merge(m, src) 55 | } 56 | func (m *BlockMetadata) XXX_Size() int { 57 | return xxx_messageInfo_BlockMetadata.Size(m) 58 | } 59 | func (m *BlockMetadata) XXX_DiscardUnknown() { 60 | xxx_messageInfo_BlockMetadata.DiscardUnknown(m) 61 | } 62 | 63 | var xxx_messageInfo_BlockMetadata proto.InternalMessageInfo 64 | 65 | func (m *BlockMetadata) GetConsenterIds() []uint64 { 66 | if m != nil { 67 | return m.ConsenterIds 68 | } 69 | return nil 70 | } 71 | 72 | func (m *BlockMetadata) GetNextConsenterId() uint64 { 73 | if m != nil { 74 | return m.NextConsenterId 75 | } 76 | return 0 77 | } 78 | 79 | func (m *BlockMetadata) GetRaftIndex() uint64 { 80 | if m != nil { 81 | return m.RaftIndex 82 | } 83 | return 0 84 | } 85 | 86 | // ClusterMetadata encapsulates metadata that is exchanged among cluster nodes 87 | type ClusterMetadata struct { 88 | // Indicates active nodes in cluster that are reacheable by Raft leader 89 | ActiveNodes []uint64 `protobuf:"varint,1,rep,packed,name=active_nodes,json=activeNodes,proto3" json:"active_nodes,omitempty"` 90 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 91 | XXX_unrecognized []byte `json:"-"` 92 | XXX_sizecache int32 `json:"-"` 93 | } 94 | 95 | func (m *ClusterMetadata) Reset() { *m = ClusterMetadata{} } 96 | func (m *ClusterMetadata) String() string { return proto.CompactTextString(m) } 97 | func (*ClusterMetadata) ProtoMessage() {} 98 | func (*ClusterMetadata) Descriptor() ([]byte, []int) { 99 | return fileDescriptor_6d0323e5051228ea, []int{1} 100 | } 101 | 102 | func (m *ClusterMetadata) XXX_Unmarshal(b []byte) error { 103 | return xxx_messageInfo_ClusterMetadata.Unmarshal(m, b) 104 | } 105 | func (m *ClusterMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 106 | return xxx_messageInfo_ClusterMetadata.Marshal(b, m, deterministic) 107 | } 108 | func (m *ClusterMetadata) XXX_Merge(src proto.Message) { 109 | xxx_messageInfo_ClusterMetadata.Merge(m, src) 110 | } 111 | func (m *ClusterMetadata) XXX_Size() int { 112 | return xxx_messageInfo_ClusterMetadata.Size(m) 113 | } 114 | func (m *ClusterMetadata) XXX_DiscardUnknown() { 115 | xxx_messageInfo_ClusterMetadata.DiscardUnknown(m) 116 | } 117 | 118 | var xxx_messageInfo_ClusterMetadata proto.InternalMessageInfo 119 | 120 | func (m *ClusterMetadata) GetActiveNodes() []uint64 { 121 | if m != nil { 122 | return m.ActiveNodes 123 | } 124 | return nil 125 | } 126 | 127 | func init() { 128 | proto.RegisterType((*BlockMetadata)(nil), "etcdraft.BlockMetadata") 129 | proto.RegisterType((*ClusterMetadata)(nil), "etcdraft.ClusterMetadata") 130 | } 131 | 132 | func init() { proto.RegisterFile("orderer/etcdraft/metadata.proto", fileDescriptor_6d0323e5051228ea) } 133 | 134 | var fileDescriptor_6d0323e5051228ea = []byte{ 135 | // 244 bytes of a gzipped FileDescriptorProto 136 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0xbf, 0x4f, 0x32, 0x41, 137 | 0x10, 0x86, 0xc3, 0x07, 0xf9, 0xa2, 0x23, 0x84, 0x78, 0xd5, 0x35, 0x46, 0xc4, 0x86, 0x98, 0xb0, 138 | 0x5b, 0x68, 0x61, 0x0d, 0x15, 0x85, 0x16, 0x94, 0x36, 0x97, 0xbd, 0xdd, 0xe1, 0x58, 0x3d, 0x76, 139 | 0xc8, 0xec, 0x60, 0xb0, 0xf2, 0x5f, 0x37, 0xcb, 0x71, 0x48, 0x6c, 0x9f, 0xf7, 0x79, 0x33, 0x3f, 140 | 0xe0, 0x96, 0xd8, 0x21, 0x23, 0x6b, 0x14, 0xeb, 0xd8, 0xac, 0x44, 0x6f, 0x50, 0x8c, 0x33, 0x62, 141 | 0xd4, 0x96, 0x49, 0x28, 0xbb, 0x68, 0x83, 0xf1, 0x37, 0x0c, 0x66, 0x35, 0xd9, 0x8f, 0x97, 0xa3, 142 | 0x90, 0xdd, 0xc3, 0xc0, 0x52, 0x88, 0x18, 0x04, 0xb9, 0xf0, 0x2e, 0xe6, 0x9d, 0x51, 0x77, 0xd2, 143 | 0x5b, 0xf6, 0x4f, 0x70, 0xe1, 0x62, 0xf6, 0x00, 0xd7, 0x01, 0xf7, 0x52, 0x9c, 0x9b, 0xf9, 0xbf, 144 | 0x51, 0x67, 0xd2, 0x5b, 0x0e, 0x53, 0x30, 0xff, 0x95, 0xb3, 0x1b, 0x80, 0x34, 0xa9, 0xf0, 0xc1, 145 | 0xe1, 0x3e, 0xef, 0x1e, 0xa4, 0xcb, 0x44, 0x16, 0x09, 0x8c, 0x9f, 0x60, 0x38, 0xaf, 0x77, 0x51, 146 | 0x90, 0x4f, 0x2b, 0xdc, 0x41, 0xdf, 0x58, 0xf1, 0x9f, 0x58, 0x04, 0x72, 0xd8, 0x6e, 0x70, 0xd5, 147 | 0xb0, 0xd7, 0x84, 0x66, 0xef, 0xa0, 0x88, 0x2b, 0xb5, 0xfe, 0xda, 0x22, 0xd7, 0xe8, 0x2a, 0x64, 148 | 0xb5, 0x32, 0x25, 0x7b, 0xdb, 0x1c, 0x18, 0xd5, 0xf1, 0x03, 0xaa, 0x3d, 0xf4, 0xed, 0xb9, 0xf2, 149 | 0xb2, 0xde, 0x95, 0xca, 0xd2, 0x46, 0x9f, 0xd5, 0x74, 0x53, 0x9b, 0x36, 0xb5, 0x69, 0x45, 0xfa, 150 | 0xef, 0xef, 0xca, 0xff, 0x87, 0xec, 0xf1, 0x27, 0x00, 0x00, 0xff, 0xff, 0xcf, 0xbd, 0xfc, 0x44, 151 | 0x56, 0x01, 0x00, 0x00, 152 | } 153 | -------------------------------------------------------------------------------- /orderer/smartbft/configuration.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: orderer/smartbft/configuration.proto 3 | 4 | package smartbft 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | type Options_Rotation int32 24 | 25 | const ( 26 | Options_ROTATION_UNSPECIFIED Options_Rotation = 0 27 | Options_ROTATION_OFF Options_Rotation = 1 28 | Options_ROTATION_ON Options_Rotation = 2 29 | ) 30 | 31 | var Options_Rotation_name = map[int32]string{ 32 | 0: "ROTATION_UNSPECIFIED", 33 | 1: "ROTATION_OFF", 34 | 2: "ROTATION_ON", 35 | } 36 | 37 | var Options_Rotation_value = map[string]int32{ 38 | "ROTATION_UNSPECIFIED": 0, 39 | "ROTATION_OFF": 1, 40 | "ROTATION_ON": 2, 41 | } 42 | 43 | func (x Options_Rotation) String() string { 44 | return proto.EnumName(Options_Rotation_name, int32(x)) 45 | } 46 | 47 | func (Options_Rotation) EnumDescriptor() ([]byte, []int) { 48 | return fileDescriptor_a8a81ac5a2771ff3, []int{0, 0} 49 | } 50 | 51 | // Options to be specified for all the smartbft nodes. These can be modified on a 52 | // per-channel basis. 53 | type Options struct { 54 | RequestBatchMaxCount uint64 `protobuf:"varint,1,opt,name=request_batch_max_count,json=requestBatchMaxCount,proto3" json:"request_batch_max_count,omitempty"` 55 | RequestBatchMaxBytes uint64 `protobuf:"varint,2,opt,name=request_batch_max_bytes,json=requestBatchMaxBytes,proto3" json:"request_batch_max_bytes,omitempty"` 56 | RequestBatchMaxInterval string `protobuf:"bytes,3,opt,name=request_batch_max_interval,json=requestBatchMaxInterval,proto3" json:"request_batch_max_interval,omitempty"` 57 | IncomingMessageBufferSize uint64 `protobuf:"varint,4,opt,name=incoming_message_buffer_size,json=incomingMessageBufferSize,proto3" json:"incoming_message_buffer_size,omitempty"` 58 | RequestPoolSize uint64 `protobuf:"varint,5,opt,name=request_pool_size,json=requestPoolSize,proto3" json:"request_pool_size,omitempty"` 59 | RequestForwardTimeout string `protobuf:"bytes,6,opt,name=request_forward_timeout,json=requestForwardTimeout,proto3" json:"request_forward_timeout,omitempty"` 60 | RequestComplainTimeout string `protobuf:"bytes,7,opt,name=request_complain_timeout,json=requestComplainTimeout,proto3" json:"request_complain_timeout,omitempty"` 61 | RequestAutoRemoveTimeout string `protobuf:"bytes,8,opt,name=request_auto_remove_timeout,json=requestAutoRemoveTimeout,proto3" json:"request_auto_remove_timeout,omitempty"` 62 | RequestMaxBytes uint64 `protobuf:"varint,9,opt,name=request_max_bytes,json=requestMaxBytes,proto3" json:"request_max_bytes,omitempty"` 63 | ViewChangeResendInterval string `protobuf:"bytes,10,opt,name=view_change_resend_interval,json=viewChangeResendInterval,proto3" json:"view_change_resend_interval,omitempty"` 64 | ViewChangeTimeout string `protobuf:"bytes,11,opt,name=view_change_timeout,json=viewChangeTimeout,proto3" json:"view_change_timeout,omitempty"` 65 | LeaderHeartbeatTimeout string `protobuf:"bytes,12,opt,name=leader_heartbeat_timeout,json=leaderHeartbeatTimeout,proto3" json:"leader_heartbeat_timeout,omitempty"` 66 | LeaderHeartbeatCount uint64 `protobuf:"varint,13,opt,name=leader_heartbeat_count,json=leaderHeartbeatCount,proto3" json:"leader_heartbeat_count,omitempty"` 67 | CollectTimeout string `protobuf:"bytes,14,opt,name=collect_timeout,json=collectTimeout,proto3" json:"collect_timeout,omitempty"` 68 | SyncOnStart bool `protobuf:"varint,15,opt,name=sync_on_start,json=syncOnStart,proto3" json:"sync_on_start,omitempty"` 69 | SpeedUpViewChange bool `protobuf:"varint,16,opt,name=speed_up_view_change,json=speedUpViewChange,proto3" json:"speed_up_view_change,omitempty"` 70 | LeaderRotation Options_Rotation `protobuf:"varint,17,opt,name=leader_rotation,json=leaderRotation,proto3,enum=orderer.smartbft.Options_Rotation" json:"leader_rotation,omitempty"` 71 | DecisionsPerLeader uint64 `protobuf:"varint,18,opt,name=decisions_per_leader,json=decisionsPerLeader,proto3" json:"decisions_per_leader,omitempty"` 72 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 73 | XXX_unrecognized []byte `json:"-"` 74 | XXX_sizecache int32 `json:"-"` 75 | } 76 | 77 | func (m *Options) Reset() { *m = Options{} } 78 | func (m *Options) String() string { return proto.CompactTextString(m) } 79 | func (*Options) ProtoMessage() {} 80 | func (*Options) Descriptor() ([]byte, []int) { 81 | return fileDescriptor_a8a81ac5a2771ff3, []int{0} 82 | } 83 | 84 | func (m *Options) XXX_Unmarshal(b []byte) error { 85 | return xxx_messageInfo_Options.Unmarshal(m, b) 86 | } 87 | func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 88 | return xxx_messageInfo_Options.Marshal(b, m, deterministic) 89 | } 90 | func (m *Options) XXX_Merge(src proto.Message) { 91 | xxx_messageInfo_Options.Merge(m, src) 92 | } 93 | func (m *Options) XXX_Size() int { 94 | return xxx_messageInfo_Options.Size(m) 95 | } 96 | func (m *Options) XXX_DiscardUnknown() { 97 | xxx_messageInfo_Options.DiscardUnknown(m) 98 | } 99 | 100 | var xxx_messageInfo_Options proto.InternalMessageInfo 101 | 102 | func (m *Options) GetRequestBatchMaxCount() uint64 { 103 | if m != nil { 104 | return m.RequestBatchMaxCount 105 | } 106 | return 0 107 | } 108 | 109 | func (m *Options) GetRequestBatchMaxBytes() uint64 { 110 | if m != nil { 111 | return m.RequestBatchMaxBytes 112 | } 113 | return 0 114 | } 115 | 116 | func (m *Options) GetRequestBatchMaxInterval() string { 117 | if m != nil { 118 | return m.RequestBatchMaxInterval 119 | } 120 | return "" 121 | } 122 | 123 | func (m *Options) GetIncomingMessageBufferSize() uint64 { 124 | if m != nil { 125 | return m.IncomingMessageBufferSize 126 | } 127 | return 0 128 | } 129 | 130 | func (m *Options) GetRequestPoolSize() uint64 { 131 | if m != nil { 132 | return m.RequestPoolSize 133 | } 134 | return 0 135 | } 136 | 137 | func (m *Options) GetRequestForwardTimeout() string { 138 | if m != nil { 139 | return m.RequestForwardTimeout 140 | } 141 | return "" 142 | } 143 | 144 | func (m *Options) GetRequestComplainTimeout() string { 145 | if m != nil { 146 | return m.RequestComplainTimeout 147 | } 148 | return "" 149 | } 150 | 151 | func (m *Options) GetRequestAutoRemoveTimeout() string { 152 | if m != nil { 153 | return m.RequestAutoRemoveTimeout 154 | } 155 | return "" 156 | } 157 | 158 | func (m *Options) GetRequestMaxBytes() uint64 { 159 | if m != nil { 160 | return m.RequestMaxBytes 161 | } 162 | return 0 163 | } 164 | 165 | func (m *Options) GetViewChangeResendInterval() string { 166 | if m != nil { 167 | return m.ViewChangeResendInterval 168 | } 169 | return "" 170 | } 171 | 172 | func (m *Options) GetViewChangeTimeout() string { 173 | if m != nil { 174 | return m.ViewChangeTimeout 175 | } 176 | return "" 177 | } 178 | 179 | func (m *Options) GetLeaderHeartbeatTimeout() string { 180 | if m != nil { 181 | return m.LeaderHeartbeatTimeout 182 | } 183 | return "" 184 | } 185 | 186 | func (m *Options) GetLeaderHeartbeatCount() uint64 { 187 | if m != nil { 188 | return m.LeaderHeartbeatCount 189 | } 190 | return 0 191 | } 192 | 193 | func (m *Options) GetCollectTimeout() string { 194 | if m != nil { 195 | return m.CollectTimeout 196 | } 197 | return "" 198 | } 199 | 200 | func (m *Options) GetSyncOnStart() bool { 201 | if m != nil { 202 | return m.SyncOnStart 203 | } 204 | return false 205 | } 206 | 207 | func (m *Options) GetSpeedUpViewChange() bool { 208 | if m != nil { 209 | return m.SpeedUpViewChange 210 | } 211 | return false 212 | } 213 | 214 | func (m *Options) GetLeaderRotation() Options_Rotation { 215 | if m != nil { 216 | return m.LeaderRotation 217 | } 218 | return Options_ROTATION_UNSPECIFIED 219 | } 220 | 221 | func (m *Options) GetDecisionsPerLeader() uint64 { 222 | if m != nil { 223 | return m.DecisionsPerLeader 224 | } 225 | return 0 226 | } 227 | 228 | func init() { 229 | proto.RegisterEnum("orderer.smartbft.Options_Rotation", Options_Rotation_name, Options_Rotation_value) 230 | proto.RegisterType((*Options)(nil), "orderer.smartbft.Options") 231 | } 232 | 233 | func init() { 234 | proto.RegisterFile("orderer/smartbft/configuration.proto", fileDescriptor_a8a81ac5a2771ff3) 235 | } 236 | 237 | var fileDescriptor_a8a81ac5a2771ff3 = []byte{ 238 | // 620 bytes of a gzipped FileDescriptorProto 239 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x94, 0x5d, 0x6f, 0xd3, 0x3c, 240 | 0x14, 0xc7, 0x9f, 0xee, 0x19, 0x5b, 0xe7, 0x6d, 0x7d, 0x31, 0x65, 0x0b, 0x8c, 0x8b, 0xaa, 0x42, 241 | 0xa2, 0x42, 0x5a, 0x8a, 0x78, 0xd3, 0x24, 0x34, 0xa1, 0xb5, 0xac, 0x50, 0xc1, 0xd6, 0x29, 0xdb, 242 | 0xb8, 0xe0, 0xc6, 0x72, 0x93, 0xd3, 0xd4, 0x28, 0x89, 0x83, 0xed, 0xec, 0xed, 0xeb, 0xf0, 0x45, 243 | 0x51, 0xec, 0x38, 0x2d, 0xdd, 0x2e, 0xe3, 0xdf, 0xff, 0x97, 0xe3, 0x13, 0x1f, 0x07, 0xbd, 0xe0, 244 | 0x22, 0x00, 0x01, 0xa2, 0x27, 0x63, 0x2a, 0xd4, 0x64, 0xaa, 0x7a, 0x3e, 0x4f, 0xa6, 0x2c, 0xcc, 245 | 0x04, 0x55, 0x8c, 0x27, 0x6e, 0x2a, 0xb8, 0xe2, 0xb8, 0x51, 0xa4, 0x5c, 0x9b, 0xea, 0xfc, 0xa9, 246 | 0xa2, 0xf5, 0x71, 0x9a, 0x47, 0x24, 0x7e, 0x8f, 0x76, 0x05, 0xfc, 0xce, 0x40, 0x2a, 0x32, 0xa1, 247 | 0xca, 0x9f, 0x91, 0x98, 0xde, 0x10, 0x9f, 0x67, 0x89, 0x72, 0x2a, 0xed, 0x4a, 0x77, 0xd5, 0x6b, 248 | 0x15, 0xb8, 0x9f, 0xd3, 0x13, 0x7a, 0x33, 0xc8, 0xd9, 0xc3, 0xda, 0xe4, 0x56, 0x81, 0x74, 0x56, 249 | 0x1e, 0xd4, 0xfa, 0x39, 0xc3, 0x1f, 0xd1, 0xb3, 0xfb, 0x1a, 0x4b, 0x14, 0x88, 0x2b, 0x1a, 0x39, 250 | 0xff, 0xb7, 0x2b, 0xdd, 0x0d, 0x6f, 0x77, 0xc9, 0x1c, 0x15, 0x18, 0x7f, 0x42, 0xcf, 0x59, 0xe2, 251 | 0xf3, 0x98, 0x25, 0x21, 0x89, 0x41, 0x4a, 0x1a, 0x02, 0x99, 0x64, 0xd3, 0x29, 0x08, 0x22, 0xd9, 252 | 0x1d, 0x38, 0xab, 0xba, 0xf0, 0x53, 0x9b, 0x39, 0x31, 0x91, 0xbe, 0x4e, 0x9c, 0xb3, 0x3b, 0xc0, 253 | 0xaf, 0x50, 0xd3, 0x56, 0x4f, 0x39, 0x8f, 0x8c, 0xf5, 0x48, 0x5b, 0xf5, 0x02, 0x9c, 0x71, 0x1e, 254 | 0xe9, 0xec, 0x87, 0x79, 0x83, 0x53, 0x2e, 0xae, 0xa9, 0x08, 0x88, 0x62, 0x31, 0xf0, 0x4c, 0x39, 255 | 0x6b, 0x7a, 0x9b, 0x4f, 0x0a, 0x3c, 0x34, 0xf4, 0xc2, 0x40, 0x7c, 0x80, 0x1c, 0xeb, 0xf9, 0x3c, 256 | 0x4e, 0x23, 0xca, 0x92, 0x52, 0x5c, 0xd7, 0xe2, 0x4e, 0xc1, 0x07, 0x05, 0xb6, 0xe6, 0x21, 0xda, 257 | 0xb3, 0x26, 0xcd, 0x14, 0x27, 0x02, 0x62, 0x7e, 0x05, 0xa5, 0x5c, 0xd5, 0xb2, 0x7d, 0xf9, 0x51, 258 | 0xa6, 0xb8, 0xa7, 0x03, 0x56, 0x5f, 0x68, 0x6e, 0x7e, 0x16, 0x1b, 0xff, 0x34, 0x57, 0x1e, 0xc3, 259 | 0x21, 0xda, 0xbb, 0x62, 0x70, 0x4d, 0xfc, 0x19, 0x4d, 0x42, 0x20, 0x02, 0x24, 0x24, 0xc1, 0xfc, 260 | 0x1c, 0x90, 0x29, 0x95, 0x47, 0x06, 0x3a, 0xe1, 0xe9, 0x40, 0x79, 0x10, 0x2e, 0x7a, 0xbc, 0xa8, 261 | 0xdb, 0x1d, 0x6e, 0x6a, 0xad, 0x39, 0xd7, 0x16, 0xbe, 0x49, 0x04, 0x34, 0x00, 0x41, 0x66, 0x90, 262 | 0x8f, 0x20, 0x50, 0x55, 0x4a, 0x5b, 0xe6, 0x9b, 0x18, 0xfe, 0xd5, 0x62, 0x6b, 0xbe, 0x43, 0x3b, 263 | 0xf7, 0x4c, 0x33, 0x9c, 0xdb, 0x66, 0xca, 0x96, 0x3c, 0x33, 0x9c, 0x2f, 0x51, 0xdd, 0xe7, 0x51, 264 | 0x04, 0xfe, 0xbc, 0x4c, 0x4d, 0x97, 0xa9, 0x15, 0xcb, 0xf6, 0xf5, 0x1d, 0xb4, 0x2d, 0x6f, 0x13, 265 | 0x9f, 0xf0, 0x84, 0x48, 0x45, 0x85, 0x72, 0xea, 0xed, 0x4a, 0xb7, 0xea, 0x6d, 0xe6, 0x8b, 0xe3, 266 | 0xe4, 0x3c, 0x5f, 0xc2, 0x3d, 0xd4, 0x92, 0x29, 0x40, 0x40, 0xb2, 0x94, 0x2c, 0x74, 0xed, 0x34, 267 | 0x74, 0xb4, 0xa9, 0xd9, 0x65, 0xfa, 0xa3, 0x6c, 0x1a, 0x7f, 0x43, 0xf5, 0x62, 0xcf, 0x82, 0x2b, 268 | 0x7d, 0x11, 0x9d, 0x66, 0xbb, 0xd2, 0xad, 0xbd, 0xe9, 0xb8, 0xcb, 0x37, 0xd1, 0x2d, 0x6e, 0xa1, 269 | 0xeb, 0x15, 0x49, 0xaf, 0x66, 0x54, 0xfb, 0x8c, 0x5f, 0xa3, 0x56, 0x00, 0x3e, 0x93, 0x79, 0x8a, 270 | 0xa4, 0x20, 0x88, 0xe1, 0x0e, 0xd6, 0xed, 0xe3, 0x92, 0x9d, 0x81, 0xf8, 0xae, 0x49, 0xe7, 0x0b, 271 | 0xaa, 0x96, 0xb6, 0x83, 0x5a, 0xde, 0xf8, 0xe2, 0xe8, 0x62, 0x34, 0x3e, 0x25, 0x97, 0xa7, 0xe7, 272 | 0x67, 0xc7, 0x83, 0xd1, 0x70, 0x74, 0xfc, 0xb9, 0xf1, 0x1f, 0x6e, 0xa0, 0xad, 0x92, 0x8c, 0x87, 273 | 0xc3, 0x46, 0x05, 0xd7, 0xd1, 0xe6, 0x7c, 0xe5, 0xb4, 0xb1, 0xd2, 0xff, 0x85, 0x5c, 0x2e, 0x42, 274 | 0x77, 0x76, 0x9b, 0x82, 0x88, 0x20, 0x08, 0x41, 0xb8, 0x53, 0x3a, 0x11, 0xcc, 0x37, 0xff, 0x15, 275 | 0x79, 0xaf, 0x9b, 0x9f, 0x07, 0x21, 0x53, 0xb3, 0x6c, 0xe2, 0xfa, 0x3c, 0xee, 0x2d, 0x68, 0x3d, 276 | 0xa3, 0xed, 0x1b, 0x6d, 0x3f, 0xe4, 0xbd, 0xe5, 0xff, 0xd6, 0x64, 0x4d, 0xb3, 0xb7, 0x7f, 0x03, 277 | 0x00, 0x00, 0xff, 0xff, 0xa7, 0xee, 0x1e, 0x49, 0xd2, 0x04, 0x00, 0x00, 278 | } 279 | -------------------------------------------------------------------------------- /peer/chaincode_event.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/chaincode_event.proto 3 | 4 | package peer 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // ChaincodeEvent is used for events and registrations that are specific to chaincode 24 | // string type - "chaincode" 25 | type ChaincodeEvent struct { 26 | ChaincodeId string `protobuf:"bytes,1,opt,name=chaincode_id,json=chaincodeId,proto3" json:"chaincode_id,omitempty"` 27 | TxId string `protobuf:"bytes,2,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"` 28 | EventName string `protobuf:"bytes,3,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"` 29 | Payload []byte `protobuf:"bytes,4,opt,name=payload,proto3" json:"payload,omitempty"` 30 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 31 | XXX_unrecognized []byte `json:"-"` 32 | XXX_sizecache int32 `json:"-"` 33 | } 34 | 35 | func (m *ChaincodeEvent) Reset() { *m = ChaincodeEvent{} } 36 | func (m *ChaincodeEvent) String() string { return proto.CompactTextString(m) } 37 | func (*ChaincodeEvent) ProtoMessage() {} 38 | func (*ChaincodeEvent) Descriptor() ([]byte, []int) { 39 | return fileDescriptor_e11f3d5e149f14fa, []int{0} 40 | } 41 | 42 | func (m *ChaincodeEvent) XXX_Unmarshal(b []byte) error { 43 | return xxx_messageInfo_ChaincodeEvent.Unmarshal(m, b) 44 | } 45 | func (m *ChaincodeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 | return xxx_messageInfo_ChaincodeEvent.Marshal(b, m, deterministic) 47 | } 48 | func (m *ChaincodeEvent) XXX_Merge(src proto.Message) { 49 | xxx_messageInfo_ChaincodeEvent.Merge(m, src) 50 | } 51 | func (m *ChaincodeEvent) XXX_Size() int { 52 | return xxx_messageInfo_ChaincodeEvent.Size(m) 53 | } 54 | func (m *ChaincodeEvent) XXX_DiscardUnknown() { 55 | xxx_messageInfo_ChaincodeEvent.DiscardUnknown(m) 56 | } 57 | 58 | var xxx_messageInfo_ChaincodeEvent proto.InternalMessageInfo 59 | 60 | func (m *ChaincodeEvent) GetChaincodeId() string { 61 | if m != nil { 62 | return m.ChaincodeId 63 | } 64 | return "" 65 | } 66 | 67 | func (m *ChaincodeEvent) GetTxId() string { 68 | if m != nil { 69 | return m.TxId 70 | } 71 | return "" 72 | } 73 | 74 | func (m *ChaincodeEvent) GetEventName() string { 75 | if m != nil { 76 | return m.EventName 77 | } 78 | return "" 79 | } 80 | 81 | func (m *ChaincodeEvent) GetPayload() []byte { 82 | if m != nil { 83 | return m.Payload 84 | } 85 | return nil 86 | } 87 | 88 | func init() { 89 | proto.RegisterType((*ChaincodeEvent)(nil), "protos.ChaincodeEvent") 90 | } 91 | 92 | func init() { proto.RegisterFile("peer/chaincode_event.proto", fileDescriptor_e11f3d5e149f14fa) } 93 | 94 | var fileDescriptor_e11f3d5e149f14fa = []byte{ 95 | // 221 bytes of a gzipped FileDescriptorProto 96 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x2a, 0x48, 0x4d, 0x2d, 97 | 0xd2, 0x4f, 0xce, 0x48, 0xcc, 0xcc, 0x4b, 0xce, 0x4f, 0x49, 0x8d, 0x4f, 0x2d, 0x4b, 0xcd, 0x2b, 98 | 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x03, 0x53, 0xc5, 0x4a, 0x8d, 0x8c, 0x5c, 0x7c, 99 | 0xce, 0x30, 0x15, 0xae, 0x20, 0x05, 0x42, 0x8a, 0x5c, 0x3c, 0x08, 0x3d, 0x99, 0x29, 0x12, 0x8c, 100 | 0x0a, 0x8c, 0x1a, 0x9c, 0x41, 0xdc, 0x70, 0x31, 0xcf, 0x14, 0x21, 0x61, 0x2e, 0xd6, 0x92, 0x0a, 101 | 0x90, 0x1c, 0x13, 0x58, 0x8e, 0xa5, 0xa4, 0xc2, 0x33, 0x45, 0x48, 0x96, 0x8b, 0x0b, 0x6c, 0x43, 102 | 0x7c, 0x5e, 0x62, 0x6e, 0xaa, 0x04, 0x33, 0x58, 0x86, 0x13, 0x2c, 0xe2, 0x97, 0x98, 0x9b, 0x2a, 103 | 0x24, 0xc1, 0xc5, 0x5e, 0x90, 0x58, 0x99, 0x93, 0x9f, 0x98, 0x22, 0xc1, 0xa2, 0xc0, 0xa8, 0xc1, 104 | 0x13, 0x04, 0xe3, 0x3a, 0x65, 0x72, 0x29, 0xe5, 0x17, 0xa5, 0xeb, 0x65, 0x54, 0x16, 0xa4, 0x16, 105 | 0xe5, 0xa4, 0xa6, 0xa4, 0xa7, 0x16, 0xe9, 0xa5, 0x25, 0x26, 0x15, 0x65, 0x26, 0x43, 0xdc, 0x5a, 106 | 0xac, 0x07, 0xf2, 0x87, 0x93, 0x28, 0xaa, 0x33, 0x03, 0x12, 0x93, 0xb3, 0x13, 0xd3, 0x53, 0xa3, 107 | 0x74, 0xd2, 0x33, 0x4b, 0x32, 0x4a, 0x93, 0xf4, 0x92, 0xf3, 0x73, 0xf5, 0x91, 0x4c, 0xd0, 0x87, 108 | 0x98, 0xa0, 0x0b, 0x31, 0x41, 0x37, 0x3d, 0x5f, 0x1f, 0x64, 0x48, 0x12, 0xc4, 0xdb, 0xc6, 0x80, 109 | 0x00, 0x00, 0x00, 0xff, 0xff, 0xf1, 0xe0, 0xae, 0xf8, 0x1b, 0x01, 0x00, 0x00, 110 | } 111 | -------------------------------------------------------------------------------- /peer/collection.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/collection.proto 3 | 4 | package peer 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | common "github.com/hyperledger/fabric-protos-go/common" 10 | math "math" 11 | ) 12 | 13 | // Reference imports to suppress errors if they are not otherwise used. 14 | var _ = proto.Marshal 15 | var _ = fmt.Errorf 16 | var _ = math.Inf 17 | 18 | // This is a compile-time assertion to ensure that this generated file 19 | // is compatible with the proto package it is being compiled against. 20 | // A compilation error at this line likely means your copy of the 21 | // proto package needs to be updated. 22 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 | 24 | // CollectionConfigPackage represents an array of CollectionConfig 25 | // messages; the extra struct is required because repeated oneof is 26 | // forbidden by the protobuf syntax 27 | type CollectionConfigPackage struct { 28 | Config []*CollectionConfig `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty"` 29 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 | XXX_unrecognized []byte `json:"-"` 31 | XXX_sizecache int32 `json:"-"` 32 | } 33 | 34 | func (m *CollectionConfigPackage) Reset() { *m = CollectionConfigPackage{} } 35 | func (m *CollectionConfigPackage) String() string { return proto.CompactTextString(m) } 36 | func (*CollectionConfigPackage) ProtoMessage() {} 37 | func (*CollectionConfigPackage) Descriptor() ([]byte, []int) { 38 | return fileDescriptor_d8182e05ac5917d8, []int{0} 39 | } 40 | 41 | func (m *CollectionConfigPackage) XXX_Unmarshal(b []byte) error { 42 | return xxx_messageInfo_CollectionConfigPackage.Unmarshal(m, b) 43 | } 44 | func (m *CollectionConfigPackage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 | return xxx_messageInfo_CollectionConfigPackage.Marshal(b, m, deterministic) 46 | } 47 | func (m *CollectionConfigPackage) XXX_Merge(src proto.Message) { 48 | xxx_messageInfo_CollectionConfigPackage.Merge(m, src) 49 | } 50 | func (m *CollectionConfigPackage) XXX_Size() int { 51 | return xxx_messageInfo_CollectionConfigPackage.Size(m) 52 | } 53 | func (m *CollectionConfigPackage) XXX_DiscardUnknown() { 54 | xxx_messageInfo_CollectionConfigPackage.DiscardUnknown(m) 55 | } 56 | 57 | var xxx_messageInfo_CollectionConfigPackage proto.InternalMessageInfo 58 | 59 | func (m *CollectionConfigPackage) GetConfig() []*CollectionConfig { 60 | if m != nil { 61 | return m.Config 62 | } 63 | return nil 64 | } 65 | 66 | // CollectionConfig defines the configuration of a collection object; 67 | // it currently contains a single, static type. 68 | // Dynamic collections are deferred. 69 | type CollectionConfig struct { 70 | // Types that are valid to be assigned to Payload: 71 | // 72 | // *CollectionConfig_StaticCollectionConfig 73 | Payload isCollectionConfig_Payload `protobuf_oneof:"payload"` 74 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 75 | XXX_unrecognized []byte `json:"-"` 76 | XXX_sizecache int32 `json:"-"` 77 | } 78 | 79 | func (m *CollectionConfig) Reset() { *m = CollectionConfig{} } 80 | func (m *CollectionConfig) String() string { return proto.CompactTextString(m) } 81 | func (*CollectionConfig) ProtoMessage() {} 82 | func (*CollectionConfig) Descriptor() ([]byte, []int) { 83 | return fileDescriptor_d8182e05ac5917d8, []int{1} 84 | } 85 | 86 | func (m *CollectionConfig) XXX_Unmarshal(b []byte) error { 87 | return xxx_messageInfo_CollectionConfig.Unmarshal(m, b) 88 | } 89 | func (m *CollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 90 | return xxx_messageInfo_CollectionConfig.Marshal(b, m, deterministic) 91 | } 92 | func (m *CollectionConfig) XXX_Merge(src proto.Message) { 93 | xxx_messageInfo_CollectionConfig.Merge(m, src) 94 | } 95 | func (m *CollectionConfig) XXX_Size() int { 96 | return xxx_messageInfo_CollectionConfig.Size(m) 97 | } 98 | func (m *CollectionConfig) XXX_DiscardUnknown() { 99 | xxx_messageInfo_CollectionConfig.DiscardUnknown(m) 100 | } 101 | 102 | var xxx_messageInfo_CollectionConfig proto.InternalMessageInfo 103 | 104 | type isCollectionConfig_Payload interface { 105 | isCollectionConfig_Payload() 106 | } 107 | 108 | type CollectionConfig_StaticCollectionConfig struct { 109 | StaticCollectionConfig *StaticCollectionConfig `protobuf:"bytes,1,opt,name=static_collection_config,json=staticCollectionConfig,proto3,oneof"` 110 | } 111 | 112 | func (*CollectionConfig_StaticCollectionConfig) isCollectionConfig_Payload() {} 113 | 114 | func (m *CollectionConfig) GetPayload() isCollectionConfig_Payload { 115 | if m != nil { 116 | return m.Payload 117 | } 118 | return nil 119 | } 120 | 121 | func (m *CollectionConfig) GetStaticCollectionConfig() *StaticCollectionConfig { 122 | if x, ok := m.GetPayload().(*CollectionConfig_StaticCollectionConfig); ok { 123 | return x.StaticCollectionConfig 124 | } 125 | return nil 126 | } 127 | 128 | // XXX_OneofWrappers is for the internal use of the proto package. 129 | func (*CollectionConfig) XXX_OneofWrappers() []interface{} { 130 | return []interface{}{ 131 | (*CollectionConfig_StaticCollectionConfig)(nil), 132 | } 133 | } 134 | 135 | // StaticCollectionConfig constitutes the configuration parameters of a 136 | // static collection object. Static collections are collections that are 137 | // known at chaincode instantiation time, and that cannot be changed. 138 | // Dynamic collections are deferred. 139 | type StaticCollectionConfig struct { 140 | // the name of the collection inside the denoted chaincode 141 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 142 | // a reference to a policy residing / managed in the config block 143 | // to define which orgs have access to this collection’s private data 144 | MemberOrgsPolicy *CollectionPolicyConfig `protobuf:"bytes,2,opt,name=member_orgs_policy,json=memberOrgsPolicy,proto3" json:"member_orgs_policy,omitempty"` 145 | // The minimum number of peers private data will be sent to upon 146 | // endorsement. The endorsement would fail if dissemination to at least 147 | // this number of peers is not achieved. 148 | RequiredPeerCount int32 `protobuf:"varint,3,opt,name=required_peer_count,json=requiredPeerCount,proto3" json:"required_peer_count,omitempty"` 149 | // The maximum number of peers that private data will be sent to 150 | // upon endorsement. This number has to be bigger than required_peer_count. 151 | MaximumPeerCount int32 `protobuf:"varint,4,opt,name=maximum_peer_count,json=maximumPeerCount,proto3" json:"maximum_peer_count,omitempty"` 152 | // The number of blocks after which the collection data expires. 153 | // For instance if the value is set to 10, a key last modified by block number 100 154 | // will be purged at block number 111. A zero value is treated same as MaxUint64 155 | BlockToLive uint64 `protobuf:"varint,5,opt,name=block_to_live,json=blockToLive,proto3" json:"block_to_live,omitempty"` 156 | // The member only read access denotes whether only collection member clients 157 | // can read the private data (if set to true), or even non members can 158 | // read the data (if set to false, for example if you want to implement more granular 159 | // access logic in the chaincode) 160 | MemberOnlyRead bool `protobuf:"varint,6,opt,name=member_only_read,json=memberOnlyRead,proto3" json:"member_only_read,omitempty"` 161 | // The member only write access denotes whether only collection member clients 162 | // can write the private data (if set to true), or even non members can 163 | // write the data (if set to false, for example if you want to implement more granular 164 | // access logic in the chaincode) 165 | MemberOnlyWrite bool `protobuf:"varint,7,opt,name=member_only_write,json=memberOnlyWrite,proto3" json:"member_only_write,omitempty"` 166 | // a reference to a policy residing / managed in the config block 167 | // to define the endorsement policy for this collection 168 | EndorsementPolicy *ApplicationPolicy `protobuf:"bytes,8,opt,name=endorsement_policy,json=endorsementPolicy,proto3" json:"endorsement_policy,omitempty"` 169 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 170 | XXX_unrecognized []byte `json:"-"` 171 | XXX_sizecache int32 `json:"-"` 172 | } 173 | 174 | func (m *StaticCollectionConfig) Reset() { *m = StaticCollectionConfig{} } 175 | func (m *StaticCollectionConfig) String() string { return proto.CompactTextString(m) } 176 | func (*StaticCollectionConfig) ProtoMessage() {} 177 | func (*StaticCollectionConfig) Descriptor() ([]byte, []int) { 178 | return fileDescriptor_d8182e05ac5917d8, []int{2} 179 | } 180 | 181 | func (m *StaticCollectionConfig) XXX_Unmarshal(b []byte) error { 182 | return xxx_messageInfo_StaticCollectionConfig.Unmarshal(m, b) 183 | } 184 | func (m *StaticCollectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 185 | return xxx_messageInfo_StaticCollectionConfig.Marshal(b, m, deterministic) 186 | } 187 | func (m *StaticCollectionConfig) XXX_Merge(src proto.Message) { 188 | xxx_messageInfo_StaticCollectionConfig.Merge(m, src) 189 | } 190 | func (m *StaticCollectionConfig) XXX_Size() int { 191 | return xxx_messageInfo_StaticCollectionConfig.Size(m) 192 | } 193 | func (m *StaticCollectionConfig) XXX_DiscardUnknown() { 194 | xxx_messageInfo_StaticCollectionConfig.DiscardUnknown(m) 195 | } 196 | 197 | var xxx_messageInfo_StaticCollectionConfig proto.InternalMessageInfo 198 | 199 | func (m *StaticCollectionConfig) GetName() string { 200 | if m != nil { 201 | return m.Name 202 | } 203 | return "" 204 | } 205 | 206 | func (m *StaticCollectionConfig) GetMemberOrgsPolicy() *CollectionPolicyConfig { 207 | if m != nil { 208 | return m.MemberOrgsPolicy 209 | } 210 | return nil 211 | } 212 | 213 | func (m *StaticCollectionConfig) GetRequiredPeerCount() int32 { 214 | if m != nil { 215 | return m.RequiredPeerCount 216 | } 217 | return 0 218 | } 219 | 220 | func (m *StaticCollectionConfig) GetMaximumPeerCount() int32 { 221 | if m != nil { 222 | return m.MaximumPeerCount 223 | } 224 | return 0 225 | } 226 | 227 | func (m *StaticCollectionConfig) GetBlockToLive() uint64 { 228 | if m != nil { 229 | return m.BlockToLive 230 | } 231 | return 0 232 | } 233 | 234 | func (m *StaticCollectionConfig) GetMemberOnlyRead() bool { 235 | if m != nil { 236 | return m.MemberOnlyRead 237 | } 238 | return false 239 | } 240 | 241 | func (m *StaticCollectionConfig) GetMemberOnlyWrite() bool { 242 | if m != nil { 243 | return m.MemberOnlyWrite 244 | } 245 | return false 246 | } 247 | 248 | func (m *StaticCollectionConfig) GetEndorsementPolicy() *ApplicationPolicy { 249 | if m != nil { 250 | return m.EndorsementPolicy 251 | } 252 | return nil 253 | } 254 | 255 | // Collection policy configuration. Initially, the configuration can only 256 | // contain a SignaturePolicy. In the future, the SignaturePolicy may be a 257 | // more general Policy. Instead of containing the actual policy, the 258 | // configuration may in the future contain a string reference to a policy. 259 | type CollectionPolicyConfig struct { 260 | // Types that are valid to be assigned to Payload: 261 | // 262 | // *CollectionPolicyConfig_SignaturePolicy 263 | Payload isCollectionPolicyConfig_Payload `protobuf_oneof:"payload"` 264 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 265 | XXX_unrecognized []byte `json:"-"` 266 | XXX_sizecache int32 `json:"-"` 267 | } 268 | 269 | func (m *CollectionPolicyConfig) Reset() { *m = CollectionPolicyConfig{} } 270 | func (m *CollectionPolicyConfig) String() string { return proto.CompactTextString(m) } 271 | func (*CollectionPolicyConfig) ProtoMessage() {} 272 | func (*CollectionPolicyConfig) Descriptor() ([]byte, []int) { 273 | return fileDescriptor_d8182e05ac5917d8, []int{3} 274 | } 275 | 276 | func (m *CollectionPolicyConfig) XXX_Unmarshal(b []byte) error { 277 | return xxx_messageInfo_CollectionPolicyConfig.Unmarshal(m, b) 278 | } 279 | func (m *CollectionPolicyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 280 | return xxx_messageInfo_CollectionPolicyConfig.Marshal(b, m, deterministic) 281 | } 282 | func (m *CollectionPolicyConfig) XXX_Merge(src proto.Message) { 283 | xxx_messageInfo_CollectionPolicyConfig.Merge(m, src) 284 | } 285 | func (m *CollectionPolicyConfig) XXX_Size() int { 286 | return xxx_messageInfo_CollectionPolicyConfig.Size(m) 287 | } 288 | func (m *CollectionPolicyConfig) XXX_DiscardUnknown() { 289 | xxx_messageInfo_CollectionPolicyConfig.DiscardUnknown(m) 290 | } 291 | 292 | var xxx_messageInfo_CollectionPolicyConfig proto.InternalMessageInfo 293 | 294 | type isCollectionPolicyConfig_Payload interface { 295 | isCollectionPolicyConfig_Payload() 296 | } 297 | 298 | type CollectionPolicyConfig_SignaturePolicy struct { 299 | SignaturePolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"` 300 | } 301 | 302 | func (*CollectionPolicyConfig_SignaturePolicy) isCollectionPolicyConfig_Payload() {} 303 | 304 | func (m *CollectionPolicyConfig) GetPayload() isCollectionPolicyConfig_Payload { 305 | if m != nil { 306 | return m.Payload 307 | } 308 | return nil 309 | } 310 | 311 | func (m *CollectionPolicyConfig) GetSignaturePolicy() *common.SignaturePolicyEnvelope { 312 | if x, ok := m.GetPayload().(*CollectionPolicyConfig_SignaturePolicy); ok { 313 | return x.SignaturePolicy 314 | } 315 | return nil 316 | } 317 | 318 | // XXX_OneofWrappers is for the internal use of the proto package. 319 | func (*CollectionPolicyConfig) XXX_OneofWrappers() []interface{} { 320 | return []interface{}{ 321 | (*CollectionPolicyConfig_SignaturePolicy)(nil), 322 | } 323 | } 324 | 325 | func init() { 326 | proto.RegisterType((*CollectionConfigPackage)(nil), "protos.CollectionConfigPackage") 327 | proto.RegisterType((*CollectionConfig)(nil), "protos.CollectionConfig") 328 | proto.RegisterType((*StaticCollectionConfig)(nil), "protos.StaticCollectionConfig") 329 | proto.RegisterType((*CollectionPolicyConfig)(nil), "protos.CollectionPolicyConfig") 330 | } 331 | 332 | func init() { proto.RegisterFile("peer/collection.proto", fileDescriptor_d8182e05ac5917d8) } 333 | 334 | var fileDescriptor_d8182e05ac5917d8 = []byte{ 335 | // 479 bytes of a gzipped FileDescriptorProto 336 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0xd1, 0x6a, 0xdb, 0x3e, 337 | 0x18, 0xc5, 0x9b, 0x7f, 0xd2, 0xb4, 0x55, 0xf8, 0xaf, 0x89, 0x46, 0x33, 0xaf, 0x17, 0x5b, 0xf0, 338 | 0x95, 0x19, 0xad, 0x33, 0xba, 0x27, 0x58, 0xc3, 0x20, 0xb0, 0xc0, 0x82, 0x3a, 0x18, 0xf4, 0xc6, 339 | 0x28, 0xf2, 0x57, 0x57, 0x54, 0x96, 0x5c, 0x49, 0xce, 0xe6, 0x77, 0xd9, 0xc3, 0x0e, 0x4b, 0x71, 340 | 0xed, 0x86, 0x5c, 0x25, 0x9c, 0xf3, 0x3b, 0x9f, 0x3e, 0x1d, 0x64, 0x74, 0x51, 0x00, 0xe8, 0x39, 341 | 0x53, 0x42, 0x00, 0xb3, 0x5c, 0xc9, 0xb8, 0xd0, 0xca, 0x2a, 0x3c, 0x74, 0x3f, 0xe6, 0xf2, 0x82, 342 | 0xa9, 0x3c, 0x57, 0x72, 0x5e, 0x28, 0xc1, 0x19, 0x07, 0xe3, 0xed, 0xcb, 0x89, 0x4b, 0x39, 0xb1, 343 | 0xf2, 0x52, 0xf8, 0x1d, 0xbd, 0x5b, 0xbc, 0x4c, 0x59, 0x28, 0xf9, 0xc0, 0xb3, 0x35, 0x65, 0x4f, 344 | 0x34, 0x03, 0xfc, 0x19, 0x0d, 0x99, 0x13, 0x82, 0xde, 0xac, 0x1f, 0x8d, 0x6e, 0x02, 0x1f, 0x31, 345 | 0xf1, 0x7e, 0x80, 0xec, 0xb8, 0xb0, 0x42, 0xe3, 0x7d, 0x0f, 0xdf, 0xa3, 0xc0, 0x58, 0x6a, 0x39, 346 | 0x4b, 0xda, 0x6d, 0x93, 0x97, 0xb9, 0xbd, 0x68, 0x74, 0xf3, 0xa1, 0x99, 0x7b, 0xe7, 0xb8, 0xfd, 347 | 0x09, 0xcb, 0x23, 0x32, 0x35, 0x07, 0x9d, 0xdb, 0x33, 0x74, 0x52, 0xd0, 0x4a, 0x28, 0x9a, 0x86, 348 | 0x7f, 0xfb, 0x68, 0x7a, 0x38, 0x8f, 0x31, 0x1a, 0x48, 0x9a, 0x83, 0x3b, 0xed, 0x8c, 0xb8, 0xff, 349 | 0x78, 0x85, 0x70, 0x0e, 0xf9, 0x06, 0x74, 0xa2, 0x74, 0x66, 0x12, 0x5f, 0x49, 0xf0, 0xdf, 0xeb, 350 | 0x7d, 0xda, 0x49, 0x6b, 0xe7, 0xef, 0x6e, 0x3b, 0xf6, 0xc9, 0x1f, 0x3a, 0x33, 0x5e, 0xc7, 0x31, 351 | 0x7a, 0xab, 0xe1, 0xb9, 0xe4, 0x1a, 0xd2, 0xa4, 0xae, 0x38, 0x61, 0xaa, 0x94, 0x36, 0xe8, 0xcf, 352 | 0x7a, 0xd1, 0x31, 0x99, 0x34, 0xd6, 0x1a, 0x40, 0x2f, 0x6a, 0x03, 0x5f, 0x21, 0x9c, 0xd3, 0x3f, 353 | 0x3c, 0x2f, 0xf3, 0x2e, 0x3e, 0x70, 0xf8, 0x78, 0xe7, 0xb4, 0x74, 0x88, 0xfe, 0xdf, 0x08, 0xc5, 354 | 0x9e, 0x12, 0xab, 0x12, 0xc1, 0xb7, 0x10, 0x1c, 0xcf, 0x7a, 0xd1, 0x80, 0x8c, 0x9c, 0xf8, 0x53, 355 | 0xad, 0xf8, 0x16, 0x70, 0x84, 0xc6, 0xcd, 0x7d, 0xa4, 0xa8, 0x12, 0x0d, 0x34, 0x0d, 0x86, 0xb3, 356 | 0x5e, 0x74, 0x4a, 0xde, 0xec, 0xb6, 0x95, 0xa2, 0x22, 0x40, 0x53, 0xfc, 0x09, 0x4d, 0xba, 0xe4, 357 | 0x6f, 0xcd, 0x2d, 0x04, 0x27, 0x0e, 0x3d, 0x6f, 0xd1, 0x5f, 0xb5, 0x8c, 0x97, 0x08, 0x83, 0x4c, 358 | 0x95, 0x36, 0x90, 0x83, 0xb4, 0x4d, 0x4b, 0xa7, 0xae, 0xa5, 0xf7, 0x4d, 0x4b, 0x5f, 0x8b, 0x42, 359 | 0x70, 0x46, 0xdb, 0x9a, 0xc8, 0xa4, 0x13, 0xf2, 0x52, 0xf8, 0x8c, 0xa6, 0x87, 0xdb, 0xc4, 0x2b, 360 | 0x34, 0x36, 0x3c, 0x93, 0xd4, 0x96, 0x1a, 0x9a, 0x13, 0xfc, 0xbb, 0xf8, 0x18, 0xfb, 0x57, 0x1c, 361 | 0xdf, 0x35, 0xbe, 0x0f, 0x7e, 0x93, 0x5b, 0x10, 0xaa, 0x80, 0xe5, 0x11, 0x39, 0x37, 0xaf, 0xad, 362 | 0xce, 0x8b, 0xb8, 0x25, 0x28, 0x54, 0x3a, 0x8b, 0x1f, 0xab, 0x02, 0xb4, 0x80, 0x34, 0x03, 0x1d, 363 | 0x3f, 0xd0, 0x8d, 0xe6, 0xac, 0x59, 0xbc, 0xae, 0xfe, 0xfe, 0x2a, 0xe3, 0xf6, 0xb1, 0xdc, 0xd4, 364 | 0x47, 0xcd, 0x3b, 0xe8, 0xdc, 0xa3, 0xd7, 0x1e, 0xbd, 0xce, 0xd4, 0xbc, 0xa6, 0x37, 0xfe, 0xfb, 365 | 0xfa, 0xf2, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x67, 0x04, 0x1f, 0x7f, 0x03, 0x00, 0x00, 366 | } 367 | -------------------------------------------------------------------------------- /peer/configuration.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/configuration.proto 3 | 4 | package peer 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // AnchorPeers simply represents list of anchor peers which is used in ConfigurationItem 24 | type AnchorPeers struct { 25 | AnchorPeers []*AnchorPeer `protobuf:"bytes,1,rep,name=anchor_peers,json=anchorPeers,proto3" json:"anchor_peers,omitempty"` 26 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 27 | XXX_unrecognized []byte `json:"-"` 28 | XXX_sizecache int32 `json:"-"` 29 | } 30 | 31 | func (m *AnchorPeers) Reset() { *m = AnchorPeers{} } 32 | func (m *AnchorPeers) String() string { return proto.CompactTextString(m) } 33 | func (*AnchorPeers) ProtoMessage() {} 34 | func (*AnchorPeers) Descriptor() ([]byte, []int) { 35 | return fileDescriptor_4978ae8738390a60, []int{0} 36 | } 37 | 38 | func (m *AnchorPeers) XXX_Unmarshal(b []byte) error { 39 | return xxx_messageInfo_AnchorPeers.Unmarshal(m, b) 40 | } 41 | func (m *AnchorPeers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 42 | return xxx_messageInfo_AnchorPeers.Marshal(b, m, deterministic) 43 | } 44 | func (m *AnchorPeers) XXX_Merge(src proto.Message) { 45 | xxx_messageInfo_AnchorPeers.Merge(m, src) 46 | } 47 | func (m *AnchorPeers) XXX_Size() int { 48 | return xxx_messageInfo_AnchorPeers.Size(m) 49 | } 50 | func (m *AnchorPeers) XXX_DiscardUnknown() { 51 | xxx_messageInfo_AnchorPeers.DiscardUnknown(m) 52 | } 53 | 54 | var xxx_messageInfo_AnchorPeers proto.InternalMessageInfo 55 | 56 | func (m *AnchorPeers) GetAnchorPeers() []*AnchorPeer { 57 | if m != nil { 58 | return m.AnchorPeers 59 | } 60 | return nil 61 | } 62 | 63 | // AnchorPeer message structure which provides information about anchor peer, it includes host name, 64 | // port number and peer certificate. 65 | type AnchorPeer struct { 66 | Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` 67 | Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` 68 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 69 | XXX_unrecognized []byte `json:"-"` 70 | XXX_sizecache int32 `json:"-"` 71 | } 72 | 73 | func (m *AnchorPeer) Reset() { *m = AnchorPeer{} } 74 | func (m *AnchorPeer) String() string { return proto.CompactTextString(m) } 75 | func (*AnchorPeer) ProtoMessage() {} 76 | func (*AnchorPeer) Descriptor() ([]byte, []int) { 77 | return fileDescriptor_4978ae8738390a60, []int{1} 78 | } 79 | 80 | func (m *AnchorPeer) XXX_Unmarshal(b []byte) error { 81 | return xxx_messageInfo_AnchorPeer.Unmarshal(m, b) 82 | } 83 | func (m *AnchorPeer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 84 | return xxx_messageInfo_AnchorPeer.Marshal(b, m, deterministic) 85 | } 86 | func (m *AnchorPeer) XXX_Merge(src proto.Message) { 87 | xxx_messageInfo_AnchorPeer.Merge(m, src) 88 | } 89 | func (m *AnchorPeer) XXX_Size() int { 90 | return xxx_messageInfo_AnchorPeer.Size(m) 91 | } 92 | func (m *AnchorPeer) XXX_DiscardUnknown() { 93 | xxx_messageInfo_AnchorPeer.DiscardUnknown(m) 94 | } 95 | 96 | var xxx_messageInfo_AnchorPeer proto.InternalMessageInfo 97 | 98 | func (m *AnchorPeer) GetHost() string { 99 | if m != nil { 100 | return m.Host 101 | } 102 | return "" 103 | } 104 | 105 | func (m *AnchorPeer) GetPort() int32 { 106 | if m != nil { 107 | return m.Port 108 | } 109 | return 0 110 | } 111 | 112 | // APIResource represents an API resource in the peer whose ACL 113 | // is determined by the policy_ref field 114 | type APIResource struct { 115 | PolicyRef string `protobuf:"bytes,1,opt,name=policy_ref,json=policyRef,proto3" json:"policy_ref,omitempty"` 116 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 117 | XXX_unrecognized []byte `json:"-"` 118 | XXX_sizecache int32 `json:"-"` 119 | } 120 | 121 | func (m *APIResource) Reset() { *m = APIResource{} } 122 | func (m *APIResource) String() string { return proto.CompactTextString(m) } 123 | func (*APIResource) ProtoMessage() {} 124 | func (*APIResource) Descriptor() ([]byte, []int) { 125 | return fileDescriptor_4978ae8738390a60, []int{2} 126 | } 127 | 128 | func (m *APIResource) XXX_Unmarshal(b []byte) error { 129 | return xxx_messageInfo_APIResource.Unmarshal(m, b) 130 | } 131 | func (m *APIResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 132 | return xxx_messageInfo_APIResource.Marshal(b, m, deterministic) 133 | } 134 | func (m *APIResource) XXX_Merge(src proto.Message) { 135 | xxx_messageInfo_APIResource.Merge(m, src) 136 | } 137 | func (m *APIResource) XXX_Size() int { 138 | return xxx_messageInfo_APIResource.Size(m) 139 | } 140 | func (m *APIResource) XXX_DiscardUnknown() { 141 | xxx_messageInfo_APIResource.DiscardUnknown(m) 142 | } 143 | 144 | var xxx_messageInfo_APIResource proto.InternalMessageInfo 145 | 146 | func (m *APIResource) GetPolicyRef() string { 147 | if m != nil { 148 | return m.PolicyRef 149 | } 150 | return "" 151 | } 152 | 153 | // ACLs provides mappings for resources in a channel. APIResource encapsulates 154 | // reference to a policy used to determine ACL for the resource 155 | type ACLs struct { 156 | Acls map[string]*APIResource `protobuf:"bytes,1,rep,name=acls,proto3" json:"acls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 157 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 158 | XXX_unrecognized []byte `json:"-"` 159 | XXX_sizecache int32 `json:"-"` 160 | } 161 | 162 | func (m *ACLs) Reset() { *m = ACLs{} } 163 | func (m *ACLs) String() string { return proto.CompactTextString(m) } 164 | func (*ACLs) ProtoMessage() {} 165 | func (*ACLs) Descriptor() ([]byte, []int) { 166 | return fileDescriptor_4978ae8738390a60, []int{3} 167 | } 168 | 169 | func (m *ACLs) XXX_Unmarshal(b []byte) error { 170 | return xxx_messageInfo_ACLs.Unmarshal(m, b) 171 | } 172 | func (m *ACLs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 173 | return xxx_messageInfo_ACLs.Marshal(b, m, deterministic) 174 | } 175 | func (m *ACLs) XXX_Merge(src proto.Message) { 176 | xxx_messageInfo_ACLs.Merge(m, src) 177 | } 178 | func (m *ACLs) XXX_Size() int { 179 | return xxx_messageInfo_ACLs.Size(m) 180 | } 181 | func (m *ACLs) XXX_DiscardUnknown() { 182 | xxx_messageInfo_ACLs.DiscardUnknown(m) 183 | } 184 | 185 | var xxx_messageInfo_ACLs proto.InternalMessageInfo 186 | 187 | func (m *ACLs) GetAcls() map[string]*APIResource { 188 | if m != nil { 189 | return m.Acls 190 | } 191 | return nil 192 | } 193 | 194 | func init() { 195 | proto.RegisterType((*AnchorPeers)(nil), "protos.AnchorPeers") 196 | proto.RegisterType((*AnchorPeer)(nil), "protos.AnchorPeer") 197 | proto.RegisterType((*APIResource)(nil), "protos.APIResource") 198 | proto.RegisterType((*ACLs)(nil), "protos.ACLs") 199 | proto.RegisterMapType((map[string]*APIResource)(nil), "protos.ACLs.AclsEntry") 200 | } 201 | 202 | func init() { proto.RegisterFile("peer/configuration.proto", fileDescriptor_4978ae8738390a60) } 203 | 204 | var fileDescriptor_4978ae8738390a60 = []byte{ 205 | // 296 bytes of a gzipped FileDescriptorProto 206 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0xcd, 0x4b, 0xc3, 0x40, 207 | 0x10, 0xc5, 0x49, 0x3f, 0x84, 0x4e, 0x3c, 0xc8, 0x0a, 0x12, 0x04, 0xa1, 0xe4, 0x54, 0xa5, 0x4d, 208 | 0xa0, 0x2a, 0x88, 0xb7, 0x58, 0x3d, 0x08, 0x3d, 0x94, 0x3d, 0x7a, 0x29, 0xe9, 0x3a, 0xf9, 0xc0, 209 | 0x98, 0x09, 0xb3, 0x89, 0x90, 0x9b, 0x7f, 0xba, 0x64, 0xb7, 0x4d, 0x3c, 0xed, 0xdb, 0xb7, 0xbf, 210 | 0x37, 0x3c, 0x76, 0xc0, 0xab, 0x10, 0x39, 0x54, 0x54, 0x26, 0x79, 0xda, 0x70, 0x5c, 0xe7, 0x54, 211 | 0x06, 0x15, 0x53, 0x4d, 0xe2, 0xcc, 0x1c, 0xda, 0x7f, 0x05, 0x37, 0x2a, 0x55, 0x46, 0xbc, 0x43, 212 | 0x64, 0x2d, 0x1e, 0xe1, 0x3c, 0x36, 0xd7, 0x7d, 0x97, 0xd4, 0x9e, 0x33, 0x1f, 0x2f, 0xdc, 0xb5, 213 | 0xb0, 0x21, 0x1d, 0x0c, 0xa8, 0x74, 0xe3, 0x21, 0xe6, 0x3f, 0x00, 0x0c, 0x4f, 0x42, 0xc0, 0x24, 214 | 0x23, 0x5d, 0x7b, 0xce, 0xdc, 0x59, 0xcc, 0xa4, 0xd1, 0x9d, 0x57, 0x11, 0xd7, 0xde, 0x68, 0xee, 215 | 0x2c, 0xa6, 0xd2, 0x68, 0x7f, 0x09, 0x6e, 0xb4, 0x7b, 0x97, 0xa8, 0xa9, 0x61, 0x85, 0xe2, 0x06, 216 | 0xa0, 0xa2, 0x22, 0x57, 0xed, 0x9e, 0x31, 0x39, 0x86, 0x67, 0xd6, 0x91, 0x98, 0xf8, 0xbf, 0x0e, 217 | 0x4c, 0xa2, 0xcd, 0x56, 0x8b, 0x3b, 0x98, 0xc4, 0xaa, 0x38, 0x75, 0xbb, 0xea, 0xbb, 0x6d, 0xb6, 218 | 0x3a, 0x88, 0x54, 0xa1, 0xdf, 0xca, 0x9a, 0x5b, 0x69, 0x98, 0xeb, 0x2d, 0xcc, 0x7a, 0x4b, 0x5c, 219 | 0xc0, 0xf8, 0x0b, 0xdb, 0xe3, 0xe4, 0x4e, 0x8a, 0x5b, 0x98, 0xfe, 0xc4, 0x45, 0x83, 0xa6, 0x96, 220 | 0xbb, 0xbe, 0xec, 0x67, 0x0d, 0xb5, 0xa4, 0x25, 0x9e, 0x47, 0x4f, 0xce, 0x8b, 0x04, 0x9f, 0x38, 221 | 0x0d, 0xb2, 0xb6, 0x42, 0x2e, 0xf0, 0x33, 0x45, 0x0e, 0x92, 0xf8, 0xc0, 0xb9, 0x3a, 0xe5, 0xba, 222 | 0x4f, 0xfb, 0x58, 0xa6, 0x79, 0x9d, 0x35, 0x87, 0x40, 0xd1, 0x77, 0xf8, 0x0f, 0x0d, 0x2d, 0xba, 223 | 0xb2, 0xe8, 0x2a, 0xa5, 0xb0, 0xa3, 0x0f, 0x76, 0x11, 0xf7, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 224 | 0x10, 0x49, 0xdc, 0x44, 0xab, 0x01, 0x00, 0x00, 225 | } 226 | -------------------------------------------------------------------------------- /peer/lifecycle/chaincode_definition.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/lifecycle/chaincode_definition.proto 3 | 4 | package lifecycle 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // ChaincodeEndorsementInfo is (most) everything the peer needs to know in order 24 | // to execute a chaincode 25 | type ChaincodeEndorsementInfo struct { 26 | Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` 27 | InitRequired bool `protobuf:"varint,2,opt,name=init_required,json=initRequired,proto3" json:"init_required,omitempty"` 28 | EndorsementPlugin string `protobuf:"bytes,3,opt,name=endorsement_plugin,json=endorsementPlugin,proto3" json:"endorsement_plugin,omitempty"` 29 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 | XXX_unrecognized []byte `json:"-"` 31 | XXX_sizecache int32 `json:"-"` 32 | } 33 | 34 | func (m *ChaincodeEndorsementInfo) Reset() { *m = ChaincodeEndorsementInfo{} } 35 | func (m *ChaincodeEndorsementInfo) String() string { return proto.CompactTextString(m) } 36 | func (*ChaincodeEndorsementInfo) ProtoMessage() {} 37 | func (*ChaincodeEndorsementInfo) Descriptor() ([]byte, []int) { 38 | return fileDescriptor_f0faa93bbd697c66, []int{0} 39 | } 40 | 41 | func (m *ChaincodeEndorsementInfo) XXX_Unmarshal(b []byte) error { 42 | return xxx_messageInfo_ChaincodeEndorsementInfo.Unmarshal(m, b) 43 | } 44 | func (m *ChaincodeEndorsementInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 | return xxx_messageInfo_ChaincodeEndorsementInfo.Marshal(b, m, deterministic) 46 | } 47 | func (m *ChaincodeEndorsementInfo) XXX_Merge(src proto.Message) { 48 | xxx_messageInfo_ChaincodeEndorsementInfo.Merge(m, src) 49 | } 50 | func (m *ChaincodeEndorsementInfo) XXX_Size() int { 51 | return xxx_messageInfo_ChaincodeEndorsementInfo.Size(m) 52 | } 53 | func (m *ChaincodeEndorsementInfo) XXX_DiscardUnknown() { 54 | xxx_messageInfo_ChaincodeEndorsementInfo.DiscardUnknown(m) 55 | } 56 | 57 | var xxx_messageInfo_ChaincodeEndorsementInfo proto.InternalMessageInfo 58 | 59 | func (m *ChaincodeEndorsementInfo) GetVersion() string { 60 | if m != nil { 61 | return m.Version 62 | } 63 | return "" 64 | } 65 | 66 | func (m *ChaincodeEndorsementInfo) GetInitRequired() bool { 67 | if m != nil { 68 | return m.InitRequired 69 | } 70 | return false 71 | } 72 | 73 | func (m *ChaincodeEndorsementInfo) GetEndorsementPlugin() string { 74 | if m != nil { 75 | return m.EndorsementPlugin 76 | } 77 | return "" 78 | } 79 | 80 | // ValidationInfo is (most) everything the peer needs to know in order 81 | // to validate a transaction 82 | type ChaincodeValidationInfo struct { 83 | ValidationPlugin string `protobuf:"bytes,1,opt,name=validation_plugin,json=validationPlugin,proto3" json:"validation_plugin,omitempty"` 84 | ValidationParameter []byte `protobuf:"bytes,2,opt,name=validation_parameter,json=validationParameter,proto3" json:"validation_parameter,omitempty"` 85 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 86 | XXX_unrecognized []byte `json:"-"` 87 | XXX_sizecache int32 `json:"-"` 88 | } 89 | 90 | func (m *ChaincodeValidationInfo) Reset() { *m = ChaincodeValidationInfo{} } 91 | func (m *ChaincodeValidationInfo) String() string { return proto.CompactTextString(m) } 92 | func (*ChaincodeValidationInfo) ProtoMessage() {} 93 | func (*ChaincodeValidationInfo) Descriptor() ([]byte, []int) { 94 | return fileDescriptor_f0faa93bbd697c66, []int{1} 95 | } 96 | 97 | func (m *ChaincodeValidationInfo) XXX_Unmarshal(b []byte) error { 98 | return xxx_messageInfo_ChaincodeValidationInfo.Unmarshal(m, b) 99 | } 100 | func (m *ChaincodeValidationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 101 | return xxx_messageInfo_ChaincodeValidationInfo.Marshal(b, m, deterministic) 102 | } 103 | func (m *ChaincodeValidationInfo) XXX_Merge(src proto.Message) { 104 | xxx_messageInfo_ChaincodeValidationInfo.Merge(m, src) 105 | } 106 | func (m *ChaincodeValidationInfo) XXX_Size() int { 107 | return xxx_messageInfo_ChaincodeValidationInfo.Size(m) 108 | } 109 | func (m *ChaincodeValidationInfo) XXX_DiscardUnknown() { 110 | xxx_messageInfo_ChaincodeValidationInfo.DiscardUnknown(m) 111 | } 112 | 113 | var xxx_messageInfo_ChaincodeValidationInfo proto.InternalMessageInfo 114 | 115 | func (m *ChaincodeValidationInfo) GetValidationPlugin() string { 116 | if m != nil { 117 | return m.ValidationPlugin 118 | } 119 | return "" 120 | } 121 | 122 | func (m *ChaincodeValidationInfo) GetValidationParameter() []byte { 123 | if m != nil { 124 | return m.ValidationParameter 125 | } 126 | return nil 127 | } 128 | 129 | func init() { 130 | proto.RegisterType((*ChaincodeEndorsementInfo)(nil), "lifecycle.ChaincodeEndorsementInfo") 131 | proto.RegisterType((*ChaincodeValidationInfo)(nil), "lifecycle.ChaincodeValidationInfo") 132 | } 133 | 134 | func init() { 135 | proto.RegisterFile("peer/lifecycle/chaincode_definition.proto", fileDescriptor_f0faa93bbd697c66) 136 | } 137 | 138 | var fileDescriptor_f0faa93bbd697c66 = []byte{ 139 | // 275 bytes of a gzipped FileDescriptorProto 140 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x91, 0x4f, 0x4b, 0xb5, 0x40, 141 | 0x14, 0xc6, 0xf1, 0x7d, 0xa1, 0xba, 0xc3, 0x0d, 0xba, 0x53, 0x90, 0xcb, 0xcb, 0x6d, 0x73, 0xa3, 142 | 0x1c, 0x89, 0xa0, 0x0f, 0x50, 0xb4, 0x68, 0x17, 0x2e, 0x5a, 0xb4, 0x91, 0x71, 0xe6, 0xa8, 0x07, 143 | 0x74, 0x8e, 0x1d, 0xf5, 0x82, 0xdf, 0xa0, 0x8f, 0x1d, 0x6a, 0x7a, 0x6d, 0x39, 0xe7, 0xf9, 0xc3, 144 | 0x8f, 0x67, 0xc4, 0x6d, 0x05, 0xc0, 0x61, 0x81, 0x29, 0x98, 0xce, 0x14, 0x10, 0x9a, 0x5c, 0xa3, 145 | 0x33, 0x64, 0x21, 0xb6, 0x90, 0xa2, 0xc3, 0x06, 0xc9, 0xa9, 0x8a, 0xa9, 0x21, 0xb9, 0x9a, 0x5d, 146 | 0xbb, 0x6f, 0x4f, 0xf8, 0x2f, 0x93, 0xf3, 0xd5, 0x59, 0xe2, 0x1a, 0x4a, 0x70, 0xcd, 0x9b, 0x4b, 147 | 0x49, 0xfa, 0xe2, 0xf4, 0x00, 0x5c, 0x23, 0x39, 0xdf, 0xdb, 0x7a, 0xfb, 0x55, 0x34, 0x3d, 0xe5, 148 | 0x8d, 0x38, 0xef, 0x2b, 0x63, 0x86, 0xaf, 0x16, 0x19, 0xac, 0xff, 0x6f, 0xeb, 0xed, 0xcf, 0xa2, 149 | 0x75, 0x7f, 0x8c, 0x7e, 0x6f, 0x32, 0x10, 0x12, 0x8e, 0x8d, 0x71, 0x55, 0xb4, 0x19, 0x3a, 0xff, 150 | 0xff, 0xd0, 0xb4, 0x59, 0x28, 0xef, 0x83, 0xb0, 0xeb, 0xc4, 0xf5, 0x4c, 0xf2, 0xa1, 0x0b, 0xb4, 151 | 0xba, 0x47, 0x1e, 0x40, 0xee, 0xc4, 0xe6, 0x30, 0x5f, 0xa6, 0xa2, 0x11, 0xe9, 0xe2, 0x28, 0x8c, 152 | 0x3d, 0xf2, 0x41, 0x5c, 0x2d, 0xcd, 0x9a, 0x75, 0x09, 0x0d, 0xf0, 0x80, 0xb8, 0x8e, 0x2e, 0x17, 153 | 0xfe, 0x49, 0x7a, 0x4e, 0xc5, 0x3d, 0x71, 0xa6, 0xf2, 0xae, 0x02, 0x2e, 0xc0, 0x66, 0xc0, 0x2a, 154 | 0xd5, 0x09, 0xa3, 0x19, 0x07, 0xab, 0x55, 0xbf, 0xad, 0x9a, 0x57, 0xfb, 0x7c, 0xca, 0xb0, 0xc9, 155 | 0xdb, 0x44, 0x19, 0x2a, 0xc3, 0x45, 0x28, 0x1c, 0x43, 0xc1, 0x18, 0x0a, 0x32, 0x0a, 0xff, 0xfe, 156 | 0x49, 0x72, 0x32, 0x28, 0x8f, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x94, 0x68, 0xee, 0xac, 157 | 0x01, 0x00, 0x00, 158 | } 159 | -------------------------------------------------------------------------------- /peer/lifecycle/db.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/lifecycle/db.proto 3 | 4 | package lifecycle 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // StateMetadata describes the keys in a namespace. It is necessary because 24 | // in collections, range scans are not possible during transactions which 25 | // write. Therefore we must track the keys in our namespace ourselves. 26 | type StateMetadata struct { 27 | Datatype string `protobuf:"bytes,1,opt,name=datatype,proto3" json:"datatype,omitempty"` 28 | Fields []string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` 29 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 | XXX_unrecognized []byte `json:"-"` 31 | XXX_sizecache int32 `json:"-"` 32 | } 33 | 34 | func (m *StateMetadata) Reset() { *m = StateMetadata{} } 35 | func (m *StateMetadata) String() string { return proto.CompactTextString(m) } 36 | func (*StateMetadata) ProtoMessage() {} 37 | func (*StateMetadata) Descriptor() ([]byte, []int) { 38 | return fileDescriptor_389b29a8aaf0aebb, []int{0} 39 | } 40 | 41 | func (m *StateMetadata) XXX_Unmarshal(b []byte) error { 42 | return xxx_messageInfo_StateMetadata.Unmarshal(m, b) 43 | } 44 | func (m *StateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 | return xxx_messageInfo_StateMetadata.Marshal(b, m, deterministic) 46 | } 47 | func (m *StateMetadata) XXX_Merge(src proto.Message) { 48 | xxx_messageInfo_StateMetadata.Merge(m, src) 49 | } 50 | func (m *StateMetadata) XXX_Size() int { 51 | return xxx_messageInfo_StateMetadata.Size(m) 52 | } 53 | func (m *StateMetadata) XXX_DiscardUnknown() { 54 | xxx_messageInfo_StateMetadata.DiscardUnknown(m) 55 | } 56 | 57 | var xxx_messageInfo_StateMetadata proto.InternalMessageInfo 58 | 59 | func (m *StateMetadata) GetDatatype() string { 60 | if m != nil { 61 | return m.Datatype 62 | } 63 | return "" 64 | } 65 | 66 | func (m *StateMetadata) GetFields() []string { 67 | if m != nil { 68 | return m.Fields 69 | } 70 | return nil 71 | } 72 | 73 | // StateData encodes a particular field of a datatype 74 | type StateData struct { 75 | // Types that are valid to be assigned to Type: 76 | // 77 | // *StateData_Int64 78 | // *StateData_Bytes 79 | // *StateData_String_ 80 | Type isStateData_Type `protobuf_oneof:"Type"` 81 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 82 | XXX_unrecognized []byte `json:"-"` 83 | XXX_sizecache int32 `json:"-"` 84 | } 85 | 86 | func (m *StateData) Reset() { *m = StateData{} } 87 | func (m *StateData) String() string { return proto.CompactTextString(m) } 88 | func (*StateData) ProtoMessage() {} 89 | func (*StateData) Descriptor() ([]byte, []int) { 90 | return fileDescriptor_389b29a8aaf0aebb, []int{1} 91 | } 92 | 93 | func (m *StateData) XXX_Unmarshal(b []byte) error { 94 | return xxx_messageInfo_StateData.Unmarshal(m, b) 95 | } 96 | func (m *StateData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 97 | return xxx_messageInfo_StateData.Marshal(b, m, deterministic) 98 | } 99 | func (m *StateData) XXX_Merge(src proto.Message) { 100 | xxx_messageInfo_StateData.Merge(m, src) 101 | } 102 | func (m *StateData) XXX_Size() int { 103 | return xxx_messageInfo_StateData.Size(m) 104 | } 105 | func (m *StateData) XXX_DiscardUnknown() { 106 | xxx_messageInfo_StateData.DiscardUnknown(m) 107 | } 108 | 109 | var xxx_messageInfo_StateData proto.InternalMessageInfo 110 | 111 | type isStateData_Type interface { 112 | isStateData_Type() 113 | } 114 | 115 | type StateData_Int64 struct { 116 | Int64 int64 `protobuf:"varint,1,opt,name=Int64,proto3,oneof"` 117 | } 118 | 119 | type StateData_Bytes struct { 120 | Bytes []byte `protobuf:"bytes,2,opt,name=Bytes,proto3,oneof"` 121 | } 122 | 123 | type StateData_String_ struct { 124 | String_ string `protobuf:"bytes,3,opt,name=String,proto3,oneof"` 125 | } 126 | 127 | func (*StateData_Int64) isStateData_Type() {} 128 | 129 | func (*StateData_Bytes) isStateData_Type() {} 130 | 131 | func (*StateData_String_) isStateData_Type() {} 132 | 133 | func (m *StateData) GetType() isStateData_Type { 134 | if m != nil { 135 | return m.Type 136 | } 137 | return nil 138 | } 139 | 140 | func (m *StateData) GetInt64() int64 { 141 | if x, ok := m.GetType().(*StateData_Int64); ok { 142 | return x.Int64 143 | } 144 | return 0 145 | } 146 | 147 | func (m *StateData) GetBytes() []byte { 148 | if x, ok := m.GetType().(*StateData_Bytes); ok { 149 | return x.Bytes 150 | } 151 | return nil 152 | } 153 | 154 | func (m *StateData) GetString_() string { 155 | if x, ok := m.GetType().(*StateData_String_); ok { 156 | return x.String_ 157 | } 158 | return "" 159 | } 160 | 161 | // XXX_OneofWrappers is for the internal use of the proto package. 162 | func (*StateData) XXX_OneofWrappers() []interface{} { 163 | return []interface{}{ 164 | (*StateData_Int64)(nil), 165 | (*StateData_Bytes)(nil), 166 | (*StateData_String_)(nil), 167 | } 168 | } 169 | 170 | func init() { 171 | proto.RegisterType((*StateMetadata)(nil), "lifecycle.StateMetadata") 172 | proto.RegisterType((*StateData)(nil), "lifecycle.StateData") 173 | } 174 | 175 | func init() { proto.RegisterFile("peer/lifecycle/db.proto", fileDescriptor_389b29a8aaf0aebb) } 176 | 177 | var fileDescriptor_389b29a8aaf0aebb = []byte{ 178 | // 235 bytes of a gzipped FileDescriptorProto 179 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xb1, 0x4e, 0xc3, 0x30, 180 | 0x14, 0x45, 0x1b, 0x02, 0x11, 0x79, 0x82, 0x25, 0x43, 0x89, 0x98, 0xaa, 0x4e, 0x19, 0xa8, 0x3d, 181 | 0x80, 0xfa, 0x01, 0x81, 0xa1, 0x0c, 0x2c, 0x29, 0x13, 0x12, 0x83, 0x93, 0xbc, 0xb8, 0x96, 0x4c, 182 | 0x6d, 0xb9, 0x8f, 0xc1, 0x7f, 0x8f, 0x6c, 0x57, 0x11, 0x9d, 0xac, 0x73, 0xad, 0x73, 0xad, 0x6b, 183 | 0x78, 0xb0, 0x88, 0x8e, 0x6b, 0x35, 0xe1, 0xe0, 0x07, 0x8d, 0x7c, 0xec, 0x99, 0x75, 0x86, 0x4c, 184 | 0x55, 0xce, 0xd9, 0xfa, 0x15, 0xee, 0xf7, 0x24, 0x08, 0x3f, 0x90, 0xc4, 0x28, 0x48, 0x54, 0x8f, 185 | 0x70, 0x1b, 0x4e, 0xf2, 0x16, 0xeb, 0x6c, 0x95, 0x35, 0x65, 0x37, 0x73, 0xb5, 0x84, 0x62, 0x52, 186 | 0xa8, 0xc7, 0x53, 0x7d, 0xb5, 0xca, 0x9b, 0xb2, 0x3b, 0xd3, 0xfa, 0x1b, 0xca, 0x58, 0xf2, 0x16, 187 | 0x0a, 0x96, 0x70, 0xf3, 0x7e, 0xa4, 0xed, 0x4b, 0xb4, 0xf3, 0xdd, 0xa2, 0x4b, 0x18, 0xf2, 0xd6, 188 | 0x13, 0x06, 0x37, 0x6b, 0xee, 0x42, 0x1e, 0xb1, 0xaa, 0xa1, 0xd8, 0x93, 0x53, 0x47, 0x59, 0xe7, 189 | 0xe1, 0xb9, 0xdd, 0xa2, 0x3b, 0x73, 0x5b, 0xc0, 0xf5, 0xa7, 0xb7, 0xd8, 0x4e, 0xf0, 0x64, 0x9c, 190 | 0x64, 0x07, 0x6f, 0xd1, 0x69, 0x1c, 0x25, 0x3a, 0x36, 0x89, 0xde, 0xa9, 0x21, 0xcd, 0x39, 0xb1, 191 | 0xb0, 0x93, 0xcd, 0x9b, 0xbe, 0xb6, 0x52, 0xd1, 0xe1, 0xb7, 0x67, 0x83, 0xf9, 0xe1, 0xff, 0x24, 192 | 0x9e, 0xa4, 0x4d, 0x92, 0x36, 0xd2, 0xf0, 0xcb, 0xff, 0xe9, 0x8b, 0x78, 0xf3, 0xfc, 0x17, 0x00, 193 | 0x00, 0xff, 0xff, 0xc6, 0xbc, 0x63, 0x86, 0x38, 0x01, 0x00, 0x00, 194 | } 195 | -------------------------------------------------------------------------------- /peer/peer.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/peer.proto 3 | 4 | package peer 5 | 6 | import ( 7 | context "context" 8 | fmt "fmt" 9 | proto "github.com/golang/protobuf/proto" 10 | grpc "google.golang.org/grpc" 11 | codes "google.golang.org/grpc/codes" 12 | status "google.golang.org/grpc/status" 13 | math "math" 14 | ) 15 | 16 | // Reference imports to suppress errors if they are not otherwise used. 17 | var _ = proto.Marshal 18 | var _ = fmt.Errorf 19 | var _ = math.Inf 20 | 21 | // This is a compile-time assertion to ensure that this generated file 22 | // is compatible with the proto package it is being compiled against. 23 | // A compilation error at this line likely means your copy of the 24 | // proto package needs to be updated. 25 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 | 27 | func init() { proto.RegisterFile("peer/peer.proto", fileDescriptor_c302117fbb08ad42) } 28 | 29 | var fileDescriptor_c302117fbb08ad42 = []byte{ 30 | // 177 bytes of a gzipped FileDescriptorProto 31 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0xb1, 0x0a, 0xc2, 0x30, 32 | 0x10, 0x86, 0x37, 0x91, 0x2c, 0x85, 0x0a, 0x22, 0xc5, 0xc9, 0xd9, 0xa6, 0xa0, 0x6f, 0xa0, 0x38, 33 | 0x5b, 0xea, 0xe6, 0x22, 0x6d, 0x73, 0xa6, 0x81, 0x9a, 0x0b, 0x77, 0x75, 0xf0, 0xed, 0xa5, 0xbd, 34 | 0x06, 0x74, 0x49, 0xe0, 0xfb, 0xbf, 0x3b, 0xee, 0x57, 0x49, 0x00, 0xa0, 0x62, 0x7c, 0x74, 0x20, 35 | 0x1c, 0x30, 0x5d, 0x4c, 0x1f, 0x67, 0x2b, 0x09, 0x08, 0x03, 0x72, 0xdd, 0x4b, 0x98, 0x6d, 0xff, 36 | 0xe0, 0x83, 0x80, 0x03, 0x7a, 0x06, 0x49, 0x0f, 0x57, 0xb5, 0xbc, 0x78, 0x83, 0xc4, 0x40, 0xe9, 37 | 0x59, 0x25, 0x25, 0x61, 0x0b, 0xcc, 0xe5, 0x6c, 0xa7, 0x6b, 0xd1, 0x58, 0xdf, 0x9c, 0xf5, 0x60, 38 | 0x22, 0xcf, 0x36, 0x91, 0x47, 0x52, 0xcd, 0x6b, 0x4f, 0x95, 0xda, 0x21, 0x59, 0xdd, 0x7d, 0x02, 39 | 0x50, 0x0f, 0xc6, 0x02, 0xe9, 0x67, 0xdd, 0x90, 0x6b, 0xe3, 0xc4, 0x78, 0xce, 0x7d, 0x6f, 0xdd, 40 | 0xd0, 0xbd, 0x1b, 0xdd, 0xe2, 0xab, 0xf8, 0x51, 0x0b, 0x51, 0x73, 0x51, 0x73, 0x8b, 0x53, 0xcb, 41 | 0x46, 0xfa, 0x1d, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd5, 0x12, 0xef, 0x66, 0xf9, 0x00, 0x00, 42 | 0x00, 43 | } 44 | 45 | // Reference imports to suppress errors if they are not otherwise used. 46 | var _ context.Context 47 | var _ grpc.ClientConn 48 | 49 | // This is a compile-time assertion to ensure that this generated file 50 | // is compatible with the grpc package it is being compiled against. 51 | const _ = grpc.SupportPackageIsVersion4 52 | 53 | // EndorserClient is the client API for Endorser service. 54 | // 55 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 56 | type EndorserClient interface { 57 | ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error) 58 | } 59 | 60 | type endorserClient struct { 61 | cc *grpc.ClientConn 62 | } 63 | 64 | func NewEndorserClient(cc *grpc.ClientConn) EndorserClient { 65 | return &endorserClient{cc} 66 | } 67 | 68 | func (c *endorserClient) ProcessProposal(ctx context.Context, in *SignedProposal, opts ...grpc.CallOption) (*ProposalResponse, error) { 69 | out := new(ProposalResponse) 70 | err := c.cc.Invoke(ctx, "/protos.Endorser/ProcessProposal", in, out, opts...) 71 | if err != nil { 72 | return nil, err 73 | } 74 | return out, nil 75 | } 76 | 77 | // EndorserServer is the server API for Endorser service. 78 | type EndorserServer interface { 79 | ProcessProposal(context.Context, *SignedProposal) (*ProposalResponse, error) 80 | } 81 | 82 | // UnimplementedEndorserServer can be embedded to have forward compatible implementations. 83 | type UnimplementedEndorserServer struct { 84 | } 85 | 86 | func (*UnimplementedEndorserServer) ProcessProposal(ctx context.Context, req *SignedProposal) (*ProposalResponse, error) { 87 | return nil, status.Errorf(codes.Unimplemented, "method ProcessProposal not implemented") 88 | } 89 | 90 | func RegisterEndorserServer(s *grpc.Server, srv EndorserServer) { 91 | s.RegisterService(&_Endorser_serviceDesc, srv) 92 | } 93 | 94 | func _Endorser_ProcessProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 95 | in := new(SignedProposal) 96 | if err := dec(in); err != nil { 97 | return nil, err 98 | } 99 | if interceptor == nil { 100 | return srv.(EndorserServer).ProcessProposal(ctx, in) 101 | } 102 | info := &grpc.UnaryServerInfo{ 103 | Server: srv, 104 | FullMethod: "/protos.Endorser/ProcessProposal", 105 | } 106 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { 107 | return srv.(EndorserServer).ProcessProposal(ctx, req.(*SignedProposal)) 108 | } 109 | return interceptor(ctx, in, info, handler) 110 | } 111 | 112 | var _Endorser_serviceDesc = grpc.ServiceDesc{ 113 | ServiceName: "protos.Endorser", 114 | HandlerType: (*EndorserServer)(nil), 115 | Methods: []grpc.MethodDesc{ 116 | { 117 | MethodName: "ProcessProposal", 118 | Handler: _Endorser_ProcessProposal_Handler, 119 | }, 120 | }, 121 | Streams: []grpc.StreamDesc{}, 122 | Metadata: "peer/peer.proto", 123 | } 124 | -------------------------------------------------------------------------------- /peer/policy.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/policy.proto 3 | 4 | package peer 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | common "github.com/hyperledger/fabric-protos-go/common" 10 | math "math" 11 | ) 12 | 13 | // Reference imports to suppress errors if they are not otherwise used. 14 | var _ = proto.Marshal 15 | var _ = fmt.Errorf 16 | var _ = math.Inf 17 | 18 | // This is a compile-time assertion to ensure that this generated file 19 | // is compatible with the proto package it is being compiled against. 20 | // A compilation error at this line likely means your copy of the 21 | // proto package needs to be updated. 22 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 | 24 | // ApplicationPolicy captures the diffenrent policy types that 25 | // are set and evaluted at the application level. 26 | type ApplicationPolicy struct { 27 | // Types that are valid to be assigned to Type: 28 | // 29 | // *ApplicationPolicy_SignaturePolicy 30 | // *ApplicationPolicy_ChannelConfigPolicyReference 31 | Type isApplicationPolicy_Type `protobuf_oneof:"Type"` 32 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 | XXX_unrecognized []byte `json:"-"` 34 | XXX_sizecache int32 `json:"-"` 35 | } 36 | 37 | func (m *ApplicationPolicy) Reset() { *m = ApplicationPolicy{} } 38 | func (m *ApplicationPolicy) String() string { return proto.CompactTextString(m) } 39 | func (*ApplicationPolicy) ProtoMessage() {} 40 | func (*ApplicationPolicy) Descriptor() ([]byte, []int) { 41 | return fileDescriptor_17aa1dd1e55c3e19, []int{0} 42 | } 43 | 44 | func (m *ApplicationPolicy) XXX_Unmarshal(b []byte) error { 45 | return xxx_messageInfo_ApplicationPolicy.Unmarshal(m, b) 46 | } 47 | func (m *ApplicationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 | return xxx_messageInfo_ApplicationPolicy.Marshal(b, m, deterministic) 49 | } 50 | func (m *ApplicationPolicy) XXX_Merge(src proto.Message) { 51 | xxx_messageInfo_ApplicationPolicy.Merge(m, src) 52 | } 53 | func (m *ApplicationPolicy) XXX_Size() int { 54 | return xxx_messageInfo_ApplicationPolicy.Size(m) 55 | } 56 | func (m *ApplicationPolicy) XXX_DiscardUnknown() { 57 | xxx_messageInfo_ApplicationPolicy.DiscardUnknown(m) 58 | } 59 | 60 | var xxx_messageInfo_ApplicationPolicy proto.InternalMessageInfo 61 | 62 | type isApplicationPolicy_Type interface { 63 | isApplicationPolicy_Type() 64 | } 65 | 66 | type ApplicationPolicy_SignaturePolicy struct { 67 | SignaturePolicy *common.SignaturePolicyEnvelope `protobuf:"bytes,1,opt,name=signature_policy,json=signaturePolicy,proto3,oneof"` 68 | } 69 | 70 | type ApplicationPolicy_ChannelConfigPolicyReference struct { 71 | ChannelConfigPolicyReference string `protobuf:"bytes,2,opt,name=channel_config_policy_reference,json=channelConfigPolicyReference,proto3,oneof"` 72 | } 73 | 74 | func (*ApplicationPolicy_SignaturePolicy) isApplicationPolicy_Type() {} 75 | 76 | func (*ApplicationPolicy_ChannelConfigPolicyReference) isApplicationPolicy_Type() {} 77 | 78 | func (m *ApplicationPolicy) GetType() isApplicationPolicy_Type { 79 | if m != nil { 80 | return m.Type 81 | } 82 | return nil 83 | } 84 | 85 | func (m *ApplicationPolicy) GetSignaturePolicy() *common.SignaturePolicyEnvelope { 86 | if x, ok := m.GetType().(*ApplicationPolicy_SignaturePolicy); ok { 87 | return x.SignaturePolicy 88 | } 89 | return nil 90 | } 91 | 92 | func (m *ApplicationPolicy) GetChannelConfigPolicyReference() string { 93 | if x, ok := m.GetType().(*ApplicationPolicy_ChannelConfigPolicyReference); ok { 94 | return x.ChannelConfigPolicyReference 95 | } 96 | return "" 97 | } 98 | 99 | // XXX_OneofWrappers is for the internal use of the proto package. 100 | func (*ApplicationPolicy) XXX_OneofWrappers() []interface{} { 101 | return []interface{}{ 102 | (*ApplicationPolicy_SignaturePolicy)(nil), 103 | (*ApplicationPolicy_ChannelConfigPolicyReference)(nil), 104 | } 105 | } 106 | 107 | func init() { 108 | proto.RegisterType((*ApplicationPolicy)(nil), "protos.ApplicationPolicy") 109 | } 110 | 111 | func init() { proto.RegisterFile("peer/policy.proto", fileDescriptor_17aa1dd1e55c3e19) } 112 | 113 | var fileDescriptor_17aa1dd1e55c3e19 = []byte{ 114 | // 243 bytes of a gzipped FileDescriptorProto 115 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x90, 0xc1, 0x4a, 0xc3, 0x40, 116 | 0x10, 0x86, 0x1b, 0x91, 0x82, 0xeb, 0x41, 0x1b, 0x10, 0x8a, 0x08, 0x2d, 0x3d, 0xf5, 0x60, 0x37, 117 | 0xa0, 0x4f, 0x60, 0x45, 0xec, 0xc1, 0x83, 0x44, 0x4f, 0x5e, 0x42, 0xb2, 0x4e, 0x36, 0x0b, 0xdb, 118 | 0x9d, 0x61, 0x36, 0x15, 0xf2, 0x5a, 0x3e, 0xa1, 0x24, 0xd3, 0x80, 0x3d, 0xed, 0xe1, 0xfb, 0xfe, 119 | 0x9f, 0x9d, 0x5f, 0xcd, 0x08, 0x80, 0x33, 0x42, 0xef, 0x4c, 0xa7, 0x89, 0xb1, 0xc5, 0x74, 0x3a, 120 | 0x3c, 0xf1, 0xf6, 0xc6, 0xe0, 0x7e, 0x8f, 0x41, 0xa0, 0x83, 0x28, 0x78, 0xf5, 0x9b, 0xa8, 0xd9, 121 | 0x13, 0x91, 0x77, 0xa6, 0x6c, 0x1d, 0x86, 0xf7, 0x21, 0x9a, 0xbe, 0xa9, 0xeb, 0xe8, 0x6c, 0x28, 122 | 0xdb, 0x03, 0x43, 0x21, 0x75, 0xf3, 0x64, 0x99, 0xac, 0x2f, 0x1f, 0x16, 0x5a, 0x7a, 0xf4, 0xc7, 123 | 0xc8, 0x25, 0xf2, 0x12, 0x7e, 0xc0, 0x23, 0xc1, 0x6e, 0x92, 0x5f, 0xc5, 0x53, 0x94, 0xbe, 0xaa, 124 | 0x85, 0x69, 0xca, 0x10, 0xc0, 0x17, 0x06, 0x43, 0xed, 0xec, 0xb1, 0xb2, 0x60, 0xa8, 0x81, 0x21, 125 | 0x18, 0x98, 0x9f, 0x2d, 0x93, 0xf5, 0xc5, 0x6e, 0x92, 0xdf, 0x1d, 0xc5, 0xe7, 0xc1, 0x93, 0x7c, 126 | 0x3e, 0x5a, 0xdb, 0xa9, 0x3a, 0xff, 0xec, 0x08, 0xb6, 0xb9, 0x5a, 0x21, 0x5b, 0xdd, 0x74, 0x04, 127 | 0xec, 0xe1, 0xdb, 0x02, 0xeb, 0xba, 0xac, 0xd8, 0x19, 0x39, 0x2a, 0xea, 0x7e, 0x86, 0xaf, 0x7b, 128 | 0xeb, 0xda, 0xe6, 0x50, 0xf5, 0x1f, 0xce, 0xfe, 0xa9, 0x99, 0xa8, 0x1b, 0x51, 0x37, 0x16, 0xb3, 129 | 0xde, 0xae, 0x64, 0xa7, 0xc7, 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0x76, 0x3a, 0x03, 0x43, 130 | 0x01, 0x00, 0x00, 131 | } 132 | -------------------------------------------------------------------------------- /peer/query.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/query.proto 3 | 4 | package peer 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // ChaincodeQueryResponse returns information about each chaincode that pertains 24 | // to a query in lscc.go, such as GetChaincodes (returns all chaincodes 25 | // instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes 26 | // installed on a peer) 27 | type ChaincodeQueryResponse struct { 28 | Chaincodes []*ChaincodeInfo `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"` 29 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 | XXX_unrecognized []byte `json:"-"` 31 | XXX_sizecache int32 `json:"-"` 32 | } 33 | 34 | func (m *ChaincodeQueryResponse) Reset() { *m = ChaincodeQueryResponse{} } 35 | func (m *ChaincodeQueryResponse) String() string { return proto.CompactTextString(m) } 36 | func (*ChaincodeQueryResponse) ProtoMessage() {} 37 | func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int) { 38 | return fileDescriptor_d45bcf7fe2423301, []int{0} 39 | } 40 | 41 | func (m *ChaincodeQueryResponse) XXX_Unmarshal(b []byte) error { 42 | return xxx_messageInfo_ChaincodeQueryResponse.Unmarshal(m, b) 43 | } 44 | func (m *ChaincodeQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 | return xxx_messageInfo_ChaincodeQueryResponse.Marshal(b, m, deterministic) 46 | } 47 | func (m *ChaincodeQueryResponse) XXX_Merge(src proto.Message) { 48 | xxx_messageInfo_ChaincodeQueryResponse.Merge(m, src) 49 | } 50 | func (m *ChaincodeQueryResponse) XXX_Size() int { 51 | return xxx_messageInfo_ChaincodeQueryResponse.Size(m) 52 | } 53 | func (m *ChaincodeQueryResponse) XXX_DiscardUnknown() { 54 | xxx_messageInfo_ChaincodeQueryResponse.DiscardUnknown(m) 55 | } 56 | 57 | var xxx_messageInfo_ChaincodeQueryResponse proto.InternalMessageInfo 58 | 59 | func (m *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo { 60 | if m != nil { 61 | return m.Chaincodes 62 | } 63 | return nil 64 | } 65 | 66 | // ChaincodeInfo contains general information about an installed/instantiated 67 | // chaincode 68 | type ChaincodeInfo struct { 69 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 70 | Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 71 | // the path as specified by the install/instantiate transaction 72 | Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` 73 | // the chaincode function upon instantiation and its arguments. This will be 74 | // blank if the query is returning information about installed chaincodes. 75 | Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"` 76 | // the name of the ESCC for this chaincode. This will be 77 | // blank if the query is returning information about installed chaincodes. 78 | Escc string `protobuf:"bytes,5,opt,name=escc,proto3" json:"escc,omitempty"` 79 | // the name of the VSCC for this chaincode. This will be 80 | // blank if the query is returning information about installed chaincodes. 81 | Vscc string `protobuf:"bytes,6,opt,name=vscc,proto3" json:"vscc,omitempty"` 82 | // the chaincode unique id. 83 | // computed as: H( 84 | // 85 | // H(name || version) || 86 | // H(CodePackage) 87 | // ) 88 | Id []byte `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"` 89 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 90 | XXX_unrecognized []byte `json:"-"` 91 | XXX_sizecache int32 `json:"-"` 92 | } 93 | 94 | func (m *ChaincodeInfo) Reset() { *m = ChaincodeInfo{} } 95 | func (m *ChaincodeInfo) String() string { return proto.CompactTextString(m) } 96 | func (*ChaincodeInfo) ProtoMessage() {} 97 | func (*ChaincodeInfo) Descriptor() ([]byte, []int) { 98 | return fileDescriptor_d45bcf7fe2423301, []int{1} 99 | } 100 | 101 | func (m *ChaincodeInfo) XXX_Unmarshal(b []byte) error { 102 | return xxx_messageInfo_ChaincodeInfo.Unmarshal(m, b) 103 | } 104 | func (m *ChaincodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 105 | return xxx_messageInfo_ChaincodeInfo.Marshal(b, m, deterministic) 106 | } 107 | func (m *ChaincodeInfo) XXX_Merge(src proto.Message) { 108 | xxx_messageInfo_ChaincodeInfo.Merge(m, src) 109 | } 110 | func (m *ChaincodeInfo) XXX_Size() int { 111 | return xxx_messageInfo_ChaincodeInfo.Size(m) 112 | } 113 | func (m *ChaincodeInfo) XXX_DiscardUnknown() { 114 | xxx_messageInfo_ChaincodeInfo.DiscardUnknown(m) 115 | } 116 | 117 | var xxx_messageInfo_ChaincodeInfo proto.InternalMessageInfo 118 | 119 | func (m *ChaincodeInfo) GetName() string { 120 | if m != nil { 121 | return m.Name 122 | } 123 | return "" 124 | } 125 | 126 | func (m *ChaincodeInfo) GetVersion() string { 127 | if m != nil { 128 | return m.Version 129 | } 130 | return "" 131 | } 132 | 133 | func (m *ChaincodeInfo) GetPath() string { 134 | if m != nil { 135 | return m.Path 136 | } 137 | return "" 138 | } 139 | 140 | func (m *ChaincodeInfo) GetInput() string { 141 | if m != nil { 142 | return m.Input 143 | } 144 | return "" 145 | } 146 | 147 | func (m *ChaincodeInfo) GetEscc() string { 148 | if m != nil { 149 | return m.Escc 150 | } 151 | return "" 152 | } 153 | 154 | func (m *ChaincodeInfo) GetVscc() string { 155 | if m != nil { 156 | return m.Vscc 157 | } 158 | return "" 159 | } 160 | 161 | func (m *ChaincodeInfo) GetId() []byte { 162 | if m != nil { 163 | return m.Id 164 | } 165 | return nil 166 | } 167 | 168 | // ChannelQueryResponse returns information about each channel that pertains 169 | // to a query in lscc.go, such as GetChannels (returns all channels for a 170 | // given peer) 171 | type ChannelQueryResponse struct { 172 | Channels []*ChannelInfo `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"` 173 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 174 | XXX_unrecognized []byte `json:"-"` 175 | XXX_sizecache int32 `json:"-"` 176 | } 177 | 178 | func (m *ChannelQueryResponse) Reset() { *m = ChannelQueryResponse{} } 179 | func (m *ChannelQueryResponse) String() string { return proto.CompactTextString(m) } 180 | func (*ChannelQueryResponse) ProtoMessage() {} 181 | func (*ChannelQueryResponse) Descriptor() ([]byte, []int) { 182 | return fileDescriptor_d45bcf7fe2423301, []int{2} 183 | } 184 | 185 | func (m *ChannelQueryResponse) XXX_Unmarshal(b []byte) error { 186 | return xxx_messageInfo_ChannelQueryResponse.Unmarshal(m, b) 187 | } 188 | func (m *ChannelQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 189 | return xxx_messageInfo_ChannelQueryResponse.Marshal(b, m, deterministic) 190 | } 191 | func (m *ChannelQueryResponse) XXX_Merge(src proto.Message) { 192 | xxx_messageInfo_ChannelQueryResponse.Merge(m, src) 193 | } 194 | func (m *ChannelQueryResponse) XXX_Size() int { 195 | return xxx_messageInfo_ChannelQueryResponse.Size(m) 196 | } 197 | func (m *ChannelQueryResponse) XXX_DiscardUnknown() { 198 | xxx_messageInfo_ChannelQueryResponse.DiscardUnknown(m) 199 | } 200 | 201 | var xxx_messageInfo_ChannelQueryResponse proto.InternalMessageInfo 202 | 203 | func (m *ChannelQueryResponse) GetChannels() []*ChannelInfo { 204 | if m != nil { 205 | return m.Channels 206 | } 207 | return nil 208 | } 209 | 210 | // ChannelInfo contains general information about channels 211 | type ChannelInfo struct { 212 | ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` 213 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 214 | XXX_unrecognized []byte `json:"-"` 215 | XXX_sizecache int32 `json:"-"` 216 | } 217 | 218 | func (m *ChannelInfo) Reset() { *m = ChannelInfo{} } 219 | func (m *ChannelInfo) String() string { return proto.CompactTextString(m) } 220 | func (*ChannelInfo) ProtoMessage() {} 221 | func (*ChannelInfo) Descriptor() ([]byte, []int) { 222 | return fileDescriptor_d45bcf7fe2423301, []int{3} 223 | } 224 | 225 | func (m *ChannelInfo) XXX_Unmarshal(b []byte) error { 226 | return xxx_messageInfo_ChannelInfo.Unmarshal(m, b) 227 | } 228 | func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 229 | return xxx_messageInfo_ChannelInfo.Marshal(b, m, deterministic) 230 | } 231 | func (m *ChannelInfo) XXX_Merge(src proto.Message) { 232 | xxx_messageInfo_ChannelInfo.Merge(m, src) 233 | } 234 | func (m *ChannelInfo) XXX_Size() int { 235 | return xxx_messageInfo_ChannelInfo.Size(m) 236 | } 237 | func (m *ChannelInfo) XXX_DiscardUnknown() { 238 | xxx_messageInfo_ChannelInfo.DiscardUnknown(m) 239 | } 240 | 241 | var xxx_messageInfo_ChannelInfo proto.InternalMessageInfo 242 | 243 | func (m *ChannelInfo) GetChannelId() string { 244 | if m != nil { 245 | return m.ChannelId 246 | } 247 | return "" 248 | } 249 | 250 | // JoinBySnapshotStatus contains information about whether or a JoinBySnapshot operation 251 | // is in progress and the related bootstrap dir if it is running. 252 | type JoinBySnapshotStatus struct { 253 | InProgress bool `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"` 254 | BootstrappingSnapshotDir string `protobuf:"bytes,2,opt,name=bootstrapping_snapshot_dir,json=bootstrappingSnapshotDir,proto3" json:"bootstrapping_snapshot_dir,omitempty"` 255 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 256 | XXX_unrecognized []byte `json:"-"` 257 | XXX_sizecache int32 `json:"-"` 258 | } 259 | 260 | func (m *JoinBySnapshotStatus) Reset() { *m = JoinBySnapshotStatus{} } 261 | func (m *JoinBySnapshotStatus) String() string { return proto.CompactTextString(m) } 262 | func (*JoinBySnapshotStatus) ProtoMessage() {} 263 | func (*JoinBySnapshotStatus) Descriptor() ([]byte, []int) { 264 | return fileDescriptor_d45bcf7fe2423301, []int{4} 265 | } 266 | 267 | func (m *JoinBySnapshotStatus) XXX_Unmarshal(b []byte) error { 268 | return xxx_messageInfo_JoinBySnapshotStatus.Unmarshal(m, b) 269 | } 270 | func (m *JoinBySnapshotStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 271 | return xxx_messageInfo_JoinBySnapshotStatus.Marshal(b, m, deterministic) 272 | } 273 | func (m *JoinBySnapshotStatus) XXX_Merge(src proto.Message) { 274 | xxx_messageInfo_JoinBySnapshotStatus.Merge(m, src) 275 | } 276 | func (m *JoinBySnapshotStatus) XXX_Size() int { 277 | return xxx_messageInfo_JoinBySnapshotStatus.Size(m) 278 | } 279 | func (m *JoinBySnapshotStatus) XXX_DiscardUnknown() { 280 | xxx_messageInfo_JoinBySnapshotStatus.DiscardUnknown(m) 281 | } 282 | 283 | var xxx_messageInfo_JoinBySnapshotStatus proto.InternalMessageInfo 284 | 285 | func (m *JoinBySnapshotStatus) GetInProgress() bool { 286 | if m != nil { 287 | return m.InProgress 288 | } 289 | return false 290 | } 291 | 292 | func (m *JoinBySnapshotStatus) GetBootstrappingSnapshotDir() string { 293 | if m != nil { 294 | return m.BootstrappingSnapshotDir 295 | } 296 | return "" 297 | } 298 | 299 | func init() { 300 | proto.RegisterType((*ChaincodeQueryResponse)(nil), "protos.ChaincodeQueryResponse") 301 | proto.RegisterType((*ChaincodeInfo)(nil), "protos.ChaincodeInfo") 302 | proto.RegisterType((*ChannelQueryResponse)(nil), "protos.ChannelQueryResponse") 303 | proto.RegisterType((*ChannelInfo)(nil), "protos.ChannelInfo") 304 | proto.RegisterType((*JoinBySnapshotStatus)(nil), "protos.JoinBySnapshotStatus") 305 | } 306 | 307 | func init() { proto.RegisterFile("peer/query.proto", fileDescriptor_d45bcf7fe2423301) } 308 | 309 | var fileDescriptor_d45bcf7fe2423301 = []byte{ 310 | // 366 bytes of a gzipped FileDescriptorProto 311 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x92, 0xcf, 0x6a, 0xe3, 0x30, 312 | 0x10, 0x87, 0x71, 0xfe, 0x67, 0xb2, 0xbb, 0x2c, 0x6a, 0x5a, 0x44, 0xa1, 0x34, 0xf8, 0x94, 0x43, 313 | 0x62, 0x43, 0x4b, 0x6f, 0x3d, 0x25, 0x85, 0x92, 0x5e, 0xda, 0x3a, 0xb7, 0x5e, 0x8c, 0x6c, 0x2b, 314 | 0xb6, 0x20, 0x91, 0x54, 0x49, 0x0e, 0xe4, 0x69, 0xfa, 0xaa, 0x45, 0x96, 0x1d, 0x9c, 0x93, 0x67, 315 | 0xbe, 0xf9, 0xc6, 0xe2, 0x27, 0x04, 0xff, 0x25, 0xa5, 0x2a, 0xfc, 0x2e, 0xa9, 0x3a, 0x05, 0x52, 316 | 0x09, 0x23, 0xd0, 0xa0, 0xfa, 0x68, 0xff, 0x1d, 0x6e, 0xd6, 0x05, 0x61, 0x3c, 0x15, 0x19, 0xfd, 317 | 0xb4, 0xf3, 0x88, 0x6a, 0x29, 0xb8, 0xa6, 0xe8, 0x09, 0x20, 0x6d, 0x26, 0x1a, 0x7b, 0xb3, 0xee, 318 | 0x7c, 0xf2, 0x70, 0xed, 0xb6, 0x75, 0x70, 0xde, 0xd9, 0xf0, 0x9d, 0x88, 0x5a, 0xa2, 0xff, 0xe3, 319 | 0xc1, 0xdf, 0x8b, 0x29, 0x42, 0xd0, 0xe3, 0xe4, 0x40, 0xb1, 0x37, 0xf3, 0xe6, 0xe3, 0xa8, 0xaa, 320 | 0x11, 0x86, 0xe1, 0x91, 0x2a, 0xcd, 0x04, 0xc7, 0x9d, 0x0a, 0x37, 0xad, 0xb5, 0x25, 0x31, 0x05, 321 | 0xee, 0x3a, 0xdb, 0xd6, 0x68, 0x0a, 0x7d, 0xc6, 0x65, 0x69, 0x70, 0xaf, 0x82, 0xae, 0xb1, 0x26, 322 | 0xd5, 0x69, 0x8a, 0xfb, 0xce, 0xb4, 0xb5, 0x65, 0x47, 0xcb, 0x06, 0x8e, 0xd9, 0x1a, 0xfd, 0x83, 323 | 0x0e, 0xcb, 0xf0, 0x70, 0xe6, 0xcd, 0xff, 0x44, 0x1d, 0x96, 0xf9, 0xaf, 0x30, 0x5d, 0x17, 0x84, 324 | 0x73, 0xba, 0xbf, 0x0c, 0x1c, 0xc2, 0x28, 0x75, 0xbc, 0x89, 0x7b, 0xd5, 0x8a, 0x6b, 0x79, 0x15, 325 | 0xf6, 0x2c, 0xf9, 0x0b, 0x98, 0xb4, 0x06, 0xe8, 0xae, 0xba, 0x30, 0xdb, 0xc6, 0x2c, 0xab, 0xd3, 326 | 0x8e, 0x6b, 0xb2, 0xc9, 0xfc, 0x12, 0xa6, 0x6f, 0x82, 0xf1, 0xd5, 0x69, 0xcb, 0x89, 0xd4, 0x85, 327 | 0x30, 0x5b, 0x43, 0x4c, 0xa9, 0xd1, 0x3d, 0x4c, 0x18, 0x8f, 0xa5, 0x12, 0xb9, 0xa2, 0x5a, 0x57, 328 | 0x7b, 0xa3, 0x08, 0x18, 0xff, 0xa8, 0x09, 0x7a, 0x86, 0xdb, 0x44, 0x08, 0xa3, 0x8d, 0x22, 0x52, 329 | 0x32, 0x9e, 0xc7, 0xba, 0xfe, 0x41, 0x9c, 0x31, 0x55, 0x5f, 0x1f, 0xbe, 0x30, 0x9a, 0x13, 0x5e, 330 | 0x98, 0x5a, 0x45, 0xe0, 0x0b, 0x95, 0x07, 0xc5, 0x49, 0x52, 0xb5, 0xa7, 0x59, 0x4e, 0x55, 0xb0, 331 | 0x23, 0x89, 0x62, 0x69, 0x93, 0xcd, 0x3e, 0x8d, 0xaf, 0x45, 0xce, 0x4c, 0x51, 0x26, 0x41, 0x2a, 332 | 0x0e, 0x61, 0x4b, 0x0d, 0x9d, 0xba, 0x74, 0xea, 0x32, 0x17, 0xa1, 0xb5, 0x13, 0xf7, 0x78, 0x1e, 333 | 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x43, 0x94, 0x8d, 0x57, 0x02, 0x00, 0x00, 334 | } 335 | -------------------------------------------------------------------------------- /peer/resources.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/resources.proto 3 | 4 | package peer 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | common "github.com/hyperledger/fabric-protos-go/common" 10 | math "math" 11 | ) 12 | 13 | // Reference imports to suppress errors if they are not otherwise used. 14 | var _ = proto.Marshal 15 | var _ = fmt.Errorf 16 | var _ = math.Inf 17 | 18 | // This is a compile-time assertion to ensure that this generated file 19 | // is compatible with the proto package it is being compiled against. 20 | // A compilation error at this line likely means your copy of the 21 | // proto package needs to be updated. 22 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 23 | 24 | // ChaincodeIdentifier identifies a piece of chaincode. For a peer to accept invocations of 25 | // this chaincode, the hash of the installed code must match, as must the version string 26 | // included with the install command. 27 | type ChaincodeIdentifier struct { 28 | Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` 29 | Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 30 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 31 | XXX_unrecognized []byte `json:"-"` 32 | XXX_sizecache int32 `json:"-"` 33 | } 34 | 35 | func (m *ChaincodeIdentifier) Reset() { *m = ChaincodeIdentifier{} } 36 | func (m *ChaincodeIdentifier) String() string { return proto.CompactTextString(m) } 37 | func (*ChaincodeIdentifier) ProtoMessage() {} 38 | func (*ChaincodeIdentifier) Descriptor() ([]byte, []int) { 39 | return fileDescriptor_4991d8496920b696, []int{0} 40 | } 41 | 42 | func (m *ChaincodeIdentifier) XXX_Unmarshal(b []byte) error { 43 | return xxx_messageInfo_ChaincodeIdentifier.Unmarshal(m, b) 44 | } 45 | func (m *ChaincodeIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 46 | return xxx_messageInfo_ChaincodeIdentifier.Marshal(b, m, deterministic) 47 | } 48 | func (m *ChaincodeIdentifier) XXX_Merge(src proto.Message) { 49 | xxx_messageInfo_ChaincodeIdentifier.Merge(m, src) 50 | } 51 | func (m *ChaincodeIdentifier) XXX_Size() int { 52 | return xxx_messageInfo_ChaincodeIdentifier.Size(m) 53 | } 54 | func (m *ChaincodeIdentifier) XXX_DiscardUnknown() { 55 | xxx_messageInfo_ChaincodeIdentifier.DiscardUnknown(m) 56 | } 57 | 58 | var xxx_messageInfo_ChaincodeIdentifier proto.InternalMessageInfo 59 | 60 | func (m *ChaincodeIdentifier) GetHash() []byte { 61 | if m != nil { 62 | return m.Hash 63 | } 64 | return nil 65 | } 66 | 67 | func (m *ChaincodeIdentifier) GetVersion() string { 68 | if m != nil { 69 | return m.Version 70 | } 71 | return "" 72 | } 73 | 74 | // ChaincodeValidation instructs the peer how transactions for this chaincode should be 75 | // validated. The only validation mechanism which ships with fabric today is the standard 76 | // 'vscc' validation mechanism. This built in validation method utilizes an endorsement policy 77 | // which checks that a sufficient number of signatures have been included. The 'arguement' 78 | // field encodes any parameters required by the validation implementation. 79 | type ChaincodeValidation struct { 80 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 81 | Argument []byte `protobuf:"bytes,2,opt,name=argument,proto3" json:"argument,omitempty"` 82 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 83 | XXX_unrecognized []byte `json:"-"` 84 | XXX_sizecache int32 `json:"-"` 85 | } 86 | 87 | func (m *ChaincodeValidation) Reset() { *m = ChaincodeValidation{} } 88 | func (m *ChaincodeValidation) String() string { return proto.CompactTextString(m) } 89 | func (*ChaincodeValidation) ProtoMessage() {} 90 | func (*ChaincodeValidation) Descriptor() ([]byte, []int) { 91 | return fileDescriptor_4991d8496920b696, []int{1} 92 | } 93 | 94 | func (m *ChaincodeValidation) XXX_Unmarshal(b []byte) error { 95 | return xxx_messageInfo_ChaincodeValidation.Unmarshal(m, b) 96 | } 97 | func (m *ChaincodeValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 98 | return xxx_messageInfo_ChaincodeValidation.Marshal(b, m, deterministic) 99 | } 100 | func (m *ChaincodeValidation) XXX_Merge(src proto.Message) { 101 | xxx_messageInfo_ChaincodeValidation.Merge(m, src) 102 | } 103 | func (m *ChaincodeValidation) XXX_Size() int { 104 | return xxx_messageInfo_ChaincodeValidation.Size(m) 105 | } 106 | func (m *ChaincodeValidation) XXX_DiscardUnknown() { 107 | xxx_messageInfo_ChaincodeValidation.DiscardUnknown(m) 108 | } 109 | 110 | var xxx_messageInfo_ChaincodeValidation proto.InternalMessageInfo 111 | 112 | func (m *ChaincodeValidation) GetName() string { 113 | if m != nil { 114 | return m.Name 115 | } 116 | return "" 117 | } 118 | 119 | func (m *ChaincodeValidation) GetArgument() []byte { 120 | if m != nil { 121 | return m.Argument 122 | } 123 | return nil 124 | } 125 | 126 | // VSCCArgs is passed (marshaled) as a parameter to the VSCC imlementation via the 127 | // argument field of the ChaincodeValidation message. 128 | type VSCCArgs struct { 129 | EndorsementPolicyRef string `protobuf:"bytes,1,opt,name=endorsement_policy_ref,json=endorsementPolicyRef,proto3" json:"endorsement_policy_ref,omitempty"` 130 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 131 | XXX_unrecognized []byte `json:"-"` 132 | XXX_sizecache int32 `json:"-"` 133 | } 134 | 135 | func (m *VSCCArgs) Reset() { *m = VSCCArgs{} } 136 | func (m *VSCCArgs) String() string { return proto.CompactTextString(m) } 137 | func (*VSCCArgs) ProtoMessage() {} 138 | func (*VSCCArgs) Descriptor() ([]byte, []int) { 139 | return fileDescriptor_4991d8496920b696, []int{2} 140 | } 141 | 142 | func (m *VSCCArgs) XXX_Unmarshal(b []byte) error { 143 | return xxx_messageInfo_VSCCArgs.Unmarshal(m, b) 144 | } 145 | func (m *VSCCArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 146 | return xxx_messageInfo_VSCCArgs.Marshal(b, m, deterministic) 147 | } 148 | func (m *VSCCArgs) XXX_Merge(src proto.Message) { 149 | xxx_messageInfo_VSCCArgs.Merge(m, src) 150 | } 151 | func (m *VSCCArgs) XXX_Size() int { 152 | return xxx_messageInfo_VSCCArgs.Size(m) 153 | } 154 | func (m *VSCCArgs) XXX_DiscardUnknown() { 155 | xxx_messageInfo_VSCCArgs.DiscardUnknown(m) 156 | } 157 | 158 | var xxx_messageInfo_VSCCArgs proto.InternalMessageInfo 159 | 160 | func (m *VSCCArgs) GetEndorsementPolicyRef() string { 161 | if m != nil { 162 | return m.EndorsementPolicyRef 163 | } 164 | return "" 165 | } 166 | 167 | // ChaincodeEndorsement instructs the peer how transactions should be endorsed. The only 168 | // endorsement mechanism which ships with the fabric today is the standard 'escc' mechanism. 169 | // This code simply simulates the proposal to generate a RW set, then signs the result 170 | // using the peer's local signing identity. 171 | type ChaincodeEndorsement struct { 172 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 173 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 174 | XXX_unrecognized []byte `json:"-"` 175 | XXX_sizecache int32 `json:"-"` 176 | } 177 | 178 | func (m *ChaincodeEndorsement) Reset() { *m = ChaincodeEndorsement{} } 179 | func (m *ChaincodeEndorsement) String() string { return proto.CompactTextString(m) } 180 | func (*ChaincodeEndorsement) ProtoMessage() {} 181 | func (*ChaincodeEndorsement) Descriptor() ([]byte, []int) { 182 | return fileDescriptor_4991d8496920b696, []int{3} 183 | } 184 | 185 | func (m *ChaincodeEndorsement) XXX_Unmarshal(b []byte) error { 186 | return xxx_messageInfo_ChaincodeEndorsement.Unmarshal(m, b) 187 | } 188 | func (m *ChaincodeEndorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 189 | return xxx_messageInfo_ChaincodeEndorsement.Marshal(b, m, deterministic) 190 | } 191 | func (m *ChaincodeEndorsement) XXX_Merge(src proto.Message) { 192 | xxx_messageInfo_ChaincodeEndorsement.Merge(m, src) 193 | } 194 | func (m *ChaincodeEndorsement) XXX_Size() int { 195 | return xxx_messageInfo_ChaincodeEndorsement.Size(m) 196 | } 197 | func (m *ChaincodeEndorsement) XXX_DiscardUnknown() { 198 | xxx_messageInfo_ChaincodeEndorsement.DiscardUnknown(m) 199 | } 200 | 201 | var xxx_messageInfo_ChaincodeEndorsement proto.InternalMessageInfo 202 | 203 | func (m *ChaincodeEndorsement) GetName() string { 204 | if m != nil { 205 | return m.Name 206 | } 207 | return "" 208 | } 209 | 210 | // ConfigTree encapsulates channel and resources configuration of a channel. 211 | // Both configurations are represented as common.Config 212 | type ConfigTree struct { 213 | ChannelConfig *common.Config `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"` 214 | ResourcesConfig *common.Config `protobuf:"bytes,2,opt,name=resources_config,json=resourcesConfig,proto3" json:"resources_config,omitempty"` 215 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 216 | XXX_unrecognized []byte `json:"-"` 217 | XXX_sizecache int32 `json:"-"` 218 | } 219 | 220 | func (m *ConfigTree) Reset() { *m = ConfigTree{} } 221 | func (m *ConfigTree) String() string { return proto.CompactTextString(m) } 222 | func (*ConfigTree) ProtoMessage() {} 223 | func (*ConfigTree) Descriptor() ([]byte, []int) { 224 | return fileDescriptor_4991d8496920b696, []int{4} 225 | } 226 | 227 | func (m *ConfigTree) XXX_Unmarshal(b []byte) error { 228 | return xxx_messageInfo_ConfigTree.Unmarshal(m, b) 229 | } 230 | func (m *ConfigTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 231 | return xxx_messageInfo_ConfigTree.Marshal(b, m, deterministic) 232 | } 233 | func (m *ConfigTree) XXX_Merge(src proto.Message) { 234 | xxx_messageInfo_ConfigTree.Merge(m, src) 235 | } 236 | func (m *ConfigTree) XXX_Size() int { 237 | return xxx_messageInfo_ConfigTree.Size(m) 238 | } 239 | func (m *ConfigTree) XXX_DiscardUnknown() { 240 | xxx_messageInfo_ConfigTree.DiscardUnknown(m) 241 | } 242 | 243 | var xxx_messageInfo_ConfigTree proto.InternalMessageInfo 244 | 245 | func (m *ConfigTree) GetChannelConfig() *common.Config { 246 | if m != nil { 247 | return m.ChannelConfig 248 | } 249 | return nil 250 | } 251 | 252 | func (m *ConfigTree) GetResourcesConfig() *common.Config { 253 | if m != nil { 254 | return m.ResourcesConfig 255 | } 256 | return nil 257 | } 258 | 259 | func init() { 260 | proto.RegisterType((*ChaincodeIdentifier)(nil), "protos.ChaincodeIdentifier") 261 | proto.RegisterType((*ChaincodeValidation)(nil), "protos.ChaincodeValidation") 262 | proto.RegisterType((*VSCCArgs)(nil), "protos.VSCCArgs") 263 | proto.RegisterType((*ChaincodeEndorsement)(nil), "protos.ChaincodeEndorsement") 264 | proto.RegisterType((*ConfigTree)(nil), "protos.ConfigTree") 265 | } 266 | 267 | func init() { proto.RegisterFile("peer/resources.proto", fileDescriptor_4991d8496920b696) } 268 | 269 | var fileDescriptor_4991d8496920b696 = []byte{ 270 | // 327 bytes of a gzipped FileDescriptorProto 271 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x3f, 0x4f, 0xc3, 0x30, 272 | 0x10, 0xc5, 0xd5, 0x0a, 0x41, 0x6b, 0x4a, 0x41, 0xa6, 0xa0, 0xaa, 0x53, 0x95, 0xa9, 0x42, 0x34, 273 | 0x91, 0xf8, 0x33, 0xb0, 0x01, 0x51, 0x07, 0x36, 0x64, 0x50, 0x07, 0x96, 0xca, 0x75, 0x2e, 0x8e, 274 | 0xa5, 0xc4, 0x8e, 0xce, 0x29, 0xa2, 0x0b, 0x9f, 0x1d, 0xc5, 0x6e, 0x43, 0x86, 0x4e, 0xbe, 0xf3, 275 | 0xfb, 0xdd, 0xd3, 0xe9, 0x1d, 0x19, 0x95, 0x00, 0x18, 0x21, 0x58, 0xb3, 0x41, 0x01, 0x36, 0x2c, 276 | 0xd1, 0x54, 0x86, 0x1e, 0xbb, 0xc7, 0x4e, 0xae, 0x84, 0x29, 0x0a, 0xa3, 0x23, 0x61, 0x74, 0xaa, 277 | 0x64, 0xf5, 0xe3, 0xe5, 0x20, 0x26, 0x97, 0x71, 0xc6, 0x95, 0x16, 0x26, 0x81, 0xb7, 0x04, 0x74, 278 | 0xa5, 0x52, 0x05, 0x48, 0x29, 0x39, 0xca, 0xb8, 0xcd, 0xc6, 0x9d, 0x69, 0x67, 0x36, 0x60, 0xae, 279 | 0xa6, 0x63, 0x72, 0xf2, 0x0d, 0x68, 0x95, 0xd1, 0xe3, 0xee, 0xb4, 0x33, 0xeb, 0xb3, 0x7d, 0x1b, 280 | 0x2c, 0x5a, 0x26, 0x4b, 0x9e, 0xab, 0x84, 0x57, 0xca, 0xe8, 0xda, 0x44, 0xf3, 0x02, 0x9c, 0x49, 281 | 0x9f, 0xb9, 0x9a, 0x4e, 0x48, 0x8f, 0xa3, 0xdc, 0x14, 0xa0, 0x2b, 0xe7, 0x32, 0x60, 0x4d, 0x1f, 282 | 0x3c, 0x93, 0xde, 0xf2, 0x23, 0x8e, 0x5f, 0x50, 0x5a, 0xfa, 0x40, 0xae, 0x41, 0x27, 0x06, 0x2d, 283 | 0xd4, 0xd2, 0xaa, 0x34, 0xb9, 0x12, 0xdb, 0x15, 0x42, 0xba, 0x73, 0x1b, 0xb5, 0xd4, 0x77, 0x27, 284 | 0x32, 0x48, 0x83, 0x1b, 0x32, 0x6a, 0x16, 0x59, 0xfc, 0x03, 0x87, 0x36, 0x09, 0x7e, 0x09, 0x89, 285 | 0x5d, 0x16, 0x9f, 0x08, 0x40, 0x1f, 0xc9, 0x50, 0x64, 0x5c, 0x6b, 0xc8, 0x57, 0x3e, 0x21, 0xc7, 286 | 0x9e, 0xde, 0x0d, 0x43, 0x9f, 0x5b, 0xe8, 0x59, 0x76, 0xb6, 0xa3, 0x7c, 0x4b, 0x9f, 0xc8, 0x45, 287 | 0x13, 0xf8, 0x7e, 0xb0, 0x7b, 0x70, 0xf0, 0xbc, 0xe1, 0xfc, 0xc7, 0x2b, 0x23, 0x81, 0x41, 0x19, 288 | 0x66, 0xdb, 0x12, 0x30, 0x87, 0x44, 0x02, 0x86, 0x29, 0x5f, 0xa3, 0x12, 0xfe, 0x32, 0x36, 0xac, 289 | 0xcf, 0xf9, 0x75, 0x2b, 0x55, 0x95, 0x6d, 0xd6, 0xb5, 0x59, 0xd4, 0x42, 0x23, 0x8f, 0xce, 0x3d, 290 | 0x3a, 0x97, 0x26, 0xaa, 0xe9, 0xb5, 0x3f, 0xf6, 0xfd, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xae, 291 | 0x32, 0x27, 0x0c, 0x0b, 0x02, 0x00, 0x00, 292 | } 293 | -------------------------------------------------------------------------------- /peer/signed_cc_dep_spec.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: peer/signed_cc_dep_spec.proto 3 | 4 | package peer 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | math "math" 10 | ) 11 | 12 | // Reference imports to suppress errors if they are not otherwise used. 13 | var _ = proto.Marshal 14 | var _ = fmt.Errorf 15 | var _ = math.Inf 16 | 17 | // This is a compile-time assertion to ensure that this generated file 18 | // is compatible with the proto package it is being compiled against. 19 | // A compilation error at this line likely means your copy of the 20 | // proto package needs to be updated. 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 | 23 | // SignedChaincodeDeploymentSpec carries the CDS along with endorsements 24 | type SignedChaincodeDeploymentSpec struct { 25 | // This is the bytes of the ChaincodeDeploymentSpec 26 | ChaincodeDeploymentSpec []byte `protobuf:"bytes,1,opt,name=chaincode_deployment_spec,json=chaincodeDeploymentSpec,proto3" json:"chaincode_deployment_spec,omitempty"` 27 | // This is the instantiation policy which is identical in structure 28 | // to endorsement policy. This policy is checked by the VSCC at commit 29 | // time on the instantiation (all peers will get the same policy as it 30 | // will be part of the LSCC instantation record and will be part of the 31 | // hash as well) 32 | InstantiationPolicy []byte `protobuf:"bytes,2,opt,name=instantiation_policy,json=instantiationPolicy,proto3" json:"instantiation_policy,omitempty"` 33 | // The endorsements of the above deployment spec, the owner's signature over 34 | // chaincode_deployment_spec and Endorsement.endorser. 35 | OwnerEndorsements []*Endorsement `protobuf:"bytes,3,rep,name=owner_endorsements,json=ownerEndorsements,proto3" json:"owner_endorsements,omitempty"` 36 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 37 | XXX_unrecognized []byte `json:"-"` 38 | XXX_sizecache int32 `json:"-"` 39 | } 40 | 41 | func (m *SignedChaincodeDeploymentSpec) Reset() { *m = SignedChaincodeDeploymentSpec{} } 42 | func (m *SignedChaincodeDeploymentSpec) String() string { return proto.CompactTextString(m) } 43 | func (*SignedChaincodeDeploymentSpec) ProtoMessage() {} 44 | func (*SignedChaincodeDeploymentSpec) Descriptor() ([]byte, []int) { 45 | return fileDescriptor_e007a7c0644e7e6f, []int{0} 46 | } 47 | 48 | func (m *SignedChaincodeDeploymentSpec) XXX_Unmarshal(b []byte) error { 49 | return xxx_messageInfo_SignedChaincodeDeploymentSpec.Unmarshal(m, b) 50 | } 51 | func (m *SignedChaincodeDeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 52 | return xxx_messageInfo_SignedChaincodeDeploymentSpec.Marshal(b, m, deterministic) 53 | } 54 | func (m *SignedChaincodeDeploymentSpec) XXX_Merge(src proto.Message) { 55 | xxx_messageInfo_SignedChaincodeDeploymentSpec.Merge(m, src) 56 | } 57 | func (m *SignedChaincodeDeploymentSpec) XXX_Size() int { 58 | return xxx_messageInfo_SignedChaincodeDeploymentSpec.Size(m) 59 | } 60 | func (m *SignedChaincodeDeploymentSpec) XXX_DiscardUnknown() { 61 | xxx_messageInfo_SignedChaincodeDeploymentSpec.DiscardUnknown(m) 62 | } 63 | 64 | var xxx_messageInfo_SignedChaincodeDeploymentSpec proto.InternalMessageInfo 65 | 66 | func (m *SignedChaincodeDeploymentSpec) GetChaincodeDeploymentSpec() []byte { 67 | if m != nil { 68 | return m.ChaincodeDeploymentSpec 69 | } 70 | return nil 71 | } 72 | 73 | func (m *SignedChaincodeDeploymentSpec) GetInstantiationPolicy() []byte { 74 | if m != nil { 75 | return m.InstantiationPolicy 76 | } 77 | return nil 78 | } 79 | 80 | func (m *SignedChaincodeDeploymentSpec) GetOwnerEndorsements() []*Endorsement { 81 | if m != nil { 82 | return m.OwnerEndorsements 83 | } 84 | return nil 85 | } 86 | 87 | func init() { 88 | proto.RegisterType((*SignedChaincodeDeploymentSpec)(nil), "protos.SignedChaincodeDeploymentSpec") 89 | } 90 | 91 | func init() { proto.RegisterFile("peer/signed_cc_dep_spec.proto", fileDescriptor_e007a7c0644e7e6f) } 92 | 93 | var fileDescriptor_e007a7c0644e7e6f = []byte{ 94 | // 258 bytes of a gzipped FileDescriptorProto 95 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x41, 0x4b, 0xf3, 0x40, 96 | 0x10, 0x86, 0xc9, 0x57, 0xf8, 0x0e, 0xab, 0x17, 0x53, 0xc1, 0x28, 0x16, 0x4a, 0x4f, 0x3d, 0xd8, 97 | 0x04, 0xf5, 0xe6, 0xb1, 0xea, 0x5d, 0xd2, 0x9b, 0x97, 0x25, 0x99, 0x8c, 0xc9, 0x42, 0xba, 0x33, 98 | 0xcc, 0xac, 0x48, 0xfe, 0xa6, 0xbf, 0x48, 0xb2, 0xb1, 0x58, 0x0f, 0x9e, 0x16, 0xf6, 0x79, 0xde, 99 | 0x99, 0xe1, 0x35, 0x0b, 0x46, 0x94, 0x42, 0x5d, 0xeb, 0xb1, 0xb1, 0x00, 0xb6, 0x41, 0xb6, 0xca, 100 | 0x08, 0x39, 0x0b, 0x05, 0x4a, 0xff, 0xc7, 0x47, 0xaf, 0xae, 0xa3, 0xc6, 0x42, 0x4c, 0x5a, 0xf5, 101 | 0x56, 0x50, 0x99, 0xbc, 0xe2, 0x64, 0xad, 0x3e, 0x13, 0xb3, 0xd8, 0xc5, 0x11, 0x8f, 0x5d, 0xe5, 102 | 0x3c, 0x50, 0x83, 0x4f, 0xc8, 0x3d, 0x0d, 0x7b, 0xf4, 0x61, 0xc7, 0x08, 0xe9, 0x83, 0xb9, 0x84, 103 | 0x03, 0x1a, 0x77, 0x7c, 0xb3, 0xb8, 0x2a, 0x4b, 0x96, 0xc9, 0xfa, 0xb4, 0xbc, 0x80, 0x3f, 0xb2, 104 | 0xb7, 0xe6, 0xdc, 0x79, 0x0d, 0x95, 0x0f, 0xae, 0x0a, 0x8e, 0xbc, 0x65, 0xea, 0x1d, 0x0c, 0xd9, 105 | 0xbf, 0x18, 0x9b, 0xff, 0x62, 0x2f, 0x11, 0xa5, 0x5b, 0x93, 0xd2, 0x87, 0x47, 0xb1, 0xe8, 0x1b, 106 | 0x12, 0xc5, 0x71, 0x96, 0x66, 0xb3, 0xe5, 0x6c, 0x7d, 0x72, 0x37, 0x9f, 0x8e, 0xd6, 0xfc, 0xf9, 107 | 0x87, 0x95, 0x67, 0x51, 0x3f, 0xfa, 0xd1, 0x6d, 0x69, 0x56, 0x24, 0x6d, 0xde, 0x0d, 0x8c, 0xd2, 108 | 0x63, 0xd3, 0xa2, 0xe4, 0x6f, 0x55, 0x2d, 0x0e, 0x0e, 0xf9, 0xb1, 0x92, 0xd7, 0x9b, 0xd6, 0x85, 109 | 0xee, 0xbd, 0xce, 0x81, 0xf6, 0xc5, 0x91, 0x5a, 0x4c, 0xea, 0x66, 0x52, 0x37, 0x2d, 0x15, 0xa3, 110 | 0x5d, 0x4f, 0x75, 0xde, 0x7f, 0x05, 0x00, 0x00, 0xff, 0xff, 0xa0, 0xc6, 0x22, 0xdb, 0x76, 0x01, 111 | 0x00, 0x00, 112 | } 113 | -------------------------------------------------------------------------------- /transientstore/transientstore.pb.go: -------------------------------------------------------------------------------- 1 | // Code generated by protoc-gen-go. DO NOT EDIT. 2 | // source: transientstore/transientstore.proto 3 | 4 | package transientstore 5 | 6 | import ( 7 | fmt "fmt" 8 | proto "github.com/golang/protobuf/proto" 9 | rwset "github.com/hyperledger/fabric-protos-go/ledger/rwset" 10 | peer "github.com/hyperledger/fabric-protos-go/peer" 11 | math "math" 12 | ) 13 | 14 | // Reference imports to suppress errors if they are not otherwise used. 15 | var _ = proto.Marshal 16 | var _ = fmt.Errorf 17 | var _ = math.Inf 18 | 19 | // This is a compile-time assertion to ensure that this generated file 20 | // is compatible with the proto package it is being compiled against. 21 | // A compilation error at this line likely means your copy of the 22 | // proto package needs to be updated. 23 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 | 25 | // TxPvtReadWriteSetWithConfigInfo encapsulates the transaction's private 26 | // read-write set and additional information about the configurations such as 27 | // the latest collection config when the transaction is simulated 28 | type TxPvtReadWriteSetWithConfigInfo struct { 29 | EndorsedAt uint64 `protobuf:"varint,1,opt,name=endorsed_at,json=endorsedAt,proto3" json:"endorsed_at,omitempty"` 30 | PvtRwset *rwset.TxPvtReadWriteSet `protobuf:"bytes,2,opt,name=pvt_rwset,json=pvtRwset,proto3" json:"pvt_rwset,omitempty"` 31 | CollectionConfigs map[string]*peer.CollectionConfigPackage `protobuf:"bytes,3,rep,name=collection_configs,json=collectionConfigs,proto3" json:"collection_configs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 32 | XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 | XXX_unrecognized []byte `json:"-"` 34 | XXX_sizecache int32 `json:"-"` 35 | } 36 | 37 | func (m *TxPvtReadWriteSetWithConfigInfo) Reset() { *m = TxPvtReadWriteSetWithConfigInfo{} } 38 | func (m *TxPvtReadWriteSetWithConfigInfo) String() string { return proto.CompactTextString(m) } 39 | func (*TxPvtReadWriteSetWithConfigInfo) ProtoMessage() {} 40 | func (*TxPvtReadWriteSetWithConfigInfo) Descriptor() ([]byte, []int) { 41 | return fileDescriptor_fca243668b157b9e, []int{0} 42 | } 43 | 44 | func (m *TxPvtReadWriteSetWithConfigInfo) XXX_Unmarshal(b []byte) error { 45 | return xxx_messageInfo_TxPvtReadWriteSetWithConfigInfo.Unmarshal(m, b) 46 | } 47 | func (m *TxPvtReadWriteSetWithConfigInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 48 | return xxx_messageInfo_TxPvtReadWriteSetWithConfigInfo.Marshal(b, m, deterministic) 49 | } 50 | func (m *TxPvtReadWriteSetWithConfigInfo) XXX_Merge(src proto.Message) { 51 | xxx_messageInfo_TxPvtReadWriteSetWithConfigInfo.Merge(m, src) 52 | } 53 | func (m *TxPvtReadWriteSetWithConfigInfo) XXX_Size() int { 54 | return xxx_messageInfo_TxPvtReadWriteSetWithConfigInfo.Size(m) 55 | } 56 | func (m *TxPvtReadWriteSetWithConfigInfo) XXX_DiscardUnknown() { 57 | xxx_messageInfo_TxPvtReadWriteSetWithConfigInfo.DiscardUnknown(m) 58 | } 59 | 60 | var xxx_messageInfo_TxPvtReadWriteSetWithConfigInfo proto.InternalMessageInfo 61 | 62 | func (m *TxPvtReadWriteSetWithConfigInfo) GetEndorsedAt() uint64 { 63 | if m != nil { 64 | return m.EndorsedAt 65 | } 66 | return 0 67 | } 68 | 69 | func (m *TxPvtReadWriteSetWithConfigInfo) GetPvtRwset() *rwset.TxPvtReadWriteSet { 70 | if m != nil { 71 | return m.PvtRwset 72 | } 73 | return nil 74 | } 75 | 76 | func (m *TxPvtReadWriteSetWithConfigInfo) GetCollectionConfigs() map[string]*peer.CollectionConfigPackage { 77 | if m != nil { 78 | return m.CollectionConfigs 79 | } 80 | return nil 81 | } 82 | 83 | func init() { 84 | proto.RegisterType((*TxPvtReadWriteSetWithConfigInfo)(nil), "transientstore.TxPvtReadWriteSetWithConfigInfo") 85 | proto.RegisterMapType((map[string]*peer.CollectionConfigPackage)(nil), "transientstore.TxPvtReadWriteSetWithConfigInfo.CollectionConfigsEntry") 86 | } 87 | 88 | func init() { 89 | proto.RegisterFile("transientstore/transientstore.proto", fileDescriptor_fca243668b157b9e) 90 | } 91 | 92 | var fileDescriptor_fca243668b157b9e = []byte{ 93 | // 320 bytes of a gzipped FileDescriptorProto 94 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x41, 0x4b, 0x33, 0x31, 95 | 0x10, 0x65, 0xdb, 0xef, 0x13, 0x9b, 0x82, 0x68, 0x40, 0x59, 0x7a, 0x69, 0xd1, 0x4b, 0x0f, 0x36, 96 | 0x0b, 0x95, 0x8a, 0x78, 0xd3, 0xa2, 0xe0, 0xad, 0x44, 0xa1, 0xe0, 0xa5, 0xa4, 0xd9, 0xd9, 0x34, 97 | 0x74, 0x4d, 0x96, 0x64, 0xba, 0xda, 0x5f, 0xea, 0xdf, 0x91, 0x6e, 0xac, 0xda, 0x56, 0xf0, 0x12, 98 | 0x92, 0x37, 0xf3, 0xde, 0x9b, 0x97, 0x84, 0x9c, 0xa1, 0x13, 0xc6, 0x6b, 0x30, 0xe8, 0xd1, 0x3a, 99 | 0x48, 0x36, 0x8f, 0xac, 0x70, 0x16, 0x2d, 0x3d, 0xd8, 0x44, 0x5b, 0x71, 0x0e, 0xa9, 0x02, 0x97, 100 | 0xb8, 0x57, 0x0f, 0x18, 0xd6, 0xd0, 0xd9, 0x3a, 0x2e, 0x00, 0x5c, 0x22, 0x6d, 0x9e, 0x83, 0x44, 101 | 0x6d, 0x4d, 0x80, 0x4f, 0xdf, 0x6b, 0xa4, 0xfd, 0xf4, 0x36, 0x2a, 0x91, 0x83, 0x48, 0xc7, 0x4e, 102 | 0x23, 0x3c, 0x02, 0x8e, 0x35, 0xce, 0x86, 0xd6, 0x64, 0x5a, 0x3d, 0x98, 0xcc, 0xd2, 0x36, 0x69, 103 | 0x82, 0x49, 0xad, 0xf3, 0x90, 0x4e, 0x04, 0xc6, 0x51, 0x27, 0xea, 0xfe, 0xe3, 0x64, 0x0d, 0xdd, 104 | 0x20, 0x1d, 0x90, 0x46, 0x51, 0xe2, 0xa4, 0xb2, 0x8b, 0x6b, 0x9d, 0xa8, 0xdb, 0xec, 0xc7, 0x2c, 105 | 0x98, 0xef, 0x68, 0xf3, 0xfd, 0xa2, 0x44, 0xbe, 0xaa, 0xd1, 0x05, 0xa1, 0xdf, 0xf3, 0x4c, 0x64, 106 | 0x65, 0xe8, 0xe3, 0x7a, 0xa7, 0xde, 0x6d, 0xf6, 0xef, 0xd9, 0x56, 0xde, 0x3f, 0x86, 0x64, 0xc3, 107 | 0x2f, 0xa5, 0x00, 0xfa, 0x3b, 0x83, 0x6e, 0xc9, 0x8f, 0xe4, 0x36, 0xde, 0x02, 0x72, 0xf2, 0x7b, 108 | 0x33, 0x3d, 0x24, 0xf5, 0x39, 0x2c, 0xab, 0x80, 0x0d, 0xbe, 0xda, 0xd2, 0x01, 0xf9, 0x5f, 0x8a, 109 | 0x7c, 0x01, 0x9f, 0xa9, 0xda, 0xe1, 0xd6, 0xfc, 0x8e, 0xdb, 0x48, 0xc8, 0xb9, 0x50, 0xc0, 0x43, 110 | 0xf7, 0x75, 0xed, 0x2a, 0xba, 0xcd, 0xc8, 0xb9, 0x75, 0x8a, 0xcd, 0x96, 0x05, 0xb8, 0xf0, 0x2a, 111 | 0x2c, 0x13, 0x53, 0xa7, 0xe5, 0x5a, 0x63, 0x33, 0xe0, 0xf3, 0xa5, 0xd2, 0x38, 0x5b, 0x4c, 0x99, 112 | 0xb4, 0x2f, 0xc9, 0x0f, 0x52, 0x12, 0x48, 0xbd, 0x40, 0xea, 0x29, 0xbb, 0xf5, 0x11, 0xa6, 0x7b, 113 | 0x55, 0xe5, 0xe2, 0x23, 0x00, 0x00, 0xff, 0xff, 0x71, 0x0c, 0xce, 0xd5, 0x30, 0x02, 0x00, 0x00, 114 | } 115 | --------------------------------------------------------------------------------