From bf2aa16a71c954fc5dafff178cd9ad4e9e5014b3 Mon Sep 17 00:00:00 2001 From: tyshko-rostyslav <122977916+tyshko-rostyslav@users.noreply.github.com> Date: Tue, 7 Mar 2023 04:41:08 +0100 Subject: [PATCH] chore(rln): ensure all dependencies have fixed revision (#127) --- rln/Cargo.toml | 35 +++++++++++++++++------------------ utils/Cargo.toml | 8 ++++---- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/rln/Cargo.toml b/rln/Cargo.toml index 40351bc..9036832 100644 --- a/rln/Cargo.toml +++ b/rln/Cargo.toml @@ -13,39 +13,38 @@ doctest = false [dependencies] # ZKP Generation -ark-ec = { version = "0.3.0", default-features = false } -ark-ff = { version = "0.3.0", default-features = false, features = [ "asm"] } -ark-std = { version = "0.3.0", default-features = false } -ark-bn254 = { version = "0.3.0" } +ark-ec = { version = "=0.3.0", default-features = false } +ark-ff = { version = "=0.3.0", default-features = false, features = [ "asm"] } +ark-std = { version = "=0.3.0", default-features = false } +ark-bn254 = { version = "=0.3.0" } ark-groth16 = { git = "https://github.com/arkworks-rs/groth16", rev = "765817f", default-features = false } -ark-relations = { version = "0.3.0", default-features = false, features = [ "std" ] } -ark-serialize = { version = "0.3.0", default-features = false } -ark-circom = { git = "https://github.com/vacp2p/ark-circom", branch = "wasm", default-features = false, features = ["circom-2"] } -#ark-circom = { git = "https://github.com/vacp2p/ark-circom", branch = "no-ethers-core", features = ["circom-2"] } +ark-relations = { version = "=0.3.0", default-features = false, features = [ "std" ] } +ark-serialize = { version = "=0.3.0", default-features = false } +ark-circom = { git = "https://github.com/vacp2p/ark-circom", rev = "0e587145cb05e08b2d1a01509eb578670088eb2f", default-features = false, features = ["circom-2"] } # WASM wasmer = { version = "2.3.0", default-features = false } # error handling -color-eyre = "0.6.1" -thiserror = "1.0.0" +color-eyre = "=0.6.2" +thiserror = "=1.0.38" # utilities -cfg-if = "1.0" -num-bigint = { version = "0.4.3", default-features = false, features = ["rand"] } +cfg-if = "=1.0" +num-bigint = { version = "=0.4.3", default-features = false, features = ["rand"] } num-traits = "0.2.11" once_cell = "1.14.0" -rand = "0.8" -rand_chacha = "0.3.1" -tiny-keccak = { version = "2.0.2", features = ["keccak"] } +rand = "=0.8.5" +rand_chacha = "=0.3.1" +tiny-keccak = { version = "=2.0.2", features = ["keccak"] } utils = { path = "../utils/", default-features = false } -pmtree = { git = "https://github.com/Rate-Limiting-Nullifier/pmtree", optional = true} +pmtree = { git = "https://github.com/Rate-Limiting-Nullifier/pmtree", rev = "f6d1a1fecad72cd39e6808e78085091d541dc882", optional = true} # serialization -serde_json = "1.0.48" +serde_json = "=1.0.93" [dev-dependencies] -sled = "0.34.7" +sled = "=0.34.7" [features] default = ["parallel", "wasmer/sys-default"] diff --git a/utils/Cargo.toml b/utils/Cargo.toml index 7e746ed..17c3442 100644 --- a/utils/Cargo.toml +++ b/utils/Cargo.toml @@ -5,12 +5,12 @@ edition = "2021" license = "MIT OR Apache-2.0" [dependencies] -ark-ff = { version = "0.3.0", default-features = false, features = ["asm"] } -num-bigint = { version = "0.4.3", default-features = false, features = ["rand"] } -color-eyre = "0.6.1" +ark-ff = { version = "=0.3.0", default-features = false, features = ["asm"] } +num-bigint = { version = "=0.4.3", default-features = false, features = ["rand"] } +color-eyre = "=0.6.2" [dev-dependencies] -ark-bn254 = { version = "0.3.0" } +ark-bn254 = "=0.3.0" num-traits = "0.2.11" hex-literal = "0.3.4" tiny-keccak = { version = "2.0.2", features = ["keccak"] }