• This repository has been archived on 26/Jul/2023
  • Stars
    star
    165
  • Rank 228,906 (Top 5 %)
  • Language Makefile
  • License
    Apache License 2.0
  • Created over 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Schema for the ehn DCC payload

Digital Covid Certificate Schema

This repository contains a JSON schema for the EU Digital Covid Certificate.

Schema version: 1.3.3

Release date: 2023-05-24 (tentative, dependent on eHN Coordinated Actions meeting)

Introduction

The Digital Covid Certificate (DCC) JSON schema is provided as a mechanism for supporting the serialization and deserialization of the DCC payload, initially with focus on generation of a 2D barcode (QR Code).

The schema is intended to support different use cases that EU Member States require. The schema shall also support conformity to the EU legislation regarding what shall present in a certificate to ensure freedom of movement within EU Member States and also to allow interoperability with countries outside of the EU zone.

The schema in conjunction with business rules (which may also be specific to a Member State) shall ensure conformity to the EU legislation, whereby the burden of conformity lies with the business rules and the DCC JSON schema plays a supporting role in allowing the data to be serialized and deserialized in a flexible, yet structured, manner.

Schema files

The main schema file is:

With the definitions in:

For easy testing, they are combined in:

The rule labeled as $(MERGED_SCHEMA) in the Makefile makes this target by combining the 4 schema files (“schemata”) mentioned above into one schema file, and also reformatting and validating it. The merge.sh script does the same, but without reformatting and validating the resulting JSON. This can be useful for development purposes, but make sure to run make prior to committing.

Note: the first 4, non-combined schema files are always leading.

Value sets

See https://github.com/ehn-dcc-development/ehn-dcc-valuesets

Implementation Notes

A list of Frequently Asked Questions (FAQ) for implementors can be found here.

Prerequisites

The Makefile assumes that the following tools are installed, and are available on the shell's path:

The Makefile also relies on the ajv JSON Schema validator, which is installed by the install-ajv rule in the Makefile:

$ make install-ajv

Examples and test cases

The examples and the test cases can be validated with ajv by using the following commands.

To validate all of the examples:

make validate-examples

...and all of expected valid tests:

make validate-valid-tests

...and all of the expected invalid tests:

make validate-invalid-tests

Committing: Git hooks

This project uses Git hooks to validate the JSON files and the above test cases. To use the hooks, configure Git to use the hooks we provide, as follows:

git config core.hooksPath hooks

More Repositories

1

eu-dcc-hcert-spec

Electronic Health Certificates Specification
Makefile
363
star
2

ehn-sign-verify-python-trivial

Extremely minimal python implementation of the eHN-S protocol.
Python
76
star
3

ehn-sign-verify-javascript-trivial

Trivial eHN-Simple implementation in plain/simplified javascript
JavaScript
32
star
4

eu-dcc-business-rules

eHealth collaboration space business rules
JetBrains MPS
30
star
5

eu-dcc-valuesets

EU eHealthNetwork value sets as referenced by the EU Digital COVID Certificate (DCC) JSON Schema
TypeScript
27
star
6

hcert-kotlin

Kotlin multiplatform implementation of the HCERT/DCC specification
Kotlin
25
star
7

hcert-dotnet

C# /.NET port of hcert-java, Gunnar Ingi Friðriksson
C#
15
star
8

python-hcert

Python library for Electronic Health Certificate
Python
12
star
9

base45-java

Java implementation of base45 for Qr codes
Java
10
star
10

ValidationCore

Swift implementation of the validation chain
Swift
9
star
11

hcert-app-swift

Verification app in Swift for iOS
Swift
7
star
12

hcert-app-kotlin

Verification App in Android/Kotlin
Kotlin
7
star
13

x509-resign

Utility to resign an existing x509 certificate 'as is' -- keeping as much of the metadata and X509v3 extensions the same. But change the Authority/Subject key identifiers, swap out the public key and resign. Useful for making test sets based on 'real' certificates taken from the wild.
C
7
star
14

hcert-testdata

Electronic Health Certificates prototype
Python
6
star
15

base45-swift

Swift
6
star
16

base45-ansi-C

Base45 implementation in ANSI-C
C
6
star
17

base45-cs

Base45 encoding/decoding implemented in C# (.net 5)
C#
5
star
18

hcert-service-kotlin

Spring Boot Service in Kotlin
Kotlin
3
star
19

masterlist-cert-generator

Generate synthetic master-list; and JSON file with KIDs and raw coordinates.
Shell
3
star
20

hcert-java

Java version of the protocol
Java
3
star
21

eu-dcc-business-rules-analysis

Analysis of business rules uploaded to the EU DCC Gateway.
HTML
2
star
22

hcert-swift

HCert HC1 base45, Zlib, Cose, CBOR trivial 'library' with pem and json trust lists.
Swift
2
star
23

icao-ml-tools

Python
2
star
24

hcert-schema

Electronic Health Certificates Payload Schema
2
star
25

eu-dcc-site

JavaScript
1
star
26

hcert-trust

Electronic Health Certificates Trust Exchange
1
star
27

eu-dcc-overview

Overview of the DCC, start here :-)
1
star