The PR includes updates to the manage script that automate the provisioning of the agent to be performend on Sovrin StagingNet rather than BCovrin Test.
Following the same logic that was already in place, the new scripts will detect whether the agent is being started for the first time (by checking if an .env file is already present) and perform the following steps to provision a new agent:
start agent and wallet, with the agent in read-only mode connected to Sovrin StagingNet
pull the public DID and verkey from the agent, and use them to register as endorser on StagingNet
accept the TAA
At this point, if the user has executed ./manage start the agent will be restarted in write mode alongside all of the remaining services. The provisioning steps are only performed once on the first/clean start.
It is also possible to run ./manage provision before executing ./manage start to just start the agent in read only mode and register it on StagingNet and accept the TAA: this is useful, as an example, when starting for the first time using an agent that has previously been connected to BCovrin Test.
Alternatively, when migrating from an agent previously regsitered on BCovrin Test you can start from scratch by first executing ./manage rm.
The PR includes updates to the
manage
script that automate the provisioning of the agent to be performend on Sovrin StagingNet rather than BCovrin Test.Following the same logic that was already in place, the new scripts will detect whether the agent is being started for the first time (by checking if an
.env
file is already present) and perform the following steps to provision a new agent:At this point, if the user has executed
./manage start
the agent will be restarted in write mode alongside all of the remaining services. The provisioning steps are only performed once on the first/clean start.It is also possible to run
./manage provision
before executing./manage start
to just start the agent in read only mode and register it on StagingNet and accept the TAA: this is useful, as an example, when starting for the first time using an agent that has previously been connected to BCovrin Test.Alternatively, when migrating from an agent previously regsitered on BCovrin Test you can start from scratch by first executing
./manage rm
.