-
Notifications
You must be signed in to change notification settings - Fork 0
/
configtx.yaml
executable file
·317 lines (294 loc) · 10.3 KB
/
configtx.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
---
################################################################################
# Section: Organizations
################################################################################
Organizations:
- &servicer
Name: servicerMSP
ID: servicerMSP
MSPDir: fabric-ca/servicer/msp
Policies:
Readers:
Type: Signature
Rule: "OR('servicerMSP.admin','servicerMSP.peer', 'servicerMSP.client', 'servicerMSP.orderer')"
Writers:
Type: Signature
Rule: "OR('servicerMSP.admin', 'servicerMSP.client', 'servicerMSP.orderer')"
Admins:
Type: Signature
Rule: "OR('servicerMSP.admin')"
Orderers:
Type: Signature
Rule: "OR('servicerMSP.orderer')"
Endorsement:
Type: Signature
Rule: "OR('servicerMSP.peer')"
AnchorPeers:
- Host: servicer-peer
Port: 7051
OrdererEndpoints:
- servicer-orderer:7050
- &farmer
Name: farmerMSP
ID: farmerMSP
MSPDir: fabric-ca/farmer/msp
Policies:
Readers:
Type: Signature
Rule: "OR('farmerMSP.admin', 'farmerMSP.peer', 'farmerMSP.client', 'farmerMSP.orderer')"
Writers:
Type: Signature
Rule: "OR('farmerMSP.admin', 'farmerMSP.client', 'farmerMSP.orderer')"
Admins:
Type: Signature
Rule: "OR('farmerMSP.admin')"
Orderers:
Type: Signature
Rule: "OR('farmerMSP.orderer')"
Endorsement:
Type: Signature
Rule: "OR('farmerMSP.peer')"
AnchorPeers:
- Host: farmer-peer
Port: 7051
OrdererEndpoints:
- farmer-orderer:7050
# - &aggregator
# Name: aggregatorMSP
# ID: aggregatorMSP
# MSPDir: fabric-ca/aggregator/msp
# Policies:
# Readers:
# Type: Signature
# Rule: "OR('aggregatorMSP.admin', 'aggregatorMSP.peer', 'aggregatorMSP.client', 'aggregatorMSP.orderer')"
# Writers:
# Type: Signature
# Rule: "OR('aggregatorMSP.admin', 'aggregatorMSP.client', 'aggregatorMSP.orderer')"
# Admins:
# Type: Signature
# Rule: "OR('aggregatorMSP.admin')"
# Orderers:
# Type: Signature
# Rule: "OR('aggregatorMSP.orderer')"
# Endorsement:
# Type: Signature
# Rule: "OR('aggregatorMSP.peer')"
# AnchorPeers:
# - Host: aggregator-peer
# Port: 7051
# OrdererEndpoints:
# - aggregator-orderer:7050
- &spv
Name: spvMSP
ID: spvMSP
MSPDir: fabric-ca/spv/msp
Policies:
Readers:
Type: Signature
Rule: "OR('spvMSP.admin', 'spvMSP.peer', 'spvMSP.client', 'spvMSP.orderer')"
Writers:
Type: Signature
Rule: "OR('spvMSP.admin', 'spvMSP.client', 'spvMSP.orderer')"
Admins:
Type: Signature
Rule: "OR('spvMSP.admin')"
Orderers:
Type: Signature
Rule: "OR('spvMSP.orderer')"
Endorsement:
Type: Signature
Rule: "OR('spvMSP.peer')"
AnchorPeers:
- Host: spv-peer
Port: 7051
OrdererEndpoints:
- spv-orderer:7050
- &investor
Name: investorMSP
ID: investorMSP
MSPDir: fabric-ca/investor/msp
Policies:
Readers:
Type: Signature
Rule: "OR('investorMSP.admin', 'investorMSP.peer', 'investorMSP.client', 'investorMSP.orderer')"
Writers:
Type: Signature
Rule: "OR('investorMSP.admin', 'investorMSP.client', 'investorMSP.orderer')"
Admins:
Type: Signature
Rule: "OR('investorMSP.admin')"
Orderers:
Type: Signature
Rule: "OR('investorMSP.orderer')"
Endorsement:
Type: Signature
Rule: "OR('investorMSP.peer')"
AnchorPeers:
- Host: investor-peer-1
Port: 7051
# - Host: investor-peer-2
# Port: 7051
# - Host: investor-peer-3
# Port: 7051
# - Host: investor-peer-4
# Port: 7051
# - Host: investor-peer-5
# Port: 7051
# - Host: investor-peer-6
# Port: 7051
# - Host: investor-peer-7
# Port: 7051
OrdererEndpoints:
- investor-orderer:7050
################################################################################
# SECTION: Capabilities
################################################################################
Capabilities:
Channel: &ChannelCapabilities
V2_0: true
Orderer: &OrdererCapabilities
V2_0: true
Application: &ApplicationCapabilities
V2_0: true
################################################################################
# SECTION: Application
################################################################################
Application: &ApplicationDefaults
# Organizations is the list of orgs which are defined as participants on
# the application side of the network
Organizations:
# Policies defines the set of policies at this level of the config tree
# For Application policies, their canonical path is
# /Channel/Application/<PolicyName>
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
LifecycleEndorsement:
Type: ImplicitMeta
Rule: "MAJORITY Endorsement"
Endorsement:
Type: ImplicitMeta
Rule: "MAJORITY Endorsement"
Capabilities:
<<: *ApplicationCapabilities
################################################################################
# SECTION: Orderer
################################################################################
Orderer: &OrdererDefaults
# Orderer Type: The orderer consensus algorithm
OrdererType: etcdraft
EtcdRaft:
Consenters:
- Host: servicer-orderer
Port: 7050
ClientTLSCert: fabric-ca/servicer/orderers/servicer-orderer/tls/server.crt
ServerTLSCert: fabric-ca/servicer/orderers/servicer-orderer/tls/server.crt
- Host: farmer-orderer
Port: 7050
ClientTLSCert: fabric-ca/farmer/orderers/farmer-orderer/tls/server.crt
ServerTLSCert: fabric-ca/farmer/orderers/farmer-orderer/tls/server.crt
- Host: spv-orderer
Port: 7050
ClientTLSCert: fabric-ca/spv/orderers/spv-orderer/tls/server.crt
ServerTLSCert: fabric-ca/spv/orderers/spv-orderer/tls/server.crt
- Host: investor-orderer
Port: 7050
ClientTLSCert: fabric-ca/investor/orderers/investor-orderer/tls/server.crt
ServerTLSCert: fabric-ca/investor/orderers/investor-orderer/tls/server.crt
Addresses:
#- orderer.acme.com:7050
BatchTimeout: 2s
BatchSize:
MaxMessageCount: 500
AbsoluteMaxBytes: 10 MB
PreferredMaxBytes: 2 MB
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
# BlockValidation specifies what signatures must be included in the block
# from the orderer for the peer to validate it.
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Orderers"
################################################################################
#
# CHANNEL
#
# This section defines the values to encode into a config transaction or
# genesis block for channel related parameters.
#
################################################################################
Channel: &ChannelDefaults
# Policies defines the set of policies at this level of the config tree
# For Channel policies, their canonical path is
# /Channel/<PolicyName>
Policies:
# Who may invoke the 'Deliver' API
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
# Who may invoke the 'Broadcast' API
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
# By default, who may modify elements at this config level
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
# Capabilities describes the channel level capabilities, see the
# dedicated Capabilities section elsewhere in this file for a full
# description
Capabilities:
<<: *ChannelCapabilities
################################################################################
# Profile
################################################################################
Profiles:
FourOrgsOrdererGenesis:
<<: *ChannelDefaults
Orderer:
<<: *OrdererDefaults
Organizations:
#- *OrdererOrg
- *servicer
- *farmer
# - *aggregator
- *spv
- *investor
Capabilities:
<<: *OrdererCapabilities
Consortiums:
SampleConsortium:
Organizations:
- *servicer
- *farmer
# - *aggregator
- *spv
- *investor
FourOrgsChannel:
Consortium: SampleConsortium
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
- *servicer
- *farmer
# - *aggregator
- *spv
- *investor
Capabilities:
<<: *ApplicationCapabilities