This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma circom 2.1.0; | |
include "node_modules/circomlib/circuits/bitify.circom"; | |
template Example () { | |
signal input a; | |
log(a); | |
// prevent overflow of leafSum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// el is the HTML DOM element into which the generated QR Code will be added | |
// data is the auth reponse (or any information) that has to be rendered inside the QR Code | |
function makeQr(el, data) { | |
return new QRCode(el, { | |
text: JSON.stringify(data), | |
width: 300, | |
height: 300, | |
colorDark: "#000", | |
colorLight: "#e9e9e9", |
NewerOlder