Specification
When the root keypair is changed, this needs to be propagated to other places that rely on knowing this information. In particular, the new Node Id generated by a new keypair needs to be propagated to the NodeManager and Status, among other places. This can be achieved either through the use of the Observer Pattern, or by using Event Emitters (preferred due to looser coupling).
Additional context
Tasks
- Find all places where keypair renewal/resetting must be propagated to
- Expose a property in
KeyManager that allows events to be propagated to dependent classes
- Register keypair renewal and resetting as such events
- Ensure that errors are correctly handled asynchronously
Specification
When the root keypair is changed, this needs to be propagated to other places that rely on knowing this information. In particular, the new Node Id generated by a new keypair needs to be propagated to the
NodeManagerandStatus, among other places. This can be achieved either through the use of the Observer Pattern, or by using Event Emitters (preferred due to looser coupling).Additional context
Tasks
KeyManagerthat allows events to be propagated to dependent classes