March 2019
Intermediate to advanced
636 pages
27h 50m
English
The next step is to frame an endorsement policy for our chaincode that will be committed to the ledger during the instantiation. This endorsement policy dictates how many peers, belonging to what roles and organizations, need to endorse a ledger commitment transaction (or invocation). In the sample code, different endorsement policies are listed in constants.js, which contains various settings and keywords used by our middleware. The one that we will employ is ALL_FOUR_ORG_MEMBERS:
var FOUR_ORG_MEMBERS_AND_ADMIN = [ { role: { name: 'member', mspId: 'ExporterOrgMSP' } }, { role: { name: 'member', mspId: 'ImporterOrgMSP' } }, { role: { name: 'member', mspId: 'CarrierOrgMSP' } }, { role: { name: 'member', mspId: 'RegulatorOrgMSP' ...Read now
Unlock full access