...
- Join Request common.ConfigGroup JSON file based on a Fabric peer organisation. This can be send to a channel member to request to join the channel.
- Channel Update protobuf file based on the current channel configuration and the join request. This can be used to gather signatures and finally update the channel.
Create common.ConfigGroup for Join Request
In this section the artefact for the join request will be created.
Locate your fabric peer organisation's cryptographic material . The directory structure should look like this:
configtx.yaml
crypto-config
- peerOrganizations
- example-org.com
- ca
- msp
- peers
- tlsca
- users
- example-org.com
- peerOrganizations
Find or create a configtx.yaml file that contains at least the information about the organisation you want to join to the channel. An example configuration file looks like this:
Code Block language yml title configtx.yaml linenumbers true --- Organizations: - &Org1 Name: ExampleOrg ID: ExampleOrg MSPDir: crypto-config/peerOrganizations/example-org.com/msp Policies: &Org1Policies Readers: Type: Signature Rule: "OR('ExampleOrg.member')" Writers: Type: Signature Rule: "OR('ExampleOrg.member')" Admins: Type: Signature Rule: "OR('ExampleOrg.admin')" AnchorPeers: - Host: peer0.example-org.com Port: 7051
Create the ConfigGroup JSON using the configtxgen printOrg function. Execute the following command in the directory of your configtx.yaml:
Code Block language bash configtxgen -printOrg ExampleOrg > configGroup.json
Send the configGroup.json to one of the channel members.
Create common.ConfigUpdate (channel update)
In this section, the channel update for a new channel member will be created based on the join request. This can be used to make a new proposal via the management chaincode.
...