keygen-docker
Guard Operation: Key Generation
Being a guard, you need a set of secret keys that will be used in multisig operations. One of these keys will be used by the TSS library
for EcDSA
and EdDSA
multisig wallets.
The following document will help you through generating this key by activating the keygen mode
in the guard application in a key generation ceremony
.
Note: The guard application does not have a UI interface for key generation process.
Docker Deployment
Clone Operation repository and go to operation/guard
directory
Create your environment file .env
based on env.template
file in the guard
directory
Set your parameters in .env
file
Note: do not use space after
=
sign
Set required permissions and create thresholds.json
and local.yaml
files in the config
directory
Only on MacOS
: set 707
permission for the logs
directory
Pull the Docker image
In order to instruct the service to generate a new key, copy and paste the following lines in local.yaml
file, fill in the required parameters, and save the file.
Ask the keygen ceremony moderator to provide the required info for the
FILL_ACCORDING_TO_YOUR_GUARD_SET
parameters
In the guard
directory, run the containers
Note: Each guard has a unique peerId that you should provide to the moderator of the keygen ceremony. Your peerId will be whitelisted in the network's relay. Upon starting your guard, you can find the value of this parameter in your guard's logs. For example, you should see a line like this in your log file located at
./logs/guard-logs/
or in your console:In this example,
12D3KooWNGaHx3EAdNeKUFxAKrg3EyKFN8gHHw9H5ZiBmRVjxHpG
represents the peerId.
Successful Keygen
After discovering all peers, the colaborative key genaration process will be started. In case of a successful key genaration you can see the following message in the console as well as in the log file located at ./logs/guard-logs/
.
Please provide this data to the moderator of the keygen ceremony to acknowledge your successful operation.
Backup
After a successful keygen ceremony, back up the keygen data
as well as the p2p data
by executing the following commands in the guard directory:
Note: Keep the directory
guard_data_backup
in a secure location. Your key share can be found inkeygen_data.json
.
Last updated