So basically you are talking about this:

https://www.w3.org/TR/vc-data-model/