Skip to content

Takes a "Mobility Pass" (Pase de Movilidad) approved by the Chilean government and generates a pass from it.

License

Notifications You must be signed in to change notification settings

matmartinez/covid-wallet-pass-chile

Repository files navigation

Source for covid-pass.matias.ma

This repository contains the source code for this website. It takes a "Mobility Pass" (Pase de Movilidad) issued by the Chilean government and generates an Apple Wallet pass from it.

How this is put together

The pass itself is completely built inside the browser. No user information is ever sent or stored on a server. How? Sweet open source projects:

  1. Text is extracted using PDFJS.
  2. QR codes are detected with jsQR.
  3. Parsed into pass data with some terrible JS.
  4. Signature is returned from a serverless function by sending over hashes of pass data (more on that below).
  5. Packaging with JSZip.

Signing API

See the /api/signature folder for reference on how the serverless function provides a signature when receiving hashes. It's Node and Forge. This is deployed on Vercel.

More acknowledgements

Some manifest signing code was borrowed from pass-js.

About

Takes a "Mobility Pass" (Pase de Movilidad) approved by the Chilean government and generates a pass from it.

Resources

License

Stars

Watchers

Forks