Re: statebased.NewStateEP(ep) does not preserve NOutOf? #fabric #fabric-chaincode
David Enyeart
That's right. But you don't have to use the provided implementation, you can simply use it as an example for how to set policies in your own implementation. Look at the provided policyFromMSPIDs() and you'll see how to write a NOutOf policy to meet your needs: 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? |
|