chore: update Cargo.lock for rln and use stable version of circom-witnesscalc wtns.graph.001 (#364)

Changes:
- Updated the rln version in the Cargo.lock file for the rln-cli and
rln-wasm modules to 1.0.0.
- Update the command to be compatible with the latest stable version of
circom-witnesscalc, and new graph.bin file.
This commit is contained in:
Vinh Trịnh
2026-01-15 16:08:48 +07:00
committed by GitHub
parent 145163402c
commit 832bdfe8d9
4 changed files with 10 additions and 8 deletions

4
rln-cli/Cargo.lock generated
View File

@@ -1045,7 +1045,7 @@ dependencies = [
[[package]]
name = "rln"
version = "0.9.0"
version = "1.0.0"
dependencies = [
"ark-bn254",
"ark-ec",
@@ -1635,7 +1635,7 @@ dependencies = [
[[package]]
name = "zerokit_utils"
version = "0.7.0"
version = "1.0.0"
dependencies = [
"ark-ff",
"num-bigint",

6
rln-wasm/Cargo.lock generated
View File

@@ -1028,7 +1028,7 @@ dependencies = [
[[package]]
name = "rln"
version = "0.9.0"
version = "1.0.0"
dependencies = [
"ark-bn254",
"ark-ec",
@@ -1060,7 +1060,7 @@ dependencies = [
[[package]]
name = "rln-wasm"
version = "0.3.0"
version = "1.0.0"
dependencies = [
"ark-groth16",
"ark-relations",
@@ -1781,7 +1781,7 @@ dependencies = [
[[package]]
name = "zerokit_utils"
version = "0.7.0"
version = "1.0.0"
dependencies = [
"ark-ff",
"num-bigint",

View File

@@ -235,14 +235,16 @@ As mentioned in step 1, we should use `rln.circom` file from `circom-rln` reposi
# Clone the circom-witnesscalc repository
git clone https://github.com/iden3/circom-witnesscalc
# Load the submodules
cd circom-witnesscalc && git submodule update --init --recursive
# Checkout the specific version and load submodules
cd circom-witnesscalc \
&& git checkout build-circuit/v0.1.1 \
&& git submodule update --init --recursive
# Build the circom-witnesscalc tool
cargo build
# Generate the witness calculation graph
cargo run --package circom_witnesscalc --bin build-circuit ../circom-rln/circuits/rln.circom <path_to_graph.bin>
cargo run -p build-circuit ../circom-rln/circuits/rln.circom <path_to_graph.bin>
```
The `rln` module comes with [pre-compiled](https://github.com/vacp2p/zerokit/tree/master/rln/resources/tree_depth_20)