Submitting keyshares to fairyring
This tutorial goes over on different ways to submit keyshares to fairyring and in particular, to the keyshare module. Make sure you have installed fairyring prior to following the instructions below.
Requirements
In order to be able to submit keyshare to fairyring, there are few requirements:
You are a validator in the staking module with a minimum 10000000000ufairy staked. Check if you are currently a validator as well as how many tokens you have staked with the following command:
You registered as a validator in the fairyring keyshare module. Check if you are in the validator set with following command:
You can register as a validator in the keyshare module with the following command (replace YOUR_WALLET_NAME with your account name in your keyring):
NOTE: If you are submitting keyshares with fairyringclient, you can skip registering as a validator because the client will do it for you.
fairyringclient
fairyringclient is a tool which:
Fetches your master keyshare from our ShareGenerationClient Computes the derived keyshare every block Automatically submits the derived keyshare to fairyring every block. This is the recommended way to submit keyshares. Make sure you have completed the steps in the prerequisites prior to following the instructions below.
Download & Install fairyringclient by the following command:
Initialize the fairyringclient config:
Check the client config:
Example output of the command:
Update the client config:
Here are the flags for updating different field of the config:
Add validator account private key
The private key should be the validator address that is staking on fairyring chain
Example:
Check the key is added to the client correctly:
The [0] at the beginning of the key is the index of your key, which is used to delete the key
Start the client:
The log will look something like this when it started submitting keyshare:
Troubleshooting....
Last updated