Skip to content

Instantly share code, notes, and snippets.

@hydrogenbond007
Created February 24, 2023 18:14
Show Gist options
  • Save hydrogenbond007/5bfe9d109c0cfc7857d103040fdb60a4 to your computer and use it in GitHub Desktop.
Save hydrogenbond007/5bfe9d109c0cfc7857d103040fdb60a4 to your computer and use it in GitHub Desktop.
trying out zkrepl
pragma circom 2.1.2;
include "circomlib/poseidon.circom";
// include "https://github.com/0xPARC/circom-secp256k1/blob/master/circuits/bigint.circom";
Example () {
signal input a;
signal input b;
signal output c;
var unused = 4;
c <== a * b;
assert(a > 2);
component hash = Poseidon(2);
hash.inputs[0] <== a;
hash.inputs[1] <== b;
log("hash", hash.out);
}
component main { public [ a ] } = Example();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment