Class: EndorsementPolicy

EndorsementPolicy

Governs the constructions of endorsement policies to be passed into the calls to instantiate chaincodes

new EndorsementPolicy()

Methods


<static> buildPolicy(msps, policy)

Constructs an endorsement policy envelope. If the optional "policy" object is not present, a default policy of "a signature by any member from any of the organizations corresponding to the array of member service providers" is returned.
Parameters:
Name Type Description
msps Array.<MSP> Array of Member Service Provider objects representing the participants of the endorsement policy to be constructed
policy Policy The policy specification. It has two high-level properties: identities and policy. see the type definition of Policy for details.