-
Notifications
You must be signed in to change notification settings - Fork 0
/
configtx.yaml
507 lines (427 loc) · 16.2 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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
################################################################################
#
# Section: Organizations
#
# - This section defines the different organizational identities which will
# be referenced later in the configuration.
#
################################################################################
Organizations:
- &OrdererOrg
Name: OrdererMSP
ID: OrdererMSP
MSPDir: artifacts/crypto-config/ordererOrganizations/orderer-org/msp
Policies:
Readers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Writers:
Type: Signature
Rule: "OR('OrdererMSP.member')"
Admins:
Type: Signature
Rule: "OR('OrdererMSP.admin')"
OrdererEndpoints:
- orderer0:7050
- &AppraiserOrg
Name: AppraiserMSP
ID: AppraiserMSP
MSPDir: artifacts/crypto-config/peerOrganizations/appraiser-org/msp
Policies:
Readers:
Type: Signature
Rule: "OR('AppraiserMSP.admin', 'AppraiserMSP.peer', 'AppraiserMSP.client')"
Writers:
Type: Signature
Rule: "OR('AppraiserMSP.admin', 'AppraiserMSP.client')"
Admins:
Type: Signature
Rule: "OR('AppraiserMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('AppraiserMSP.peer')"
AnchorPeers:
- Host: appraiser-peer
Port: 7051
- &AuditOrg
Name: AuditMSP
ID: AuditMSP
MSPDir: artifacts/crypto-config/peerOrganizations/audit-org/msp
Policies:
Readers:
Type: Signature
Rule: "OR('AuditMSP.admin', 'AuditMSP.peer', 'AuditMSP.client')"
Writers:
Type: Signature
Rule: "OR('AuditMSP.admin', 'AuditMSP.client')"
Admins:
Type: Signature
Rule: "OR('AuditMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('AuditMSP.peer')"
AnchorPeers:
- Host: audit-peer
Port: 8051
- &BankOrg
Name: BankMSP
ID: BankMSP
MSPDir: artifacts/crypto-config/peerOrganizations/bank-org/msp
Policies:
Readers:
Type: Signature
Rule: "OR('BankMSP.admin', 'BankMSP.peer', 'BankMSP.client')"
Writers:
Type: Signature
Rule: "OR('BankMSP.admin', 'BankMSP.client')"
Admins:
Type: Signature
Rule: "OR('BankMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('BankMSP.peer')"
AnchorPeers:
- Host: bank-peer
Port: 9051
- &FicoOrg
Name: FicoMSP
ID: FicoMSP
MSPDir: artifacts/crypto-config/peerOrganizations/fico-org/msp
Policies:
Readers:
Type: Signature
Rule: "OR('FicoMSP.admin', 'FicoMSP.peer', 'FicoMSP.client')"
Writers:
Type: Signature
Rule: "OR('FicoMSP.admin', 'FicoMSP.client')"
Admins:
Type: Signature
Rule: "OR('FicoMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('FicoMSP.peer')"
AnchorPeers:
- Host: fico-peer
Port: 10051
- &InsuranceOrg
Name: InsuranceMSP
ID: InsuranceMSP
MSPDir: artifacts/crypto-config/peerOrganizations/insurance-org/msp
Policies:
Readers:
Type: Signature
Rule: "OR('InsuranceMSP.admin', 'InsuranceMSP.peer', 'InsuranceMSP.client')"
Writers:
Type: Signature
Rule: "OR('InsuranceMSP.admin', 'InsuranceMSP.client')"
Admins:
Type: Signature
Rule: "OR('InsuranceMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('InsuranceMSP.peer')"
AnchorPeers:
- Host: insurance-peer
Port: 11051
- &MunicipalOrg
Name: MunicipalMSP
ID: MunicipalMSP
MSPDir: artifacts/crypto-config/peerOrganizations/municipal-org/msp
Policies:
Readers:
Type: Signature
Rule: "OR('MunicipalMSP.admin', 'MunicipalMSP.peer', 'MunicipalMSP.client')"
Writers:
Type: Signature
Rule: "OR('MunicipalMSP.admin', 'MunicipalMSP.client')"
Admins:
Type: Signature
Rule: "OR('MunicipalMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('MunicipalMSP.peer')"
AnchorPeers:
- Host: municipal-peer
Port: 12051
- &RegistryOrg
Name: RegistryMSP
ID: RegistryMSP
MSPDir: artifacts/crypto-config/peerOrganizations/registry-org/msp
Policies:
Readers:
Type: Signature
Rule: "OR('RegistryMSP.admin', 'RegistryMSP.peer', 'RegistryMSP.client')"
Writers:
Type: Signature
Rule: "OR('RegistryMSP.admin', 'RegistryMSP.client')"
Admins:
Type: Signature
Rule: "OR('RegistryMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('RegistryMSP.peer')"
AnchorPeers:
- Host: registry-peer
Port: 13051
- &RevenueOrg
Name: RevenueMSP
ID: RevenueMSP
MSPDir: artifacts/crypto-config/peerOrganizations/revenue-org/msp
Policies:
Readers:
Type: Signature
Rule: "OR('RevenueMSP.admin', 'RevenueMSP.peer', 'RevenueMSP.client')"
Writers:
Type: Signature
Rule: "OR('RevenueMSP.admin', 'RevenueMSP.client')"
Admins:
Type: Signature
Rule: "OR('RevenueMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('RevenueMSP.peer')"
AnchorPeers:
- Host: revenue-peer
Port: 14051
################################################################################
#
# SECTION: Capabilities
#
# - This section defines the capabilities of fabric network. This is a new
# concept as of v1.1.0 and should not be utilized in mixed networks with
# v1.0.x peers and orderers. Capabilities define features which must be
# present in a fabric binary for that binary to safely participate in the
# fabric network. For instance, if a new MSP type is added, newer binaries
# might recognize and validate the signatures from this type, while older
# binaries without this support would be unable to validate those
# transactions. This could lead to different versions of the fabric binaries
# having different world states. Instead, defining a capability for a channel
# informs those binaries without this capability that they must cease
# processing transactions until they have been upgraded. For v1.0.x if any
# capabilities are defined (including a map with all capabilities turned off)
# then the v1.0.x peer will deliberately crash.
#
################################################################################
Capabilities:
# Channel capabilities apply to both the orderers and the peers and must be
# supported by both.
# Set the value of the capability to true to require it.
Channel: &ChannelCapabilities
# V2.0 for Channel is a catchall flag for behavior which has been
# determined to be desired for all orderers and peers running at the v2.0.0
# level, but which would be incompatible with orderers and peers from
# prior releases.
# Prior to enabling V2.0 channel capabilities, ensure that all
# orderers and peers on a channel are at v2.0.0 or later.
V2_0: true
# Orderer capabilities apply only to the orderers, and may be safely
# used with prior release peers.
# Set the value of the capability to true to require it.
Orderer: &OrdererCapabilities
# V1.1 for Orderer is a catchall flag for behavior which has been
# determined to be desired for all orderers running at the v1.1.x
# level, but which would be incompatible with orderers from prior releases.
# Prior to enabling V2.0 orderer capabilities, ensure that all
# orderers on a channel are at v2.0.0 or later.
V2_0: true
# Application capabilities apply only to the peer network, and may be safely
# used with prior release orderers.
# Set the value of the capability to true to require it.
Application: &ApplicationCapabilities
# V2.0 for Application enables the new non-backwards compatible
# features and fixes of fabric v2.0.
# Prior to enabling V2.0 orderer capabilities, ensure that all
# orderers on a channel are at v2.0.0 or later.
V2_0: true
################################################################################
#
# SECTION: Application
#
# - This section defines the values to encode into a config transaction or
# genesis block for application related parameters
#
################################################################################
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
#
# - This section defines the values to encode into a config transaction or
# genesis block for orderer related parameters
#
################################################################################
Orderer: &OrdererDefaults
# Orderer Type: The orderer implementation to start
OrdererType: solo
# Addresses used to be the list of orderer addresses that clients and peers
# could connect to. However, this does not allow clients to associate orderer
# addresses and orderer organizations which can be useful for things such
# as TLS validation. The preferred way to specify orderer addresses is now
# to include the OrdererEndpoints item in your org definition
Addresses:
- orderer0:7050
# EtcdRaft:
# Consenters:
# - Host: orderer0
# Port: 7050
# ClientTLSCert: artifacts/crypto-config/ordererOrganizations/orderer-org/orderers/orderer0/tls/server.crt
# ServerTLSCert: artifacts/crypto-config/ordererOrganizations/orderer-org/orderers/orderer0/tls/server.crt
# Batch Timeout: The amount of time to wait before creating a batch
BatchTimeout: 2s
# Batch Size: Controls the number of messages batched into a block
BatchSize:
# Max Message Count: The maximum number of messages to permit in a batch
MaxMessageCount: 10
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
# the serialized messages in a batch.
AbsoluteMaxBytes: 99 MB
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
# the serialized messages in a batch. A message larger than the preferred
# max bytes will result in a batch larger than preferred max bytes.
PreferredMaxBytes: 512 KB
# Organizations is the list of orgs which are defined as participants on
# the orderer side of the network
Organizations:
# Policies defines the set of policies at this level of the config tree
# For Orderer policies, their canonical path is
# /Channel/Orderer/<PolicyName>
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 Writers"
################################################################################
#
# 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
#
# - Different configuration profiles may be encoded here to be specified
# as parameters to the configtxgen tool
#
################################################################################
Profiles:
LANDRECOrdererGenesis:
<<: *ChannelDefaults
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Capabilities:
<<: *OrdererCapabilities
Consortiums:
LANDREC:
Organizations:
- *BankOrg
- *InsuranceOrg
- *RegistryOrg
- *RevenueOrg
- *MunicipalOrg
- *AppraiserOrg
- *AuditOrg
- *FicoOrg
RecordsChannel:
Consortium: LANDREC
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
- *BankOrg
- *InsuranceOrg
- *RegistryOrg
- *MunicipalOrg
- *RevenueOrg
- *AppraiserOrg
- *AuditOrg
Capabilities:
<<: *ApplicationCapabilities
LendingChannel:
Consortium: LANDREC
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
- *BankOrg
- *InsuranceOrg
- *AuditOrg
- *FicoOrg
- *AppraiserOrg
- *RevenueOrg
- *RegistryOrg
Capabilities:
<<: *ApplicationCapabilities
RegistrationChannel:
Consortium: LANDREC
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
- *BankOrg
- *AuditOrg
- *RevenueOrg
- *MunicipalOrg
- *RegistryOrg
Capabilities:
<<: *ApplicationCapabilities