-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PEX: ldp_vp submission with 1 VC should not index credential property #2624
Conversation
The VC v1.1 spec is not clear if this can be an object, but all examples are an array. The v2 spec states that it MUST be an array if the field is present. |
ahh... I think the |
It's not a bug per se, since it's allowed. But it's unconvenient for sure. What makes it complex is that we make the submission before we make the verifiable presentation. So it would be more practical to always marshal to an array, and then we can always use an indexer. Agree @woutslakhorst ? |
Making it always an array (as specified by v2.0) wouldn't hurt v1.1 so sounds great |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this still relevant given nuts-foundation/go-did#98?
PR should update to latest go-did and make changes if needed. |
PR relevant again. Can be reviewed. |
go-did marshals
verifiableCredential
to a JSON object instead of an array in that case.