This PR changes the ParticipantContextEventCoordinator such that ParticipantContext objects are always created in the inactive state.
Then, keys are generated/added and possibly activated, and only then is the ParticipantContext activated, causing the DID document to be published.
Why it does that
avoid multiple publications
Further notes
List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.
What this PR changes/adds
This PR changes the
ParticipantContextEventCoordinator
such thatParticipantContext
objects are always created in theinactive
state. Then, keys are generated/added and possibly activated, and only then is theParticipantContext
activated, causing the DID document to be published.Why it does that
avoid multiple publications
Further notes
List other areas of code that have changed but are not necessarily linked to the main feature. This could be method signature changes, package declarations, bugs that were encountered and were fixed inline, etc.
Linked Issue(s)
Closes #455
_Please be sure to take a look at the contributing guidelines and our etiquette for pull requests._