1

I want to setup Hyperledger fabrics environment for approval process using Endorsement policy so I have some doubts/questions in fabric setup:

  1. Help me How can I set up Hyperledger fabric network with two Organisations(one anchor and one endorsement) and one channel without using hyperledger composer?

  2. How to write the endorsement policy?

  3. How to add the organisation for the existing channel, is there any credential required to adding the organisation?

  4. How can i change ordered node from solo to Kafka?

  5. Is certification same for all the peers within the organisation?

Ctorres
  • 468
  • 6
  • 19
  • Have you looked at https://hyperledger-fabric.readthedocs.io/en/release-1.4/build_network.html ? – Gari Singh Jan 16 '20 at 14:12
  • Have you looked through the Fabric documentation? This is all covered there. I ask as perhaps we need to make things more clear if you've already read through the docs. – Gari Singh Jan 16 '20 at 14:22

1 Answers1

0
  1. You should read through the tutorial noted my comment above
  2. I think you might be confusing endorsement with a signature-based approval process. They are not the same thing. Endorsement policy determines how many peers from different orgs must agree on the output of a chaincode execution. If you use the peer cli to instantiate your chaincode, you'd use policies of the form "OR('Org1.member', 'Org2.member')" (require endorsement from either Org1 or Org2) or "AND('Org1.member', 'Org2.member')" (require endorsement from both Org1 and Org2.
  3. You will need to execute config update transaction on the channel and add the org definition (which will include it's MSP definition)
  4. You cannot migrate from Solo to Kafka. In any case, you should actually make sure you are on the latest 1.4.x and set up Raft-based ordering.
Gari Singh
  • 11,418
  • 2
  • 18
  • 41