Skip to content

Propagate root keypair changes to domains external to KeyManager #312

@emmacasolin

Description

@emmacasolin

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

  1. Find all places where keypair renewal/resetting must be propagated to
  2. Expose a property in KeyManager that allows events to be propagated to dependent classes
  3. Register keypair renewal and resetting as such events
  4. Ensure that errors are correctly handled asynchronously

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions