Dear SAP Team,
I have been trying out SAP Hyperledger Fabric. I am having a major doubt regarding the use of collections to provide storage and retrieval of private data on the block chain network for authorized peers of organizations. From the Hyperledger docs, I understood the concepts of private data and how to implement it in chain code. The main problem I am facing is I couldn't find a way to provide the "collections_config.json" file.
I tried packing the file in 2 ways:
1.
-- src
----chaincode_name.go
----chaincode_name.yaml
-- chaincode.yaml
-- collections_config.json
2.
-- src
----chaincode_name.go
----chaincode_name.yaml
----collections_config.json-- chaincode.yaml
and in the Args I tried specifying the path.
But these didn't work. The error is "collection config not define for namespace"
How can I specify this?
Request clarification before answering.
Hi Abhinav,
The collections-config.json doesnt have to be deployed along with the main chain code.
In the current [ Fabric 1.3 ] SAP CP Hyperledger service channel instance, after you deploy chaincode, the dashboard shows you the step(button) to "Instantiate" the chaincode . During instantiation step, the dialog has provision to supply /upload the collection-config file.
I have mentioned about it here in my private data overview blog : https://blogs.sap.com/2019/03/11/implement-data-privacy-in-hyperledger-fabric-through-private-collec...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Abhinav,
don't have an answer and only limited understanding of the fabric, but
what's the sap help file equivalent of this tutorial page: https://hyperledger-fabric.readthedocs.io/en/release-1.2/private_data_tutorial.html#pd-build-json? did you have to modify the 'standard' chaincode to fit the private chain requirements? fabric has a separate chaincode that allows only the authorized peers to view the blockchain 'contents' and that would be invoked and instantiated separately from the plain vanilla one.
thx, greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I also only have limited understanding of Fabric. I was not able to find any documentation regarding private data in sap help or documentations. I followed the Hyperledger documentation itself. In my use case I need the private data and the concepts of collections only. I have changed the chaincode to adapt the Private Data as per this documentation: https://hyperledger-fabric.readthedocs.io/en/release-1.2/private_data_tutorial.html#pd-build-json. When the chaincode is getting executed its not able find the collections_config in the specified namesapce.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.