File tree 4 files changed +33
-0
lines changed
4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,15 @@ Profiles:
25
25
Organizations :
26
26
- *Org1
27
27
- *Org2
28
+ - *Org3
28
29
TwoOrgsChannel :
29
30
Consortium : SampleConsortium
30
31
Application :
31
32
<< : *ApplicationDefaults
32
33
Organizations :
33
34
- *Org1
34
35
- *Org2
36
+ - *Org3
35
37
36
38
# ###############################################################################
37
39
#
@@ -132,6 +134,25 @@ Organizations:
132
134
- Host : peer0.org2.example.com
133
135
Port : 7051
134
136
137
+ - &Org3
138
+ # Name of the organization
139
+ Name : Org3MSP
140
+
141
+ # ID to load the MSP definition as
142
+ ID : Org3MSP
143
+
144
+ # Type of MSP - this org uses idemix for its MSP implementation
145
+ MSPType : idemix
146
+
147
+ MSPDir : crypto-config/idemix
148
+
149
+ AnchorPeers :
150
+ # AnchorPeers defines the location of peers which can be used
151
+ # for cross org gossip communication. Note, this value is only
152
+ # encoded in the genesis block in the Application section context
153
+ - Host : peer0.org3.example.com
154
+ Port : 7051
155
+
135
156
# ###############################################################################
136
157
#
137
158
# CHANNEL
Original file line number Diff line number Diff line change @@ -142,6 +142,7 @@ services:
142
142
- CORE_PEER_ID=cli
143
143
- CORE_PEER_ADDRESS=peer0.org1.example.com:7051
144
144
- CORE_PEER_LOCALMSPID=Org1MSP
145
+ - CORE_PEER_LOCALMSPTYPE=bccsp
145
146
- CORE_PEER_TLS_ENABLED=true
146
147
- CORE_PEER_TLS_CERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.crt
147
148
- CORE_PEER_TLS_KEY_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/server.key
Original file line number Diff line number Diff line change @@ -127,5 +127,6 @@ function generateChannelArtifacts() {
127
127
}
128
128
129
129
generateCerts
130
+ generateIdemixMaterial
130
131
replacePrivateKey
131
132
generateChannelArtifacts
Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ setGlobals () {
44
44
else
45
45
CORE_PEER_ADDRESS=peer1.org1.example.com:7051
46
46
fi
47
+ elif [ $ORG -eq 3 ] ; then
48
+ CORE_PEER_LOCALMSPID=" Org3MSP"
49
+ CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt
50
+ CORE_PEER_ADDRESS=peer0.org1.example.com:7051
51
+ CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/idemix
52
+ CORE_PEER_LOCALMSPTYPE=idemix
47
53
else
48
54
CORE_PEER_LOCALMSPID=" Org2MSP"
49
55
CORE_PEER_TLS_ROOTCERT_FILE=$PEER0_ORG2_CA
@@ -304,6 +310,10 @@ installChaincode 1 2
304
310
echo " Querying chaincode on peer1.org2..."
305
311
chaincodeQuery 1 2 90
306
312
313
+ # Query on chaincode on Peer0/Org1 with idemix MSP type, check if the result is 90
314
+ echo " Querying chaincode on org1/peer0..."
315
+ chaincodeQuery 1 3 90
316
+
307
317
echo
308
318
echo " ===================== All GOOD, End-2-End execution completed ===================== "
309
319
echo
You can’t perform that action at this time.
0 commit comments