Milagro DTA is designed to be built into the workflow of any organisation that needs to entrust another organisation to store the secret part of a key pair securely. It provides a simple REST api “out-of-the-box” that can easily be integrated with an existing back office system, called from a front-end application or called from CURL, Postman, Swagger etc.
In order to see Milagro in action you need a pair of servers: a Principal and Fiduciary.
./milagrodta
/cmd/service/flags.go listen_addr : 5556 /* Choose a port for this server*/ custody_server: http://localhost:5556 /*Point to the Fiduciary (custody) server*/
Or use command line options like this...
$ ./milagro-dta -listen-addr :5556 -custody-server http://localhost:5555
In order to run a Milagro DTA Node it needs to be configured with an identity. This is usually passed to the node via one of the configuration options, however if you are running a server for the first time it will prompt you to create a new one by entering a name string.
(If the server is being restarted it will allow you to select a previously created ID)
The API has three parts to it:
The details of the API can be seen here...
curl -X POST "http://localhost:5556/identity" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"name\":\"thisNode\"}"