Versions Compared

Key

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

This page contains example bash commands and scripts to generate the interoperability artefacts for joining and updating a channel.

Create common.ConfigGroup for Join Request

Based on the configtx.yaml and the msp directories, the ConfigGroup can be created using the configtxgen printOrg function.

  1. Create configtx.yaml:

    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


  2. Create the ConfigGroup JSON using the JSON using the configtxgen printOrg function:


    Code Block
    languagebash
    configtxgen -printOrg ExampleOrg > configGroup.json


  3. Send the configGroup.json to one of the channel members.

...