简体   繁体   中英

Need specific chaincode for PDC(Private Data Collection)?

I am trying using PDC on hyperledger fabric for testing.

So then, I heard that PDC needs specific chaincode for itself, not exactly.

For using PDC, do it need something special chaincode only for PDC??

First of all, you need to make colletions_config.yaml file.

When you instantiate the chaincode, specify the flag --collections-config [path]

Chaincode Functions:

  • stub.GetPrivateData()
  • stub.PutPrivateData()

See this page

https://hyperledger-fabric.readthedocs.io/en/release-1.4/private_data_tutorial.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM