stapelberg / coronaqr

Go decoder and verifier for EU Digital COVID Certificate (EUDCC) QR code data
Apache License 2.0
169 stars 15 forks source link

Output in machine readable format #9

Closed WindowsNT closed 3 years ago

WindowsNT commented 3 years ago

Is it possible to output in XML or JSON so it can be easily parsed?

Very nice tool.

stapelberg commented 3 years ago

No, the machine-readable interface is the Go API, see https://pkg.go.dev/github.com/stapelberg/coronaqr

If you need XML, JSON or something else entirely (from another language than Go), write a tiny Go program which uses the API and outputs what you need :)

The tricky bit is ensuring the verified data remains safe, i.e. avoiding unencrypted JSON being passed between machines or similar. I don’t want to come up with convoluted schemes for that, so I’m leaving any interface except for the Go API to the users who need them.