-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-15066] Enable endorsement policies for collections
* If the collection config contains an endorsement policy it will be used during validation instead of the chaincode endorsement policy * Collection config json endorsementPolicy field can contain either a signaturePolicy or channelConfigPolicy reference Change-Id: I1b7fb1eb83bb506d0a87d9754dfe4d511156bb02 Signed-off-by: Danny Cao <[email protected]>
- Loading branch information
Showing
7 changed files
with
384 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
integration/pvtdata/testdata/collection_configs/collections_config4.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
{ | ||
"name": "collectionMarbles", | ||
"policy": "OR('Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')", | ||
"requiredPeerCount": 1, | ||
"maxPeerCount": 2, | ||
"blockToLive":1000000, | ||
"memberOnlyRead": false, | ||
"endorsementPolicy": { | ||
"signaturePolicy": "OR('Org2MSP.member', 'Org3MSP.member')" | ||
} | ||
}, | ||
{ | ||
"name": "collectionMarblePrivateDetails", | ||
"policy": "OR('Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')", | ||
"requiredPeerCount": 1, | ||
"maxPeerCount": 2, | ||
"blockToLive":1000000, | ||
"memberOnlyRead": false, | ||
"endorsementPolicy": { | ||
"signaturePolicy": "OR('Org2MSP.member', 'Org3MSP.member')" | ||
} | ||
} | ||
] |
24 changes: 24 additions & 0 deletions
24
integration/pvtdata/testdata/collection_configs/collections_config5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[ | ||
{ | ||
"name": "collectionMarbles", | ||
"policy": "OR('Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')", | ||
"requiredPeerCount": 1, | ||
"maxPeerCount": 2, | ||
"blockToLive":1000000, | ||
"memberOnlyRead": false, | ||
"endorsementPolicy": { | ||
"channelConfigPolicy": "/Channel/Application/Readers" | ||
} | ||
}, | ||
{ | ||
"name": "collectionMarblePrivateDetails", | ||
"policy": "OR('Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member')", | ||
"requiredPeerCount": 1, | ||
"maxPeerCount": 2, | ||
"blockToLive":1000000, | ||
"memberOnlyRead": false, | ||
"endorsementPolicy": { | ||
"channelConfigPolicy": "/Channel/Application/Readers" | ||
} | ||
} | ||
] |
Oops, something went wrong.