Closed Lisbet111111 closed 6 months ago
All fields in a Verifiable Credential must be defined in the context. Here's an (untested) example:
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
{
"hash": "https://example.com#hash"
}
]
}
Test code(refer to lib/java/test/com/spruceid/DIDKitTest.java) as below:
=============================================================
Expect to add additional field "hash" and some other custom fields into "credentialSubject", but met below exception, QA.1: could you have a look about how to fix this exception and issue credential successfully? and confirmed it's ok to issue credential after delete the "hash" field from "credentialSubject". QA.2: Above exception message can NOT be found in the code from "https://github.com/spruceid/ssi", why?
Thanks a lot!!