In the current implementation, @context is only normalized for presentations and not for credentials. This PR unifies normalization so that strings are also supported.
Having said that, according to the spec @context must be an ordered set: https://w3c.github.io/vc-data-model/#contexts. Not sure if it's a good idea to support this any. Whatever is done, the behavior should be the same for presentations and credentials :-D
In the current implementation,
@context
is only normalized for presentations and not for credentials. This PR unifies normalization so that strings are also supported.Having said that, according to the spec
@context
must be an ordered set: https://w3c.github.io/vc-data-model/#contexts. Not sure if it's a good idea to support this any. Whatever is done, the behavior should be the same for presentations and credentials :-D