setup
Guard Operation: Setup
The following document will help you through setup your guard for production on Docker after a successful key generation ceremony
.
Edit Config File
You need to specify some required configs in local.yaml
.
API
Default value of isManualTxRequestActive
is false
. This field prevents service from getting manual transactions. Whenever you want to request to sign a manual transaction, set this value to true
, restart your guard, submit your transaction using guard app, reset this value to false
and restart your guard.
NOTE: It is crucial to keep this config as
false
to prevent insertion of unwanted transactions in case of unauthorized access of malicious actor.
Cardano
Network
Specify your network. If you are using Koios, set chainNetwork
field as koios
and set your koios url.
If you have auth token for koios, you can specify that too.
If you plan to use Blockfrost for your network, set chainNetwork
field as blockfrost
and set your project Id.
You can also use custom blockfrost instance. In this case, also set url:
Address Info
Other than network, you need to specify generated public key in key generation ceremony
and cold storage address on cardano.
NOTE: Leave
coldStorageAddress
empty for now. This field will be set in further notice.
Overall
Your Cardano config will be something like this:
Ergo
Network
Similar to Cardano, you need to specify your network on Ergo. In case of using Explorer, set chainNetwork
field as explorer
and specify url:
In case of using node, set chainNetwork
field as node
and specify url:
Note: Make sure the Ergo node has extra indexing turned on. Read more about extra indexing here.
Initial Height
Specify current height of Ergo blockchain as initial height. The scanner will start on this height to capture any reported events.
Address Info
You should also specify Ergo cold storage address.
NOTE: Leave
coldStorageAddress
empty for now. This field will be set in further notice.
Overall
Your Ergo config will be something like this:
Reward
Specify reward distribution configs. Ensure values with moderator. Config will be like this:
TSS
You should specify your TSS secret along side public key and share ids of all other guards. The public keys and share ids list should be the same between all guards, so get these values from moderator. The structure will be:
P2P
Keep the config provided by keygen moderator for key generation ceremony
.
Keygen
Keygen mode should be deactivated. Delete whole keygen
section from your config file.
Mnemonic
Specify your Ergo address mnemonic under guard
path:
Logs
You have 3 options for your logs.
console
service logs will be only printed on console, you just need to specify log level.
file
service logs will be printed in files in give path.
NOTE: Don't change
path
, since it's hard coded in Dockerfile.loki
service logs will be sent to Grafana server.
You also can set multiple logs config. Therefore your config will be something like this:
Cold Storage Active hour
Specify the period which your guard will generate cold storage transaction. Note that this config is personal and is independent from other guards. The hour will be in UTC timezone.
Discord Notification
Setup a webhook on discord. Some notification (such as cases where hot address does not have enough assets to pay an event) will be sent to discord using this hook. Set it in config like this:
Overall
Combine all of your configs in local.yaml
. The structure will be:
Last updated