-
Notifications
You must be signed in to change notification settings - Fork 9
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
Don't compact arrays #98
Conversation
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.
Does this break validation, signature checking, etc. on existing docs/VC/VP?
is that a no? |
Now I think of it, we need to check whether JSON-LD signature validation now fails. If existing VCs are unmarshalled/marshalled again using the |
The signature is computed over quads. The quads for an object or array of size 1 are the same. So "should" be ok. |
Tested JSON-LD signatures, feeding the signature checking an uncompacted array does not influence the outcome. |
940e6a2
to
bfb0bb6
Compare
This makes it hard to predict what the marshalled JSON object will look like, meaning things like creating presentation submissions will be harder. E.g., input descriptor mapping path can be indexed or not, depending on the number of VCs in the VP.
We also incorrectly applied the principal to serviceEndpoint, fixed that as well.
We should still support parsing compacted arrays, of course.