Support for X25519KeyAgreementKey2020
and X25519KeyAgreementKeyEIP5630
based keys
#363
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.
This PR aims to introduce support for
X25519KeyAgreementKey2020
andX25519KeyAgreementKeyEIP5630
verification method typesThese keys are based on
keyAgreement
attribute. Hence, any verification method of these types can only be part of thekeyAgreement
attribute only, and hence they are not allowed to be used for Authentication as well as Assertion purposes. This also means thatEd25519VerificationKey2020
based Verification Methods cannot be used forkeyAgreement
PurposesTest Cases:
FAIL: Ed25519VerificationKey2020 based Verification Method ID being added to keyAgreement attribute
FAIL: X25519KeyAgreementKey2020 based Verification Method ID being added to authentication attribute
PASS: A DID Document is created with Ed25519VerificationKey2020 and X25519KeyAgreementKey2020 based VMs
FAIL: An attempt is made to update the DID Document by passing the signature of X25519KeyAgreementKey2020 based verification method
PASS: An attempt is made to update the DID Document by passing the signature of Ed25519VerificationKey2020 based verification method
FAIL: An attempt is made to deactivate the DID Document by passing the signature of X25519KeyAgreementKey2020 based verification method
PASS: An attempt is made to deactivate the DID Document by passing the signature of Ed25519VerificationKey2020 based verification method