1
0
Fork 0

Add more examples
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Daniele Tricoli 2021-07-02 23:26:14 +02:00
parent 56e1b3c443
commit b9f7bae0bd
1 changed files with 63 additions and 0 deletions

View File

@ -21,6 +21,7 @@ Note that `` is my shell prompt, you don't have to write it.
In the following example `curl` and `zbarimg` are used, to install them on a
Debian based system use `sudo apt install curl zbar-tools`.
Example of a certificate with a vaccination entry:
```
curl -sL https://github.com/eu-digital-green-certificates/dgc-testdata/raw/main/IT/png/1.png | \
zbarimg --quiet --raw - | eudccdec
@ -51,3 +52,65 @@ Certificate {
t: [],
}
```
Example of a certificate with a recovery entry:
```
curl -sL https://github.com/eu-digital-green-certificates/dgc-testdata/raw/main/IT/png/2.png | \
zbarimg --quiet --raw - | eudccdec
Certificate {
ver: "1.0.0",
nam: Name {
fn_: "Di Caprio",
fnt: "DI<CAPRIO",
gn: "Marilù Teresa",
gnt: "MARILU<TERESA",
},
dob: "1977-06-16",
v: [],
r: [
RecoveryRecord {
tg: "840539006",
fr: "2021-05-02",
co: "IT",
is: "IT",
df: "2021-05-04",
du: "2021-10-31",
ci: "01ITA65E2BD36C9E4900B0273D2E7C92EEB9#1",
},
],
t: [],
}
```
Example of a certificate with a test entry:
```
curl -sL https://github.com/eu-digital-green-certificates/dgc-testdata/raw/main/IT/png/3.png | \
zbarimg --quiet --raw - | eudccdec
Certificate {
ver: "1.0.0",
nam: Name {
fn_: "Di Caprio",
fnt: "DI<CAPRIO",
gn: "Marilù Teresa",
gnt: "MARILU<TERESA",
},
dob: "1977-06-16",
v: [],
r: [],
t: [
TestRecord {
tg: "840539006",
tt: "LP6464-4",
nm: "Roche LightCycler qPCR",
ma: "1232",
sc: "2021-05-03T10:27:15Z",
dr: "2021-05-11T12:27:15Z",
tr: "260415000",
tc: "Policlinico Umberto I",
co: "IT",
is: "IT",
ci: "01IT053059F7676042D9BEE9F874C4901F9B#3",
},
],
}
```