Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.15 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.15 KB

Dispatcher

The dispatcher simplifies the communication between the horcruxes. It should be deployed on a machine that is reachable by every participating horcrux. The dispatcher transmits secret shares between horcruxes. All the messages are encrypted with the RSA public key of the recipient, so there is no way for a dispatcher to access the secret data. In order for the participants to interact with the dispatcher, they must provide AUTHENTICATION_KEY.

Local setup

Run the following command from the home directory to start the dispatcher locally:

AUTHENTICATION_KEY=securekey DATABASE_PATH=sqlite:///./dispatcher.db uvicorn dispatcher.main:app --reload

Remote access

You can deploy the dispatcher with any means on the public IP address. Alternatively, you can use ngrok to allow other horcruxes to connect to your locally running dispatcher.

Run the following command in first terminal window:

AUTHENTICATION_KEY=securekey DATABASE_PATH=sqlite:///./dispatcher.db uvicorn dispatcher.main:app --reload

Run the following command in second terminal window:

ngrok http 8000