idpass / idpass-lite

A library to create and interact with secure and biometrically-binding QR code identity cards
https://www.idpass.org/
Apache License 2.0
28 stars 5 forks source link

Python wrap #21

Open typelogic opened 2 years ago

typelogic commented 2 years ago

Issue

Most of these changes are the addition of python files to wrap libidpasslite.so in python. There is an addition of one new function idpass_lite_qrcodesvg in idpass.h header file. The outputting in SVG format directly in libidpasslite.so solves a lot of problems as the SVG is a universally portable, and visually scalable format. The python wrapping is also further malleable and currently it almost look the same in the Java JNI wrapping, having class definitions Reader and Card.

In summary, the overall flow is:

johnsmith.json --> pythonwrapping --> qrcode.svg

where, the johnsmith.json is a json file containing identity details of a person, and the output is a qrcode.svg SVG format.

To see it in action, checkout the repo then: