From c8568a9dc80de6dd537f79c25756c363d7865c9f Mon Sep 17 00:00:00 2001 From: Sambhav Dusad Date: Tue, 12 Nov 2024 21:15:53 +0530 Subject: [PATCH] fix hash circom file (#39) --- Makefile | 2 ++ circuits/utils/hash.circom | 3 ++- package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9745476..08acee0 100644 --- a/Makefile +++ b/Makefile @@ -14,10 +14,12 @@ all: build # Build target .PHONY: build build: + @set -e; @for circuit in $(CIRCOM_FILES); do \ echo "Processing $${circuit}..."; \ circom "$${circuit}" --r1cs --wasm -o "$$(dirname $${circuit})/artifacts" -l node_modules; \ build-circuit "$${circuit}" "$$(dirname $${circuit})/artifacts/$$(basename $${circuit} .circom).bin" -l node_modules; \ + echo "====================xxxxxxxxxx===================="; \ done # Clean target diff --git a/circuits/utils/hash.circom b/circuits/utils/hash.circom index 8ff969d..2c62830 100644 --- a/circuits/utils/hash.circom +++ b/circuits/utils/hash.circom @@ -67,7 +67,8 @@ template PoseidonChainer() { } template DataHasher(DATA_BYTES) { - assert(DATA_BYTES % 16 == 0); + // TODO: add this assert back after witnesscalc supports + // assert(DATA_BYTES % 16 == 0); signal input in[DATA_BYTES]; signal output out; diff --git a/package.json b/package.json index f37dbe5..0e493ef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "web-prover-circuits", "description": "ZK Circuits for WebProofs", - "version": "0.4.0", + "version": "0.4.1", "license": "Apache-2.0", "repository": { "type": "git",