From 39a7d974ea2b341e84608f4136d60245e853bca5 Mon Sep 17 00:00:00 2001 From: markolazic01 <80317369+markolazic01@users.noreply.github.com> Date: Tue, 29 Oct 2024 11:23:40 +0100 Subject: [PATCH] Optimize the `NOT` gate --- circuits/gates.circom | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circuits/gates.circom b/circuits/gates.circom index 374353e9..3b836121 100644 --- a/circuits/gates.circom +++ b/circuits/gates.circom @@ -46,7 +46,7 @@ template NOT() { signal input in; signal output out; - out <== 1 + in - 2*in; + out <== 1 - in; } template NAND() {