-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Testing deriving credential without credential subject id #76
Conversation
Interesting, you can pull only that term if you don't need the whole did context:
|
Also old, but possibly related: mattrglobal/jsonld-signatures-bbs#91 |
This unit test should be modified to test just the LD Suite by itself... We should amend this test to directly cover the examples from the spec: noted here: https://w3c-ccg.github.io/ldp-bbs2020/#example-12 |
Jest mauls things in ways that bust wasm.... custm jest env is needed. |
@brianorwhatever I was able to figure this out... I suspect its caused by some odd behavior with the frames... See the examples, here: Specifically, this https://github.com/transmute-industries/verifiable-data/pull/77/files#diff-bc816a7381e5e69a57ca7889df4dc7ce2a41b470a6508e0201b59b326e2000f1R1 |
I was surprised this frame worked:
and this one did not...
|
@brianorwhatever can you see if my latest PR addresses what you needed, and close this one or use that PR to modify this one as you need. |
Yeah it looks like your new bbs suite tests are quite good. I like the cross testing with mattr lib as well. That's probably a better way to test the derived credential then against another json doc. I had begun work on creating a test case more similar to the examples in waci-pex but that repo would obviously be better for that work so we can do that there. I had been wondering if the subject not having a I'm interested in why the
form of the frame doesn't have the Closing this as you have solved the issue with this new suite.. Great work! |
This test suite shows that it is currently not possible to derive a credential with a credentialSubject using a blank node identifier. The frame drops the credentialSubject entirely in this case.. This should be possible with a JSON-LD frame as shown in this playground.
Related issues:
FYI I added the DID context so that I could use the
alsoKnownAs
attribute for the credential subject