15
15
Profiles :
16
16
17
17
TwoOrgsOrdererGenesis :
18
- Capabilities :
19
- << : *ChannelCapabilities
18
+ << : *ChannelDefaults
20
19
Orderer :
21
20
<< : *OrdererDefaults
22
21
Organizations :
23
22
- *OrdererOrg
24
- Capabilities :
25
- << : *OrdererCapabilities
26
23
Consortiums :
27
24
SampleConsortium :
28
25
Organizations :
@@ -35,8 +32,6 @@ Profiles:
35
32
Organizations :
36
33
- *Org1
37
34
- *Org2
38
- Capabilities :
39
- << : *ApplicationCapabilities
40
35
41
36
# ###############################################################################
42
37
#
@@ -61,6 +56,20 @@ Organizations:
61
56
# MSPDir is the filesystem path which contains the MSP configuration
62
57
MSPDir : crypto-config/ordererOrganizations/example.com/msp
63
58
59
+ # Policies defines the set of policies at this level of the config tree
60
+ # For organization policies, their canonical path is usually
61
+ # /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
62
+ Policies :
63
+ Readers :
64
+ Type : Signature
65
+ Rule : " OR('OrdererMSP.member')"
66
+ Writers :
67
+ Type : Signature
68
+ Rule : " OR('OrdererMSP.member')"
69
+ Admins :
70
+ Type : Signature
71
+ Rule : " OR('OrdererMSP.admin')"
72
+
64
73
- &Org1
65
74
# DefaultOrg defines the organization which is used in the sampleconfig
66
75
# of the fabric.git development environment
@@ -71,6 +80,20 @@ Organizations:
71
80
72
81
MSPDir : crypto-config/peerOrganizations/org1.example.com/msp
73
82
83
+ # Policies defines the set of policies at this level of the config tree
84
+ # For organization policies, their canonical path is usually
85
+ # /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
86
+ Policies :
87
+ Readers :
88
+ Type : Signature
89
+ Rule : " OR('Org1MSP.admin', 'Org1MSP.peer')"
90
+ Writers :
91
+ Type : Signature
92
+ Rule : " OR('Org1MSP.admin', 'Org1MSP.client')"
93
+ Admins :
94
+ Type : Signature
95
+ Rule : " OR('Org1MSP.admin')"
96
+
74
97
AnchorPeers :
75
98
# AnchorPeers defines the location of peers which can be used
76
99
# for cross org gossip communication. Note, this value is only
@@ -88,13 +111,60 @@ Organizations:
88
111
89
112
MSPDir : crypto-config/peerOrganizations/org2.example.com/msp
90
113
114
+ # Policies defines the set of policies at this level of the config tree
115
+ # For organization policies, their canonical path is usually
116
+ # /Channel/<Application|Orderer>/<OrgName>/<PolicyName>
117
+ Policies :
118
+ Readers :
119
+ Type : Signature
120
+ Rule : " OR('Org2MSP.admin', 'Org2MSP.peer')"
121
+ Writers :
122
+ Type : Signature
123
+ Rule : " OR('Org2MSP.admin', 'Org2MSP.client')"
124
+ Admins :
125
+ Type : Signature
126
+ Rule : " OR('Org2MSP.admin')"
127
+
91
128
AnchorPeers :
92
129
# AnchorPeers defines the location of peers which can be used
93
130
# for cross org gossip communication. Note, this value is only
94
131
# encoded in the genesis block in the Application section context
95
132
- Host : peer0.org2.example.com
96
133
Port : 7051
97
134
135
+ # ###############################################################################
136
+ #
137
+ # CHANNEL
138
+ #
139
+ # This section defines the values to encode into a config transaction or
140
+ # genesis block for channel related parameters.
141
+ #
142
+ # ###############################################################################
143
+ Channel : &ChannelDefaults
144
+ # Policies defines the set of policies at this level of the config tree
145
+ # For Channel policies, their canonical path is
146
+ # /Channel/<PolicyName>
147
+ Policies :
148
+ # Who may invoke the 'Deliver' API
149
+ Readers :
150
+ Type : ImplicitMeta
151
+ Rule : " ANY Readers"
152
+ # Who may invoke the 'Broadcast' API
153
+ Writers :
154
+ Type : ImplicitMeta
155
+ Rule : " ANY Writers"
156
+ # By default, who may modify elements at this config level
157
+ Admins :
158
+ Type : ImplicitMeta
159
+ Rule : " MAJORITY Admins"
160
+
161
+
162
+ # Capabilities describes the channel level capabilities, see the
163
+ # dedicated Capabilities section elsewhere in this file for a full
164
+ # description
165
+ Capabilities :
166
+ << : *ChannelCapabilities
167
+
98
168
# ###############################################################################
99
169
#
100
170
# SECTION: Orderer
@@ -144,6 +214,31 @@ Orderer: &OrdererDefaults
144
214
# the orderer side of the network
145
215
Organizations :
146
216
217
+ # Policies defines the set of policies at this level of the config tree
218
+ # For Orderer policies, their canonical path is
219
+ # /Channel/Orderer/<PolicyName>
220
+ Policies :
221
+ Readers :
222
+ Type : ImplicitMeta
223
+ Rule : " ANY Readers"
224
+ Writers :
225
+ Type : ImplicitMeta
226
+ Rule : " ANY Writers"
227
+ Admins :
228
+ Type : ImplicitMeta
229
+ Rule : " MAJORITY Admins"
230
+ # BlockValidation specifies what signatures must be included in the block
231
+ # from the orderer for the peer to validate it.
232
+ BlockValidation :
233
+ Type : ImplicitMeta
234
+ Rule : " ANY Writers"
235
+
236
+ # Capabilities describes the orderer level capabilities, see the
237
+ # dedicated Capabilities section elsewhere in this file for a full
238
+ # description
239
+ Capabilities :
240
+ << : *OrdererCapabilities
241
+
147
242
# ###############################################################################
148
243
#
149
244
# SECTION: Application
@@ -157,6 +252,27 @@ Application: &ApplicationDefaults
157
252
# Organizations is the list of orgs which are defined as participants on
158
253
# the application side of the network
159
254
Organizations :
255
+
256
+ # Policies defines the set of policies at this level of the config tree
257
+ # For Application policies, their canonical path is
258
+ # /Channel/Application/<PolicyName>
259
+ Policies :
260
+ Readers :
261
+ Type : ImplicitMeta
262
+ Rule : " ANY Readers"
263
+ Writers :
264
+ Type : ImplicitMeta
265
+ Rule : " ANY Writers"
266
+ Admins :
267
+ Type : ImplicitMeta
268
+ Rule : " MAJORITY Admins"
269
+
270
+ # Capabilities describes the application level capabilities, see the
271
+ # dedicated Capabilities section elsewhere in this file for a full
272
+ # description
273
+ Capabilities :
274
+ << : *ApplicationCapabilities
275
+
160
276
# ###############################################################################
161
277
#
162
278
# SECTION: Capabilities
0 commit comments