MakaraPr
MakaraPr

Reputation: 171

How public data block storage get update when involving private channel in Hyperledger Fabric?

I recently get interesting in Hyperledger Fabric. I come across the concept of a private channel. I seem to get the idea of how it works. However, I got stuck when considering the following scenario on basic money transactions between three parties.

enter image description here

If we consider the above case when Alice wants to send money to Blob in a private channel and then send the money to Sara over the normal use case. How the peer outside the channel then verify the balance of Alice if they don't have the information about Alice and Blob private transaction?

Upvotes: 0

Views: 58

Answers (1)

Narendranath Reddy
Narendranath Reddy

Reputation: 4133

You can do two ways

  • control this in chaincode level
  • control this in client level

what you are trying to do is some data present in one channel need to appear in another channel

you can query other channel data in chaincode itself else query private channel data before you call to public channel

Remember one thing there is no a concept called private/public channel if an organization is not part of a channel then it will see that channel as a private channel by concept

Upvotes: 1

Related Questions