Re: JSON-LD to QRcode

These example VCs[1] are small enough they can be QR-encoded as text.

Here is a way to do this on the command line - using jq[2,3] to compact the JSON, and qrencode[4,5] to convert to QR code image:
  jq -c . plugfest-1-ex-1.json | qrencode -o plugfest-1-ex-1.png
  jq -c . plugfest-1-ex-2.json | qrencode -o plugfest-1-ex-2.png

[1] https://github.com/w3c-ccg/vc-ed/tree/56ded17aeee634e501fefb3de39edd1015f54d46/plugfest-1-2022
[2] https://stedolan.github.io/jq/
[3] https://github.com/stedolan/jq
[4] https://fukuchi.org/works/qrencode/
[5] https://github.com/fukuchi/libqrencode

Regards,
Charles

On Thu, 23 Jun 2022 12:58:55 -0400
Seth McGaugh <seth@thrivacy.io> wrote:

> Has anyone had success in converting the V3 JSON-LD into a QR code
> that isn't too complex for a camera to read?
> 
> Is there a GitHub repo you're willing to share?
> 
> Best,
> 
> Seth

Received on Tuesday, 28 June 2022 20:25:09 UTC