Here's an example scenario:
Party A receives data from Party B before Party B has a Corda node and identity. Party A temporarily manages their shared state, using a temporary string identifier for Party B. When Party B launches a node, Party A needs to update the shared state with B's identity (replace the temp id in the State with a Party reference).
At this point, B should become aware of this State, and receive updates if there are any changes. What's the right way to ensure this last part?
答案 0 :(得分:2)
You would create a transaction that:
Party
object and added to the participantsAs a participant, B will then receive the transaction as part of the FinalityFlow
.
You'd need to think about how to handle the fact that a field in the state could either be an identifier string or a Party
object. Some options:
Party
object