Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

JsonWebSignature2020 required header fields seem to be missing #32

@matgnt

Description

@matgnt

I've been debugging some MIW credentials and the header of the jws seems to look like this:

{"alg": "EdDSA"}

According to:

https://w3c.github.io/vc-jws-2020/#json-web-signature-2020

the header should contain a bit more:
I used this one here to compare:
https://github.com/decentralized-identity/JWS-Test-Suite/blob/39547f5dc6da289a3f7e460fd6b782b9c9dc898b/data/presentations/presentation-1.json#L47

{"b64": false, "crit": ["b64"], "alg": "EdDSA"}

I think this is required for kind of backward compatibility, that implementations without support for detached sigs can recognize and fail because at least they understand the crit list of required fields.

--
Matthias Binzer

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions