Skip to content

Commit

Permalink
[FAB-6600] Sample chaincode for private data
Browse files Browse the repository at this point in the history
Marbles02 chaincode updated to utilize private
data collections on all ledger APIs.

To run the sample, follow the instructions
in FAB-10231. An official tutorial will follow.

Change-Id: Id9b3dbae8ab62afe81ee8d116b7bd4efc0213933
Signed-off-by: David Enyeart <enyeart@us.ibm.com>
  • Loading branch information
denyeart committed Jun 2, 2018
1 parent 3c32c52 commit 5956178
Show file tree
Hide file tree
Showing 3 changed files with 651 additions and 0 deletions.
16 changes: 16 additions & 0 deletions chaincode/marbles02_private/collections_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"name": "collectionMarbles",
"policy": "OR('Org1MSP.member', 'Org2MSP.member')",
"requiredPeerCount": 0,
"maxPeerCount": 3,
"blockToLive":1000000
},
{
"name": "collectionMarblePrivateDetails",
"policy": "OR('Org1MSP.member')",
"requiredPeerCount": 0,
"maxPeerCount": 3,
"blockToLive":3
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"index":{"fields":["docType","owner"]},"ddoc":"indexOwnerDoc", "name":"indexOwner","type":"json"}
Loading

0 comments on commit 5956178

Please sign in to comment.