When the ParticipantContext is created, and its active flag is set, it must still be created int he inactive state, to avoid the DID publication.
Then, after all the keys are added (and possibly activated), the ParticipantContext is activated in an explicit step by the ParticipantContextCoordinator
Which Areas Would Be Affected?
ParticipantContextCoordinator
Why Is the Feature Desired?
if the ParticipantContext is created in the active state, adding (and activating) keypairs will lead to another DID publication, and then, later, the ParticipantContextCoordinator would publish yet again.
Creating the ParticipantContext in the inactive state will avoid the first publication.
Solution Proposal
always create the ParticipantContext in the inactive state
ParticipantContextCoordinator updates the DID document, adds keypairs, (possibly activates keypairs) and then explicitly activates the ParticipantContext, if the flag was set in the ParticipantManifest.
ParticipantContextCoordinator publishes the DID Document. here, the manifest.isActive() check is not needed anymore.
Feature Request
When the
ParticipantContext
is created, and itsactive
flag is set, it must still be created int heinactive
state, to avoid the DID publication.Then, after all the keys are added (and possibly activated), the
ParticipantContext
is activated in an explicit step by theParticipantContextCoordinator
Which Areas Would Be Affected?
ParticipantContextCoordinator
Why Is the Feature Desired?
if the
ParticipantContext
is created in theactive
state, adding (and activating) keypairs will lead to another DID publication, and then, later, theParticipantContextCoordinator
would publish yet again. Creating theParticipantContext
in theinactive
state will avoid the first publication.Solution Proposal
ParticipantContext
in theinactive
stateParticipantContextCoordinator
updates the DID document, adds keypairs, (possibly activates keypairs) and then explicitly activates theParticipantContext
, if the flag was set in theParticipantManifest
.manifest.isActive()
check is not needed anymore.