statebased.NewStateEP(ep) does not preserve NOutOf? #fabric #fabric-chaincode


Yueming Xu
 

If you call statebased.NewStateEP(ep), the returned KeyEndorsementPolicy will make all identities required to endorse.  Even if the original EP requires only 2 outOf 3 orgs to endorse, the policy returned by NewStateEP() will make it 3 outOf 3.  I guess that this interface is designed for policies that require all participants to endorse, and so you cannot use this `KeyEndorsementPolicy interface to define endorsement policies that require only m outOf n orgs.  Is that right?

Join {fabric@lists.hyperledger.org to automatically receive all group messages.