spruceid / ssi

Core library for decentralized identity.
https://spruceid.dev
Apache License 2.0
193 stars 61 forks source link

Change default types of VCDM credential subjects. #570

Closed timothee-haudebourg closed 3 months ago

timothee-haudebourg commented 3 months ago

The current default type for VCDM credential subjects is json_syntax::Value. However the specs require the credential subject to be an object, and not an arbitrary value. The VCDM v2 spec even requires the object to be non empty.

To better fit the specs, I changed the default types for credential subjects: