Skip to content

Commit

Permalink
fix hash circom file
Browse files Browse the repository at this point in the history
  • Loading branch information
lonerapier committed Nov 12, 2024
1 parent 2dd1558 commit deabaf1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion circuits/utils/hash.circom
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit deabaf1

Please sign in to comment.