OpenMined / PyDentity

A repository for leveraging Self-Sovereign Identity in applications
65 stars 25 forks source link

Create generalised sandbox for multiple agents #16

Open TTitcombe opened 4 years ago

TTitcombe commented 4 years ago

Description

The current docker-compose/manage/create_connection.py setup spins-up two agents. We should generalise this process so that any number of agents can be created and connected with each other. To add a new agent manually requires duplicating the code N times, which doesn't scale easily for large environments and is prone to mistakes.

A sandbox controller should have to define ports for each agent, but inter-agent connections (create_connection.py) should be automated. Automating the process in docker-compose would be great as well, if possible

Are you interested in working on this improvement yourself?

Yes, I am.

Additional Context

This is necessary for the PryVote sandbox, in which we may need a minimum of six agents (3 vote counters and at least 3 voters)

wip-abramson commented 4 years ago

This would be great to have and would help with testing also. I think the approach should be to create some generic python functions.

Then to create some custom config you could define your own python script, that initialises the controllers and calls the helper functions on them as necessary.

Might need some more thought, but that is the approach I would be thinking about.