Closed hacheigriega closed 1 month ago
Thanks for the reviews.. I will address them after fixing the JSON unmarshalling issue I found while adding CLI tests.
Done but there is a gas estimation issue to be addressed in a separate PR (See Issue #341)
Explanation of Changes
This PR adds the last component of the pubkey module, the SEDA keys. This implements a CLI command for generating a set of SEDA keys and publishing their public keys on chain. Each of the SEDA keys are generated from a random seed, and they are stored in a single key file
seda_keys.json
under the same directory where the consensus private key is saved to. This means that, if any of the keys is lost, the user must re-generate and rotate all of his or her SEDA keys.To generate the SEDA keys and register their public keys on chain, run:
To query the validator's list of SEDA public keys:
When the SEDA Protocol requires a new key to be registered on chain, the
add-key
command would be updated to generate the new key at some unused index.Related PRs and Issues
TODO
x/pkr
tox/pubkey
Closes #162