PyDentity icon indicating copy to clipboard operation
PyDentity copied to clipboard

Create generalised sandbox for multiple agents

Open TTitcombe opened this issue 5 years ago • 1 comments

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)

TTitcombe avatar Sep 12 '20 17:09 TTitcombe

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

  • create_connection(controller1, controller2)
  • issue_credential(issuer, holder)
  • etc...

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.

wip-abramson avatar Nov 05 '20 11:11 wip-abramson