Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit b164375

Browse files
committed
[FAB-4632] Upgrade to support 1.0.0 RC
Change-Id: I29d5de6cd59f8aefc49c402062c62096ee35d275 Signed-off-by: Troy Ronda <troy@troyronda.com>
1 parent 965d4fb commit b164375

File tree

46 files changed

+1266
-785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1266
-785
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ repository.
3838
### Compatibility
3939

4040
This client SDK was last tested and found to be compatible with the following Hyperledger Fabric commit levels:
41-
- fabric: v1.0.0-beta
42-
- fabric-ca: v1.0.0-beta
41+
- fabric: v1.0.0-beta, v1.0.0-rc1
42+
- fabric-ca: v1.0.0-beta, v1.0.0-rc1
4343

4444
### Running the test suite
4545

@@ -135,14 +135,14 @@ Alternatively you can build and run Fabric on your own box using the following c
135135
cd $GOPATH/src/github.com/hyperledger/
136136
git clone https://github.com/hyperledger/fabric
137137
cd $GOPATH/src/github.com/hyperledger/fabric/
138-
git checkout v1.0.0-beta
138+
git checkout v1.0.0-rc1
139139
make docker
140140
141141
# Build fabric-ca:
142142
cd $GOPATH/src/github.com/hyperledger/
143143
git clone https://github.com/hyperledger/fabric-ca
144144
cd $GOPATH/src/github.com/hyperledger/fabric-ca/
145-
git checkout v1.0.0-beta
145+
git checkout v1.0.0-rc1
146146
make docker
147147
148148
# Start fabric - latest-env.sh overrides the default docker tags in .env
@@ -151,7 +151,7 @@ cd $GOPATH/src/github.com/hyperledger/fabric-sdk-go/test/fixtures/
151151
```
152152

153153
## License
154-
Hyperledger Fabric SDK Go software is licensed under the [Apache License Version 2.0](LICENSE) license.
154+
Hyperledger Fabric SDK Go software is licensed under the [Apache License Version 2.0](LICENSE).
155155

156156
---
157157
This document is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.

test/fixtures/.env

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
# Default architecture
1212
ARCH=x86_64
1313

14-
FABRIC_CA_FIXTURE_TAG=1.0.0-beta
15-
FABRIC_ORDERER_FIXTURE_TAG=1.0.0-beta
16-
FABRIC_PEER_FIXTURE_TAG=1.0.0-beta
17-
FABRIC_COUCHDB_FIXTURE_TAG=1.0.0-beta
18-
FABRIC_BUILDER_FIXTURE_TAG=1.0.0-beta
14+
FABRIC_CA_FIXTURE_TAG=1.0.0-rc1
15+
FABRIC_ORDERER_FIXTURE_TAG=1.0.0-rc1
16+
FABRIC_PEER_FIXTURE_TAG=1.0.0-rc1
17+
FABRIC_COUCHDB_FIXTURE_TAG=1.0.0-rc1
18+
FABRIC_BUILDER_FIXTURE_TAG=1.0.0-rc1
1919

2020
FABRIC_CA_FIXTURE_IMAGE=hyperledger/fabric-ca
2121
FABRIC_ORDERER_FIXTURE_IMAGE=hyperledger/fabric-orderer

test/fixtures/channel/configtx.yaml

Lines changed: 18 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright IBM Corp. All Rights Reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
16
---
27
################################################################################
38
#
@@ -17,15 +22,15 @@ Profiles:
1722
Consortiums:
1823
SampleConsortium:
1924
Organizations:
20-
- *Org0
2125
- *Org1
26+
- *Org2
2227
TwoOrgsChannel:
2328
Consortium: SampleConsortium
2429
Application:
2530
<<: *ApplicationDefaults
2631
Organizations:
27-
- *Org0
2832
- *Org1
33+
- *Org2
2934

3035
################################################################################
3136
#
@@ -47,106 +52,35 @@ Organizations:
4752
# ID to load the MSP definition as
4853
ID: OrdererMSP
4954

50-
#########################################################################
51-
# FIXME: this path needs to be fixed to point to the actual location of #
52-
# the project 'fabric-sdk-go' in the file system #
53-
#########################################################################
5455
# MSPDir is the filesystem path which contains the MSP configuration
55-
MSPDir: /fabric-sdk-go/test/fixtures/channel/crypto-config/ordererOrganizations/example.com/msp/
56-
57-
# AdminPrincipal dictates the type of principal used for an organization's Admins policy
58-
# Today, only the values of Role.ADMIN ad Role.MEMBER are accepted, which indicates a principal
59-
# of role type ADMIN and role type MEMBER respectively
60-
AdminPrincipal: Role.MEMBER
61-
62-
# BCCSP (Blockchain crypto provider): Select which crypto implementation or
63-
# library to use
64-
BCCSP:
65-
Default: SW
66-
SW:
67-
Hash: SHA2
68-
Security: 256
69-
# Location of Key Store. If this is unset, a location will
70-
# be chosen using 'MSPDir'/keystore
71-
FileKeyStore:
72-
KeyStore:
73-
74-
- &Org0
56+
MSPDir: crypto-config/ordererOrganizations/example.com/msp
57+
58+
- &Org1
7559
# DefaultOrg defines the organization which is used in the sampleconfig
7660
# of the fabric.git development environment
7761
Name: Org1MSP
7862

7963
# ID to load the MSP definition as
8064
ID: Org1MSP
8165

82-
#########################################################################
83-
# FIXME: this path needs to be fixed to point to the actual location of #
84-
# the project 'fabric-sdk-go' in the file system #
85-
#########################################################################
86-
# MSPDir is the filesystem path which contains the MSP configuration
87-
MSPDir: /fabric-sdk-go/test/fixtures/channel/crypto-config/peerOrganizations/org1.example.com/msp/
88-
89-
# AdminPrincipal dictates the type of principal used for an
90-
# organization's Admins policy. Today, only the values of Role.ADMIN and
91-
# Role.MEMBER are accepted, which indicates a principal of role type
92-
# ADMIN and role type MEMBER respectively.
93-
AdminPrincipal: Role.ADMIN
94-
95-
# BCCSP (Blockchain crypto provider): Select which crypto implementation or
96-
# library to use
97-
BCCSP:
98-
Default: SW
99-
SW:
100-
# TODO: The default Hash and Security level needs refactoring to
101-
# be fully configurable. Changing these defaults requires
102-
# coordination SHA2 is hardcoded in several places, not only
103-
# BCCSP.
104-
Hash: SHA2
105-
Security: 256
106-
# Location of key store. If this is unset, a location will be
107-
# chosen using: 'MSPDir'/keystore
108-
FileKeyStore:
109-
KeyStore:
66+
MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
11067

11168
AnchorPeers:
112-
# AnchorPeers defines the location of peers which can be used for
113-
# cross-org gossip communication. Note, this value is only encoded
114-
# in the genesis block in the Application section context.
69+
# AnchorPeers defines the location of peers which can be used
70+
# for cross org gossip communication. Note, this value is only
71+
# encoded in the genesis block in the Application section context
11572
- Host: peer0.org1.example.com
11673
Port: 7051
11774

118-
- &Org1
75+
- &Org2
11976
# DefaultOrg defines the organization which is used in the sampleconfig
12077
# of the fabric.git development environment
12178
Name: Org2MSP
12279

12380
# ID to load the MSP definition as
12481
ID: Org2MSP
12582

126-
#########################################################################
127-
# FIXME: this path needs to be fixed to point to the actual location of #
128-
# the project 'fabric-sdk-go' in the file system #
129-
#########################################################################
130-
# MSPDir is the filesystem path which contains the MSP configuration
131-
MSPDir: /fabric-sdk-go/test/fixtures/channel/crypto-config/peerOrganizations/org2.example.com/msp/
132-
133-
# AdminPrincipal dictates the type of principal used for an
134-
# organization's Admins policy. Today, only the values of Role.ADMIN and
135-
# Role.MEMBER are accepted, which indicates a principal of role type
136-
# ADMIN and role type MEMBER respectively.
137-
AdminPrincipal: Role.ADMIN
138-
139-
# BCCSP (Blockchain crypto provider): Select which crypto implementation or
140-
# library to use
141-
BCCSP:
142-
Default: SW
143-
SW:
144-
Hash: SHA2
145-
Security: 256
146-
# Location of Key Store. If this is unset, a location will
147-
# be chosen using 'MSPDir'/keystore
148-
FileKeyStore:
149-
KeyStore:
83+
MSPDir: crypto-config/peerOrganizations/org2.example.com/msp
15084

15185
AnchorPeers:
15286
# AnchorPeers defines the location of peers which can be used
@@ -182,20 +116,14 @@ Orderer: &OrdererDefaults
182116
MaxMessageCount: 10
183117

184118
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
185-
# the serialized messages in a batch. If the "kafka" OrdererType is
186-
# selected, set 'message.max.bytes' and 'replica.fetch.max.bytes' on the
187-
# Kafka brokers to a value that is equal to or larger than this one.
188-
AbsoluteMaxBytes: 99 MB
119+
# the serialized messages in a batch.
120+
AbsoluteMaxBytes: 98 MB
189121

190122
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
191123
# the serialized messages in a batch. A message larger than the preferred
192124
# max bytes will result in a batch larger than preferred max bytes.
193125
PreferredMaxBytes: 512 KB
194126

195-
# Max Channels is the maximum number of channels to allow on the ordering
196-
# network. When set to 0, this implies no maximum number of channels.
197-
MaxChannels: 0
198-
199127
Kafka:
200128
# Brokers: A list of Kafka brokers to which the orderer connects
201129
# NOTE: Use IP:port notation
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIICNDCCAdqgAwIBAgIRAIBOtq8vZiC0+uLSi2MIS4swCgYIKoZIzj0EAwIwZjEL
3+
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
4+
cmFuY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRQwEgYDVQQDEwtleGFtcGxl
5+
LmNvbTAeFw0xNzA0MjIxMjAyNTZaFw0yNzA0MjAxMjAyNTZaMGYxCzAJBgNVBAYT
6+
AlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2Nv
7+
MRQwEgYDVQQKEwtleGFtcGxlLmNvbTEUMBIGA1UEAxMLZXhhbXBsZS5jb20wWTAT
8+
BgcqhkjOPQIBBggqhkjOPQMBBwNCAARD2rvgyAmhn8hpu82kAjX3QUg2iqCUPEe1
9+
Q5CzD5MVv/dK5wrRgkcoMhJLe4HPxYbjV3rodm5Pwi5m3zMGkqNQo2kwZzAOBgNV
10+
HQ8BAf8EBAMCAaYwGQYDVR0lBBIwEAYEVR0lAAYIKwYBBQUHAwEwDwYDVR0TAQH/
11+
BAUwAwEB/zApBgNVHQ4EIgQg6q3lkIfG2X/PNQ6U83rZ8saSu2bxghSM5YlA3nCt
12+
6c4wCgYIKoZIzj0EAwIDSAAwRQIhAL5Lgy7jZ2W74L6i0B23a3JD0W8TSYlTcqXb
13+
RMSXlLIoAiB2glBl0wM/ITn5+tnHOnq2wrIGuYIiNbLK5oq2zf+gtA==
14+
-----END CERTIFICATE-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBcjCCARigAwIBAwICA+gwCgYIKoZIzj0EAwIwFjEUMBIGA1UEAwwLb3JkZXJl
3+
ck9yZzAwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjAWMRQwEgYDVQQD
4+
DAtvcmRlcmVyT3JnMDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABK8Sv0EA9h06
5+
fmBkUCO+D/b/2INZ2huy+W/HCxSF22c7WGoJbRzQcWtQmW1KqZowUk86RcxVfFqv
6+
jEMFVXzV38SjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFCVakuvq
7+
xEcK8pYMf/Hw8hsexRMTMB8GA1UdIwQYMBaAFCVakuvqxEcK8pYMf/Hw8hsexRMT
8+
MAoGCCqGSM49BAMCA0gAMEUCIQCmXgDSRTyxpSk+PXg0FNlYZ4ijTVwKgLkYVhod
9+
zZPfngIgO4y0p3Fs/gNsJYrroKaaVDe955KrPp/O55jYDKAD/oY=
10+
-----END CERTIFICATE-----
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIICSDCCAe6gAwIBAgIRAPnKpS42wlgtHsddm6q+kYcwCgYIKoZIzj0EAwIwcDEL
3+
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
4+
cmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhhbXBsZS5jb20xGTAXBgNVBAMTEG9y
5+
ZzEuZXhhbXBsZS5jb20wHhcNMTcwNDIyMTIwMjU2WhcNMjcwNDIwMTIwMjU2WjBw
6+
MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2Fu
7+
IEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMS5leGFtcGxlLmNvbTEZMBcGA1UEAxMQ
8+
b3JnMS5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLi5341r
9+
mriGFHCmVTLdgPGpDFRgwgmHSuLayMsGP0yEmsXh3hKAy24f1mjx/t8WT9G2sAdw
10+
ONsPsfKMSCKpaRqjaTBnMA4GA1UdDwEB/wQEAwIBpjAZBgNVHSUEEjAQBgRVHSUA
11+
BggrBgEFBQcDATAPBgNVHRMBAf8EBTADAQH/MCkGA1UdDgQiBCCiLa81ayqrV5Lq
12+
U+NfZvzO8dfxqis6K5Lb+/lqRI6iajAKBggqhkjOPQQDAgNIADBFAiEAr8LYCY2b
13+
q5kNqOUxgHwBa2KTi/zJBR9L3IsTRDjJo8ECICf1xiDgKqZKrAMh0OCebskYwf53
14+
dooG04HBoqBLvB8Q
15+
-----END CERTIFICATE-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBbDCCARKgAwIBAwICA+gwCgYIKoZIzj0EAwIwEzERMA8GA1UEAwwIcGVlck9y
3+
ZzAwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjATMREwDwYDVQQDDAhw
4+
ZWVyT3JnMDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKJfDc/CcaiHRipTG2AB
5+
K5fA0LO9SOlbtC9bZcjLo/xsL157p+3QB3UVF3gt7nkwgMs/ul3FhSEFTk2EVNlF
6+
1QCjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFFQzuQR1RZP/Qn/B
7+
NDtGSa8n4eN/MB8GA1UdIwQYMBaAFFQzuQR1RZP/Qn/BNDtGSa8n4eN/MAoGCCqG
8+
SM49BAMCA0gAMEUCIAuG+/Fy3x9JXAD1/rFsu3ZpCKbXiXZLGF7P6Gma8is5AiEA
9+
pSQpRcdukxe4zvcfRmNBjMbNLWCoWlHSQA2jD678QGE=
10+
-----END CERTIFICATE-----
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIICRzCCAe6gAwIBAgIRAO33HJTheTwvBgWroB6JK40wCgYIKoZIzj0EAwIwcDEL
3+
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
4+
cmFuY2lzY28xGTAXBgNVBAoTEG9yZzIuZXhhbXBsZS5jb20xGTAXBgNVBAMTEG9y
5+
ZzIuZXhhbXBsZS5jb20wHhcNMTcwNDIyMTIwMjU2WhcNMjcwNDIwMTIwMjU2WjBw
6+
MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2Fu
7+
IEZyYW5jaXNjbzEZMBcGA1UEChMQb3JnMi5leGFtcGxlLmNvbTEZMBcGA1UEAxMQ
8+
b3JnMi5leGFtcGxlLmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABDoYTXB0
9+
Mj9j+iSUyM1s7bZZVbDmP7tTej0qWNpS1K7PRsQO2hTfSuiwQrzpaTuGJ4UQPYgu
10+
9mTJKTWyEVWQ2pSjaTBnMA4GA1UdDwEB/wQEAwIBpjAZBgNVHSUEEjAQBgRVHSUA
11+
BggrBgEFBQcDATAPBgNVHRMBAf8EBTADAQH/MCkGA1UdDgQiBCBGTVUP6b+efYl2
12+
zfWdGl1HJZj1TAWMNUYxfFxfsN39bjAKBggqhkjOPQQDAgNHADBEAiB2XoqoNSRw
13+
YzY6sgomVYtidm7HwiXEsqkrThUHasnOugIgejAgkgXWid6WEdFSAUVpEDsRiek4
14+
nM2KGw+XJ5/pm/Q=
15+
-----END CERTIFICATE-----
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIIBbDCCARKgAwIBAwICA+gwCgYIKoZIzj0EAwIwEzERMA8GA1UEAwwIcGVlck9y
3+
ZzEwHhcNMTcwMjIwMTkwNjEwWhcNMTgwMjIwMTkwNjEwWjATMREwDwYDVQQDDAhw
4+
ZWVyT3JnMTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABJ2S+UvyFgFZYL6qcrKo
5+
zy72Nkc/RQVzg1VfwC3X7QcnHEVBuCzba1nxdDVE8XPnhmKBWLKh0adn6GKUZpyf
6+
mbKjVjBUMBIGA1UdEwEB/wQIMAYBAf8CAQAwHQYDVR0OBBYEFAQlMVsXlKGMEWPf
7+
KMMM6QVASnlPMB8GA1UdIwQYMBaAFAQlMVsXlKGMEWPfKMMM6QVASnlPMAoGCCqG
8+
SM49BAMCA0gAMEUCIHr4AD6Xx3R6zFCsveIMnWao9Us88/0uGHoT4ELmMhA1AiEA
9+
yzfXU5qHp3xBJ1BrKOGi71UmQZVwWfO26INhxcfpCAg=
10+
-----END CERTIFICATE-----
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIICNDCCAdqgAwIBAgIRAIBOtq8vZiC0+uLSi2MIS4swCgYIKoZIzj0EAwIwZjEL
3+
MAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBG
4+
cmFuY2lzY28xFDASBgNVBAoTC2V4YW1wbGUuY29tMRQwEgYDVQQDEwtleGFtcGxl
5+
LmNvbTAeFw0xNzA0MjIxMjAyNTZaFw0yNzA0MjAxMjAyNTZaMGYxCzAJBgNVBAYT
6+
AlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2Nv
7+
MRQwEgYDVQQKEwtleGFtcGxlLmNvbTEUMBIGA1UEAxMLZXhhbXBsZS5jb20wWTAT
8+
BgcqhkjOPQIBBggqhkjOPQMBBwNCAARD2rvgyAmhn8hpu82kAjX3QUg2iqCUPEe1
9+
Q5CzD5MVv/dK5wrRgkcoMhJLe4HPxYbjV3rodm5Pwi5m3zMGkqNQo2kwZzAOBgNV
10+
HQ8BAf8EBAMCAaYwGQYDVR0lBBIwEAYEVR0lAAYIKwYBBQUHAwEwDwYDVR0TAQH/
11+
BAUwAwEB/zApBgNVHQ4EIgQg6q3lkIfG2X/PNQ6U83rZ8saSu2bxghSM5YlA3nCt
12+
6c4wCgYIKoZIzj0EAwIDSAAwRQIhAL5Lgy7jZ2W74L6i0B23a3JD0W8TSYlTcqXb
13+
RMSXlLIoAiB2glBl0wM/ITn5+tnHOnq2wrIGuYIiNbLK5oq2zf+gtA==
14+
-----END CERTIFICATE-----

0 commit comments

Comments
 (0)