-
Notifications
You must be signed in to change notification settings - Fork 197
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
RSA Proof wrong canonicalization #524
Comments
Please provide minimal runnable test code that shows the issue. There's not enough info here to know what may be going on. If I had to guess, one of the contexts you are using, or not using, has not defined "sec" and "xsd", so they are being used literally as IRI schemes, rather than being expanded. |
Hi @davidlehn. Here I have a reproducer. Start the application and see the console output log. https://github.com/fabrii/dc-playground Thanks! |
Is the "https://w3id.org/security/v1" context missing somewhere? I am doing the canonicalization also in a Java library, with the same contexts used in Javascript, and it works ok, without manually adding the security context. |
It's known that |
Hi @dlongley. Thanks for your response. I read the https://w3c-ccg.github.io/lds-rsa2018/ spec, and although I know is an unofficial draft, there is no warning of this. Note also that RsaSignature2018 is heavily used in https://www.w3.org/TR/vc-data-model/ Is there any known workaround? In Java, I am using https://github.com/danubetech/verifiable-credentials-java that uses https://github.com/WebOfTrustInfo/ld-signatures-java under the hoods, and they seem to not have the problem. I will ask @peacekeeper about this. Thanks |
Closing here to open in digitalbazaar/jsonld-signatures#174 |
Hi!
There seems to be an error when calculating the canonicalization of a RsaSignature2018 proof.
The result of the library is like this:
when it should be like this:
On the other side, the Ed25519Signature2020 is working ok:
The text was updated successfully, but these errors were encountered: