Build a Network
The blockchain network is fully decentralized and can be managed by each member. However, there should be one organization that bootstraps the network.
To build a network, you should do the following:
- 1.Create an organization.
- 2.Bootstrap the system channel (in other words, generate the genesis block for the system channel).
Build a network
Every organization should have its own CA(s), MSP definition, ordering service with ordering node(s), and peer set(s) with peer node(s).
Creating an organization flow
To create an organization, you need to do the following.
1. Create a Certificate Authority (CA).
CA is the first entity to be created while bootstrapping a network. Each organization needs to have its own CA. A CA issues certificates to other entities on the network, which define the identity of an entity on the blockchain.
You can create a root (self-signed) CA or create an intermediate CA instead and sign its certificate by any trusted CA. If you want to create an intermediate CA, you need to create a CA and then follow the steps shown in the diagram below.
Intermediate CA creation flow
2. Create an Organization's MSP Definition
The Membership Service Provider (MSP) identifies which CAs are accepted to define the members of a trusted domain by listing their members' identities or identifying which CAs are authorized to issue their members' valid identities.
An ordering service with ordering nodes and peer sets with peer nodes belong to your organization. Therefore, an organization's MSP needs to be created before the ordering service and peer sets. To learn more about MSPs and how to create an MSP, please refer to this section.
3. Create Ordering Set(s)
By creating an ordering set, you can standardize the desired configurations. By simply adding a new orderer to this ordering set, you can quickly create any number of orderers with the predefined set of configurations. For a detailed guide, refer to this section.
4. Create Ordering Node(s)
Ordering nodes (or orderers) are responsible for maintaining the system and application channels, ordering transactions, and packaging them into blocks.
5. Create Peer Set
6. Create Peer Node(s)
Every network begins with an ordering system channel. The policies in the ordering system channel configuration blocks govern the consensus used by the ordering service and define how new blocks are created.
The system channel also contains the organizations that are the members of the ordering service (orderer organizations) and those allowed to create new channels (consortium organizations).
While creating a system channel you need to:
- 1.Add orderer organizations.
- 2.Create a consortium.