Re: Private data collections recommended usage
David Enyeart
Yes, you can update multiple explicit and/or implicit private data collections in a single transaction. Each org-specific implicit private data collection has an endorsement policy of the associated organization. So a client from OrgA could submit an update for OrgA collection and OrgB collection, so long as they get an endorsement from an OrgA peer and OrgB peer. The updates would be applied atomically assuming the transaction is validated. The chaincode can have access control logic that either allows or disallows these cross-org updates, for example the chaincode can check that the client MSPID matches the endorsing peer's MSPID, if you want to restrict such cross-org updates for certain transactions, but allow it for other transactions. Hi David, thank you for the prompt response.
https://hyperledger-fabric.readthedocs.io/en/latest/private-data/private-data.html#sharing-private-data interesting, can we update multiple, cross organizations implicit collections in that same transaction (given all of the collection's organizations are endorsing the transaction ) ? the goal is to be able to keep the data up to date across all collections where the data is shared, preferably doing so under a single transaction.
can you elaborate on the challenges of many collections may impose? in our perspective the static nature of collections definitions might make operating large amount of collections complex since it require the other organization approval on the new or updated collection definition, but for our use case we can solve this as part of our process of bootstrapping a new organization to the channel (creating the per organization collection between the new organizations and existing organizations). are there are any other issues we are overlooking here? Thank you, Omer
|
|