-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CE-427] Support fabric v1.2 sdk in user dashboard
Can apply fabric v1.2 chain in user dashboard and use it. Change crypto-config files for fabric 1.2 network. Change-Id: I6355fbb828940127fcabd5b2bf5c6eeb671f97ea Signed-off-by: Haitao Yue <hightall@me.com>
- Loading branch information
Showing
575 changed files
with
13,121 additions
and
1,808 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
149 changes: 149 additions & 0 deletions
149
src/agent/docker/_compose_files/fabric-1.2/configtx.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
--- | ||
################################################################################ | ||
# | ||
# Section: Organizations | ||
# | ||
# - This section defines the different organizational identities which will | ||
# be referenced later in the configuration. | ||
# | ||
################################################################################ | ||
Organizations: | ||
|
||
# SampleOrg defines an MSP using the sampleconfig. It should never be used | ||
# in production but may be used as a template for other definitions | ||
- &OrdererOrg | ||
# DefaultOrg defines the organization which is used in the sampleconfig | ||
# of the fabric.git development environment | ||
Name: OrdererMSP | ||
|
||
# ID to load the MSP definition as | ||
ID: OrdererMSP | ||
|
||
# MSPDir is the filesystem path which contains the MSP configuration | ||
MSPDir: crypto-config/ordererOrganizations/example.com/msp | ||
|
||
- &Org1 | ||
# DefaultOrg defines the organization which is used in the sampleconfig | ||
# of the fabric.git development environment | ||
Name: Org1MSP | ||
|
||
# ID to load the MSP definition as | ||
ID: Org1MSP | ||
|
||
MSPDir: crypto-config/peerOrganizations/org1.example.com/msp | ||
|
||
AnchorPeers: | ||
# AnchorPeers defines the location of peers which can be used | ||
# for cross org gossip communication. Note, this value is only | ||
# encoded in the genesis block in the Application section context | ||
- Host: peer0.org1.example.com | ||
Port: 7051 | ||
|
||
- &Org2 | ||
# DefaultOrg defines the organization which is used in the sampleconfig | ||
# of the fabric.git development environment | ||
Name: Org2MSP | ||
|
||
# ID to load the MSP definition as | ||
ID: Org2MSP | ||
|
||
MSPDir: crypto-config/peerOrganizations/org2.example.com/msp | ||
|
||
AnchorPeers: | ||
# AnchorPeers defines the location of peers which can be used | ||
# for cross org gossip communication. Note, this value is only | ||
# encoded in the genesis block in the Application section context | ||
- Host: peer0.org2.example.com | ||
Port: 7051 | ||
|
||
################################################################################ | ||
# | ||
# 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: | ||
|
||
################################################################################ | ||
# | ||
# 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 | ||
# Available types are "solo" and "kafka" | ||
OrdererType: solo | ||
|
||
Addresses: | ||
- orderer.example.com:7050 | ||
|
||
# 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: 98 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 | ||
|
||
Kafka: | ||
# Brokers: A list of Kafka brokers to which the orderer connects | ||
# NOTE: Use IP:port notation | ||
Brokers: | ||
- 127.0.0.1:9092 | ||
|
||
# Organizations is the list of orgs which are defined as participants on | ||
# the orderer side of the network | ||
Organizations: | ||
|
||
################################################################################ | ||
# | ||
# Profile | ||
# | ||
# - Different configuration profiles may be encoded here to be specified | ||
# as parameters to the configtxgen tool | ||
# | ||
################################################################################ | ||
Profiles: | ||
|
||
TwoOrgsOrdererGenesis: | ||
Orderer: | ||
<<: *OrdererDefaults | ||
Organizations: | ||
- *OrdererOrg | ||
Consortiums: | ||
SampleConsortium: | ||
Organizations: | ||
- *Org1 | ||
- *Org2 | ||
TwoOrgsChannel: | ||
Consortium: SampleConsortium | ||
Application: | ||
<<: *ApplicationDefaults | ||
Organizations: | ||
- *Org1 | ||
- *Org2 |
83 changes: 83 additions & 0 deletions
83
src/agent/docker/_compose_files/fabric-1.2/crypto-config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
# --------------------------------------------------------------------------- | ||
# "OrdererOrgs" - Definition of organizations managing orderer nodes | ||
# --------------------------------------------------------------------------- | ||
OrdererOrgs: | ||
# --------------------------------------------------------------------------- | ||
# Orderer | ||
# --------------------------------------------------------------------------- | ||
- Name: Orderer | ||
Domain: example.com | ||
# --------------------------------------------------------------------------- | ||
# "Specs" - See PeerOrgs below for complete description | ||
# --------------------------------------------------------------------------- | ||
Specs: | ||
- Hostname: orderer | ||
# --------------------------------------------------------------------------- | ||
# "PeerOrgs" - Definition of organizations managing peer nodes | ||
# --------------------------------------------------------------------------- | ||
PeerOrgs: | ||
# --------------------------------------------------------------------------- | ||
# Org1 | ||
# --------------------------------------------------------------------------- | ||
- Name: Org1 | ||
Domain: org1.example.com | ||
EnableNodeOUs: true | ||
# --------------------------------------------------------------------------- | ||
# "Specs" | ||
# --------------------------------------------------------------------------- | ||
# Uncomment this section to enable the explicit definition of hosts in your | ||
# configuration. Most users will want to use Template, below | ||
# | ||
# Specs is an array of Spec entries. Each Spec entry consists of two fields: | ||
# - Hostname: (Required) The desired hostname, sans the domain. | ||
# - CommonName: (Optional) Specifies the template or explicit override for | ||
# the CN. By default, this is the template: | ||
# | ||
# "{{.Hostname}}.{{.Domain}}" | ||
# | ||
# which obtains its values from the Spec.Hostname and | ||
# Org.Domain, respectively. | ||
# --------------------------------------------------------------------------- | ||
# Specs: | ||
# - Hostname: foo # implicitly "foo.org1.example.com" | ||
# CommonName: foo27.org5.example.com # overrides Hostname-based FQDN set above | ||
# - Hostname: bar | ||
# - Hostname: baz | ||
# --------------------------------------------------------------------------- | ||
# "Template" | ||
# --------------------------------------------------------------------------- | ||
# Allows for the definition of 1 or more hosts that are created sequentially | ||
# from a template. By default, this looks like "peer%d" from 0 to Count-1. | ||
# You may override the number of nodes (Count), the starting index (Start) | ||
# or the template used to construct the name (Hostname). | ||
# | ||
# Note: Template and Specs are not mutually exclusive. You may define both | ||
# sections and the aggregate nodes will be created for you. Take care with | ||
# name collisions | ||
# --------------------------------------------------------------------------- | ||
Template: | ||
Count: 2 | ||
# Start: 5 | ||
# Hostname: {{.Prefix}}{{.Index}} # default | ||
# --------------------------------------------------------------------------- | ||
# "Users" | ||
# --------------------------------------------------------------------------- | ||
# Count: The number of user accounts _in addition_ to Admin | ||
# --------------------------------------------------------------------------- | ||
Users: | ||
Count: 1 | ||
# --------------------------------------------------------------------------- | ||
# Org2: See "Org1" for full specification | ||
# --------------------------------------------------------------------------- | ||
- Name: Org2 | ||
Domain: org2.example.com | ||
EnableNodeOUs: true | ||
Template: | ||
Count: 2 | ||
Users: | ||
Count: 1 |
5 changes: 5 additions & 0 deletions
5
...ations/example.com/ca/720df2d619a9eca2356698c5bb9935aef9c74737e0170803e9969c6f935dd5b4_sk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgh3rFLHwXzBOetrRO | ||
BMN65dUE+JK0zDRrc/oKz8QDheqhRANCAAS13UJ8SZpfa+DFO78fchLXLHcK4gOj | ||
ZZp7R5AS7HEfAs0RKeigu6g4elj2s8zq+zBl29yZelcXdhmcGCI7jhFc | ||
-----END PRIVATE KEY----- |
24 changes: 12 additions & 12 deletions
24
...iles/fabric-1.2/crypto-config/ordererOrganizations/example.com/ca/ca.example.com-cert.pem
100755 → 100644
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIICLjCCAdWgAwIBAgIQRktt2YoH+TqO5w2ktKcjojAKBggqhkjOPQQDAjBpMQsw | ||
CQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZy | ||
YW5jaXNjbzEUMBIGA1UEChMLZXhhbXBsZS5jb20xFzAVBgNVBAMTDmNhLmV4YW1w | ||
bGUuY29tMB4XDTE4MDYyMjAzMjIyOFo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