Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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:

    configtx.yaml
    ---
    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 using the configtxgen printOrg function:
    configtxgen -printOrg ExampleOrg > configGroup.json
  3. Send the configGroup.json to one of the channel members.




  • No labels