Skip to content

Error when creating a custom verifiable credential (Context parameter) #34

Discussion options

You must be logged in to vote

Hi @soufianeAmaador
As it seems the parser tries to deserialize a VerifiableAttestation, not your custom credential. Make sure the credential contains the correct type property, such that the parser can find the correct class for deserialization.

Having said that, I wonder if you're using the vclib directly in your project, or whether you use the ssikit.
Because, the ssikit has recently been refactored with regards the credential serialization, deserialization and template management. It no longer depends on vclib at all and allows you to import any credential as template dynamically from a JSON sample of that credential.
You may want to look into this instead.

Hope I could help, best reg…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by taminobaumann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants