hyperledger / firefly

Hyperledger FireFly is the first open source Supernode: a complete stack for enterprises to build and scale secure Web3 applications. The FireFly API for digital assets, data flows, and blockchain transactions makes it radically faster to build production-ready apps on popular chains and protocols.
https://hyperledger.github.io/firefly
Apache License 2.0
498 stars 204 forks source link

Allow ordering between broadcasts and private messages #848

Open gabriel-indik opened 2 years ago

gabriel-indik commented 2 years ago

In certain applications business objects contain a combination of public and private information. Public information is shared across all members using broadcasts and private information is then sent to selected members using private messaging. From an application development point of view, it would be convenient if the ordering between the broadcasts and the private (blockchain pinned) messages could be guaranteed.

peterbroadhurst commented 2 years ago

There's another related case, which is between private groups:

  1. Parties A&B have a group x, and do transactions 1,2,3
  2. Party C needs to be included, so a new group y is created with A,B & C
  3. Parties A&B share some state history from x to y
  4. The business transaction continues on y
  5. ... maybe A&B want to continue after C is finished with their bit, using data C can't see - so transaction continues on x
peterbroadhurst commented 2 years ago

A generic feature that would support this would be: