Dependencies: base45-ansi-C, zlib, COSE-C, zbar, libpng.
About base45-ansi-C it raise many warning because it make an signed integer overflow (which is UB)
i don't care for now, but it's important to know i have opened a pull request for this.
pacman -S zbar zlib libpng
# then into the folder
mkdir -p build && cd build
cmake ..
make -j`nproc`
Or if you want use mold linker
mkdir -p build && cd build
cmake .. -DCMAKE_EXE_LINKER_FLAGS='-fuse-ld=mold' -DCMAKE_SHARED_LINKER_FLAGS='-fuse-ld=mold'
make -j`nproc`
- https://github.com/jojo2234/GreenPass-Experiments
- https://dencode.com/string/base45
- https://lorenzomillucci.it/posts/2021/06/2021-06-28-ubuntu-decodificare-greenpass-covid-19 (italian)
- https://dday.it/redazione/39870/cosa-ce-scritto-nel-qrcode-del-green-pass-come-decodificarlo-per-guardarci-dentro (Italian)
- https://github.com/eu-digital-green-certificates/dgc-testdata
- memory overlap warning into zbar library (try with another version)
valgrind --undef-value-errors=no --tool=memcheck --leak-check=yes --show-reachable=yes --num-callers=20 --track-fds=yes ./greenpass_qrcode_reader