Correctly uses the participant's DID instead of participantContextId when setting additionalData["controller"], setting it in PresentationCreatorRegistryImpl.createPresentation where the DID is already resolved (previously it was set in VerifiablePresentationServiceImpl.createPresentation).
Why it does that
Controller was set to participantContextId, which is not correct (e.g. caused problems with publicKeyId when generating a VP).
Further notes
Also changed tests (PresentationCreatorRegistryImplTest and VerifiablePresentationServiceImplTest)
@paullatzelsperger
What this PR changes/adds
Correctly uses the participant's
DID
instead ofparticipantContextId
when settingadditionalData["controller"]
, setting it inPresentationCreatorRegistryImpl.createPresentation
where the DID is already resolved (previously it was set inVerifiablePresentationServiceImpl.createPresentation
).Why it does that
Controller was set to participantContextId, which is not correct (e.g. caused problems with publicKeyId when generating a VP).
Further notes
Also changed tests (
PresentationCreatorRegistryImplTest
andVerifiablePresentationServiceImplTest
) @paullatzelspergerLinked Issue(s)
Closes #407