From c0aae37e67ebbfbae368dad8c803b1cbee212e19 Mon Sep 17 00:00:00 2001 From: cedoor Date: Mon, 18 Dec 2023 13:49:32 +0100 Subject: [PATCH] refactor(circuits): update variable name --- packages/circuits/semaphore.circom | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/circuits/semaphore.circom b/packages/circuits/semaphore.circom index b0637268f..5db3b589e 100644 --- a/packages/circuits/semaphore.circom +++ b/packages/circuits/semaphore.circom @@ -15,9 +15,9 @@ template Semaphore(MAX_DEPTH) { var Ax, Ay; (Ax, Ay) = BabyPbk()(privateKey); - var treeLeaf = Poseidon(2)([Ax, Ay]); + var identityCommitment = Poseidon(2)([Ax, Ay]); - treeRoot <== BinaryMerkleRoot(MAX_DEPTH)(treeLeaf, treeDepth, treeIndices, treeSiblings); + treeRoot <== BinaryMerkleRoot(MAX_DEPTH)(identityCommitment, treeDepth, treeIndices, treeSiblings); nullifier <== Poseidon(2)([scope, privateKey]); // Dummy constraint to prevent compiler from optimizing it.