[][src]Crate libra_key_manager

The purpose of KeyManager is to rotate consensus key (and eventually the network key). It is not responsible for generating the first key and fails if the stores have not been properly setup. During rotation, it first updates the local store, then submits a transaction to rotate to the new key. After some period of time and upon restarts of the process, it will evaluate the current status of the system including:

KeyManager talks to Libra via the LibraInterface that may either be a direct link into LibraDB/Executor, JSON-RPC, or some other concoction. KeyManager talks to its own storage through the `LibraSecureStorage::Storage trait.

Modules

counters
libra_interface
logging

Structs

KeyManager

Enums

Action

Defines actions that KeyManager should perform after a check of all associated state.

Error

Functions

build_rotation_transaction