Created
February 24, 2023 18:14
-
-
Save hydrogenbond007/5bfe9d109c0cfc7857d103040fdb60a4 to your computer and use it in GitHub Desktop.
trying out zkrepl
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.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