The DccLib is a TypeScript library that decodes and verifies the European Digital Covid Certificate (Eudcc) in modern browsers. Currently, the library has only been tested with Swiss certificates.
- decode the Eudcc
- dereference EU eHealthNetwork Digitial Covid Certificate value sets
- load DCC Signing Keys from JSON Web Token (JWT)
- verify x509 Certificate Trust Chain
- verify DCC
- generate a light Swiss Covid Certificate
- get kid from Dcc
- verify JWT signature
In the folder examples there are two sample projects on how to quickly get started in a JavaScript and a TypeScript environment.