TBD54566975/ssi-sdk

Support x5c header parameter in VC JWTs

andresuribe87 opened this issue · 0 comments

Description

A VC 1.1 can be represented as a JWT according to https://www.w3.org/TR/vc-data-model/#json-web-token

Such representation may contain the x5c JOSE header parameter as described in https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.6. The SDK should provide an option to the VerifyMethod in

func (v *Verifier) VerifyJWS(token string) error {

When verification fails, an error should be returned.

References