Validation of VC/VP in JSON-LD format when the Did documents contains multiple verification methods #4682
nitin-vavdiya
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
There is a potential issue in the code when we verify VC/VP when the Did document contains multiple verification methods.
Let’s take an example, We have Did documents as below:
and we have VC/VP in the form of JSON-LD with the below proof:
Now as per current implementation in
DidMethodResolver.resolve()
, it always picks the first verification method instead of matching with the correctverificationMethod
from the proof, So in this case verification will fail.Ref:
In the code base we have two places where we are selecting a verification method from the Did document:
DidMethodResolver.resolve()
. → Always select the first verification method without matching proof idDidPublicKeyResolverImpl.selectVerificationMethod()
. → Select a verification method by matching kid in case VC/VP are in JWT format.Is there any specific reason why
DidMethodResolver.resolve()
always chooses the first verification method instead of matchingverificationMethod
from the proof?I understand that in the new IATP / DCP flow, VC/VP are in JWT format only
Beta Was this translation helpful? Give feedback.
All reactions