eu-digital-identity-wallet / eudi-lib-jvm-openid4vci-kt

Implementation of OpenID for Verifiable Credential Issuance protocol (wallet's role) in Kotlin
Apache License 2.0
13 stars 5 forks source link

Check CWT Proof COSE_Key header item #248

Closed babisRoutis closed 3 weeks ago

babisRoutis commented 3 weeks ago

OpenId4VCI provides the following rule when creating a CWT proof

(string-valued) Label COSE_Key: OPTIONAL (byte string). COSE key material the new Credential shall be bound to. It MUST NOT be present if x5chain is present.

The content of the COSE_key entry is defined a byte string (CBOR data item).

Currently, library doesn't wrap the COSE key into such a byte string.