Add "derivationOrigin" to id_alias credential #2664
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Fix issue raised here: https://dfinity.atlassian.net/browse/FOLLOW-1651
Changes
derivationOrigin
field to the id_alias credential.AliasTuple
from vc-sdk. It created a dependency when I wanted to change it. Therefore, I assumed it should not come from the sdk because it's just a helper type within the II implementation.I will add
derivationOrigin
to theAliasTuple
in the sdk as well, but I believe those two types shouldn't be reused because it creates this dependency where the SDK needs to change for II to use the change, and then the SDK needs to use the new change again. There is no need for this flow with this shared type because it's just a helper type here.Testing
I deployed locally and checked with the dummy relying party and issuer that the new field is added.
However, the integration tests rely on the VC SDK which still doesn't validate the new field. As soon as we add this validation, we should upgrade the dependency in II and the new field would be validated as well.
🟡 Some screens were changed