-
Notifications
You must be signed in to change notification settings - Fork 0
/
configtx.yaml
185 lines (160 loc) · 4.62 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
---
Organizations:
- &MainAuthorityOrderer
Name: MainAuthorityOrderer
ID: MainAuthorityOrdererMSP
MSPDir: crypto-config/ordererOrganizations/mainauthority.com/msp
Policies:
Readers:
Type: Signature
Rule: "OR('MainAuthorityOrdererMSP.member')"
Writers:
Type: Signature
Rule: "OR('MainAuthorityOrdererMSP.member')"
Admins:
Type: Signature
Rule: "OR('MainAuthorityOrdererMSP.admin')"
OrdererEndpoints:
- orderer.mainauthority.com:7050
- &MainAuthorityInstitution
Name: MainAuthorityInstitution
ID: MainAuthorityInstitutionMSP
MSPDir: crypto-config/peerOrganizations/institution.mainauthority.com/msp
Policies:
Readers:
Type: Signature
Rule: "OR('MainAuthorityInstitutionMSP.admin', 'MainAuthorityInstitutionMSP.peer', 'MainAuthorityInstitutionMSP.client')"
Writers:
Type: Signature
Rule: "OR('MainAuthorityInstitutionMSP.admin', 'MainAuthorityInstitutionMSP.client')"
Admins:
Type: Signature
Rule: "OR('MainAuthorityInstitutionMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('MainAuthorityInstitutionMSP.peer')"
AnchorPeers:
- Host: peer0.institution.mainauthority.com
Port: 8051
- &MainAuthorityApplicant
Name: MainAuthorityApplicant
ID: MainAuthorityApplicantMSP
MSPDir: crypto-config/peerOrganizations/applicant.mainauthority.com/msp
Policies:
Readers:
Type: Signature
Rule: "OR('MainAuthorityApplicantMSP.admin', 'MainAuthorityApplicantMSP.peer', 'MainAuthorityApplicantMSP.client')"
Writers:
Type: Signature
Rule: "OR('MainAuthorityApplicantMSP.admin', 'MainAuthorityApplicantMSP.client')"
Admins:
Type: Signature
Rule: "OR('MainAuthorityApplicantMSP.admin')"
Endorsement:
Type: Signature
Rule: "OR('MainAuthorityApplicantMSP.peer')"
AnchorPeers:
- Host: peer0.applicant.mainauthority.com
Port: 9051
Capabilities:
Channel: &ChannelCapabilities
V2_0: true
Orderer: &OrdererCapabilities
V2_0: true
Application: &ApplicationCapabilities
V2_0: true
Application: &ApplicationDefaults
Organizations:
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
Orderer: &OrdererDefaults
OrdererType: etcdraft
Addresses:
- orderer.mainauthority.com:7050
BatchTimeout: 2s
BatchSize:
MaxMessageCount: 10
AbsoluteMaxBytes: 99 MB
PreferredMaxBytes: 512 KB
Organizations:
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
BlockValidation:
Type: ImplicitMeta
Rule: "ANY Writers"
Channel: &ChannelDefaults
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
Capabilities:
<<: *ChannelCapabilities
Profiles:
MainChannel:
Consortium: MainAuthorityConsortium
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
- *MainAuthorityInstitution
- *MainAuthorityApplicant
Capabilities:
<<: *ApplicationCapabilities
SampleMultiNodeEtcdRaft:
<<: *ChannelDefaults
Capabilities:
<<: *ChannelCapabilities
Orderer:
<<: *OrdererDefaults
OrdererType: etcdraft
EtcdRaft:
Consenters:
- Host: orderer.mainauthority.com
Port: 7050
ClientTLSCert: crypto-config/ordererOrganizations/mainauthority.com/orderers/orderer.mainauthority.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/mainauthority.com/orderers/orderer.mainauthority.com/tls/server.crt
Addresses:
- orderer.mainauthority.com:7050
Organizations:
- *MainAuthorityOrderer
Capabilities:
<<: *OrdererCapabilities
Application:
<<: *ApplicationDefaults
Organizations:
- <<: *MainAuthorityOrderer
Consortiums:
MainAuthorityConsortium:
Organizations:
- *MainAuthorityInstitution
- *MainAuthorityApplicant