-
Notifications
You must be signed in to change notification settings - Fork 41
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
Verification fails for BbsBlsSignatureProof2020
for jsonld-signatures >8.0.0
#143
Comments
Experiencing the same at mattrglobal/jsonld-signatures-bbs#139 and I do think I have pinned it down to a line. But I dont know what the solution shall be. Awaitng reply from the creators as well |
I am using version 7.0.0 as a workaround @vongohren. Only fails with version >8.0.0 |
@kuzdogan cool, thanks! I have use the one bundled with this lib, which currently is only 5, but works for now. I will look to test out 7.0.0 |
I took a look at this today... The issue is caused by changes in the way suites assume contexts... recently, this package was updated to care less about sec-v2... "sec:"... those changes appear to have had some kind of sad interaction with inheritance model in the mattr library. All that In our fork of this library, we were able to resolve this issue by just not using it...
This is very hacky... ideally, we would update the suite and account for mattrglobal/jsonld-signatures-bbs#142 which is related. |
@OR13 nice find, so the process for this would be to solve that attached issue? |
yes, I think so... IMO the mattr suite should be updated, since it now has several breaking issues with the latest version of jsonld-signatures that assumes new suite methods, such as |
I'm using @mattrglobal/jsonld-signatures-bbs for issuing credentials and creating a zero-knowledge proof for a selectively disclosed credential. However the
verify
method ofjsonld-signatures
fails when the version ofjsonld-signatures
is >8.0.0.I've shared an example code in this gist with the keypair and the used context hardcoded inside the document. To reproduce
npm init
a new project, paste the code and install the packages vianpm install
. This should install the latestjsonld-signatures
version which at the time of writing is9.0.2
. Runing the file withnode index.js
throws the following error:However when revered to an older version of
jsonld-signatures
the document gets successfully verified.and running
node index.js
outputs:OS: Ubuntu 20.04.2 LTS
node version: 14.17.0
npm version: 7.13.0
The text was updated successfully, but these errors were encountered: