mirror of
https://github.com/vacp2p/zerokit.git
synced 2026-02-20 03:00:20 -05:00
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:
4
rln-cli/Cargo.lock
generated
4
rln-cli/Cargo.lock
generated
@@ -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
6
rln-wasm/Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user