corda / accounts

Accounts on Corda
Other
36 stars 38 forks source link

Create A Flow And Service To Share/Synchronise All Accounts #28

Open opticyclic opened 5 years ago

opticyclic commented 5 years ago

There is a service called shareAccountInfoWithParty that the gold-trading example uses for trading using accounts instead of nodes.

It would be useful if there was a function that shared all accounts with another Party/node.

The next logical step would be to have the other node share all their accounts back.

The final step would be to have a function that iterated over all the nodes on the network and shared/synchronised all the accounts between all nodes so that every account would be able to deal with any other account in the same way that every node is automatically able to deal with any other node.

opticyclic commented 5 years ago

There seems to be a start of something like this in the cordapp-sweepstake example:

https://github.com/corda/accounts/blob/b3f8e3121bad19f66a583bd435e2559d91e2c370/examples/cordapp-sweepstake/src/main/kotlin/com/r3/corda/lib/accounts/examples/sweepstake/flows/TournamentUtilities.kt#L123

roger-that-dev commented 5 years ago

Thanks - will look into this.