spruceid / ssi

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

Fully specializable credentials. #577

Closed timothee-haudebourg closed 3 months ago

timothee-haudebourg commented 3 months ago

The SpecializedJsonCredential type allows an application to define a new credential type by customizing the input type parameters. However for now only the credential subject type, context and type can be customized, whereas some applications may want to customize others components like the credential status type.

This PR adds all the credential components as parameters to the SpecializedJsonCredential type, with defaults matching the current type for each component (so it does not impact existing code).