Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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.
  2. 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.

  1. 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
  2. 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
    languageyml
    titleconfigtx.yaml
    linenumberstrue
    ---
    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


  3. Create the ConfigGroup JSON using the configtxgen printOrg function. Execute the following command in the directory of your configtx.yaml:

    Code Block
    languagebash
    configtxgen -printOrg ExampleOrg > configGroup.json


  4. 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.

...