eclipse-edc / IdentityHub

IdentityHub
Apache License 2.0
21 stars 25 forks source link

feat: activate ParticipantContext explicitly during creation #457

Closed paullatzelsperger closed 2 months ago

paullatzelsperger commented 2 months ago

What this PR changes/adds

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.

Linked Issue(s)

Closes #455

_Please be sure to take a look at the contributing guidelines and our etiquette for pull requests._