-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-6600] Sample chaincode for private data
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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
651 additions
and
0 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
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 | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
...private/go/META-INF/statedb/couchdb/collections/collectionMarbles/indexes/indexOwner.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 @@ | ||
{"index":{"fields":["docType","owner"]},"ddoc":"indexOwnerDoc", "name":"indexOwner","type":"json"} |
Oops, something went wrong.