Open anvabr opened 1 year ago
Hi, i'm struggling to follow this test case, it appears the input document you have signed is malformed e.g some of the terms in the document are undefined (no term expansion possible) and there is a @context
entry inside the credentialSubject?. The link to the steps appear to just reference this repo also?
The link to the steps appear to just reference this repo also?
Apologies for this @tplooker, now corrected. There is an end-to-end runnable testcase in this repo that demonstrates the issue. For context, the original set of issues we raised with the transmute libraries team are here:
The test demonstrating these are here. As a point of interest, please see in the comment in the 230 by @ipbyrne referring to https://github.com/w3c-ccg/ldp-bbs2020/issues/62 and stating they are planning to deprecate support for BBS.
there is a
@context
entry inside the credentialSubject
We have tried various options here, moving context from the credentialSubject in to the VC context resolved the problem with name mapping, but the collision of names still seems to occur because of their '@id' in the '@context'
@anvabr, looking at your test cases, the field you are checking for in the credentialSubject field1
is not defined in the context for the document OR the reveal document which is why it is not deriving the proof correctly or setting this fields value to NULL.
@tplooker thank you for your comments, we are experimenting with the formatting and may have found a work around.
Problem description
Please see the test code here.
It appears that BBS
deriveProof
changes credentialSubject in the vc-document substituting the source field for their @id from context? The output VC looks like this:Steps
Please see the test here