mirror of
https://github.com/Rate-Limiting-Nullifier/circom-rln.git
synced 2026-01-09 15:37:55 -05:00
16 lines
400 B
Plaintext
16 lines
400 B
Plaintext
pragma circom 2.1.0;
|
|
|
|
include "../node_modules/circomlib/circuits/poseidon.circom";
|
|
|
|
template Withdraw() {
|
|
signal input identitySecret;
|
|
signal input address;
|
|
|
|
signal output identityCommitment <== Poseidon(1)([identitySecret]);
|
|
|
|
// Dummy constraint to prevent compiler optimizing it
|
|
signal addressSquared <== address * address;
|
|
}
|
|
|
|
component main { public [address] } = Withdraw();
|