To add an organization from an external Hyperledger Fabric environment to a channel in Alibaba Cloud BaaS, you must bind a management chaincode to the channel. The management chaincode is used to coordinate the requests for changing channel configurations and the signatures of organizations.
Note: To avoid unnecessary operations, bind a management chaincode to a channel in Alibaba Cloud BaaS only after you have decided to add an external organization to the channel.
Download the standard management chaincode package provided by Alibaba Cloud BaaS. The default name of the management chaincode is cmcc. You can select from two versions:
Log on to the Alibaba Cloud BaaS console. In the My Organizations section of the Overview page, click the name of an organization that is in the target channel.
(V1.4) Click the Chaincodes tab. Then follow the steps in Deploy chaincodes to upload, install, and instantiate the management chaincode.
If you use the management chaincode of V2.2, click the Chaincode Package management tab on the page that appears. Then, upload the management chaincode, install it, and submit its definition. For more information, see Deploy chaincodes.
Click the Chaincodes tab. On the Chaincodes tab, click Bind Management Chaincode.
In the pane that appears, select the management chaincode record for the target channel and click Bind.
Check the binding result. The management chaincode is marked with the Management Chaincode identifier and the target channel is marked with the Hybrid Channel identifier.
Repeat the preceding steps for every organization in the target channel to deploy and bind the management chaincode for all of them.