This pull request sets up genesis data structures for the modules assets, delegation, operator and dogfood. The data is read, marshaled and then validated before the node starts. Once the node starts, the data is sent to the module keepers at genesis where stateful validations can take place.
Secondly, it makes some minor changes (comments and clean-up) in the dogfood module.
Lastly, it also sets up a CLI way for validators to export their consensus public key as a bytes32 object to use within Solidity.
This pull request sets up genesis data structures for the modules
assets
,delegation
,operator
anddogfood
. The data is read, marshaled and then validated before the node starts. Once the node starts, the data is sent to the module keepers at genesis where stateful validations can take place.Secondly, it makes some minor changes (comments and clean-up) in the
dogfood
module.Lastly, it also sets up a CLI way for validators to export their consensus public key as a bytes32 object to use within Solidity.
For reference, the (JSON) string object can be exported as follows:
The same key can be recovered from the mnemonic (which can also be read from stdin manually)