2022-03-11 09:55:46 +00:00
|
|
|
[package]
|
|
|
|
name = "rln"
|
2024-04-08 22:26:57 +00:00
|
|
|
version = "0.4.3"
|
2022-03-11 09:55:46 +00:00
|
|
|
edition = "2021"
|
2023-02-27 06:17:55 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2023-07-28 10:25:34 +00:00
|
|
|
description = "APIs to manage, compute and verify zkSNARK proofs and RLN primitives"
|
2023-08-05 05:12:21 +00:00
|
|
|
documentation = "https://github.com/vacp2p/zerokit"
|
|
|
|
homepage = "https://vac.dev"
|
|
|
|
repository = "https://github.com/vacp2p/zerokit"
|
2022-03-11 09:55:46 +00:00
|
|
|
|
2022-06-29 16:56:03 +00:00
|
|
|
[lib]
|
2023-03-07 12:45:06 +00:00
|
|
|
crate-type = ["rlib", "staticlib"]
|
2023-05-29 14:14:00 +00:00
|
|
|
bench = false
|
2022-06-29 16:56:03 +00:00
|
|
|
|
2022-11-25 09:54:17 +00:00
|
|
|
# This flag disable cargo doctests, i.e. testing example code-snippets in documentation
|
|
|
|
doctest = false
|
|
|
|
|
2022-09-20 12:22:46 +00:00
|
|
|
|
2022-03-11 09:55:46 +00:00
|
|
|
[dependencies]
|
|
|
|
# ZKP Generation
|
2023-03-22 06:01:24 +00:00
|
|
|
ark-ec = { version = "=0.4.1", default-features = false }
|
2024-04-08 22:26:57 +00:00
|
|
|
ark-ff = { version = "=0.4.1", default-features = false, features = ["asm"] }
|
2023-03-22 06:01:24 +00:00
|
|
|
ark-std = { version = "=0.4.0", default-features = false }
|
|
|
|
ark-bn254 = { version = "=0.4.0" }
|
2024-04-08 22:26:57 +00:00
|
|
|
ark-groth16 = { version = "=0.4.0", features = [
|
|
|
|
"parallel",
|
|
|
|
], default-features = false }
|
|
|
|
ark-relations = { version = "=0.4.0", default-features = false, features = [
|
|
|
|
"std",
|
|
|
|
] }
|
2023-03-22 06:01:24 +00:00
|
|
|
ark-serialize = { version = "=0.4.1", default-features = false }
|
2024-04-08 22:26:57 +00:00
|
|
|
ark-circom = { version = "=0.1.0", default-features = false, features = [
|
|
|
|
"circom-2",
|
|
|
|
] }
|
2024-05-06 11:09:22 +00:00
|
|
|
ark-zkey = { path = "../mopro/ark-zkey", optional = true, default-features = false }
|
2022-09-20 12:22:46 +00:00
|
|
|
|
|
|
|
# WASM
|
2023-07-28 10:25:34 +00:00
|
|
|
wasmer = { version = "=2.3.0", default-features = false }
|
2022-03-11 09:55:46 +00:00
|
|
|
|
|
|
|
# error handling
|
2023-03-07 03:41:08 +00:00
|
|
|
color-eyre = "=0.6.2"
|
2023-07-28 10:25:34 +00:00
|
|
|
thiserror = "=1.0.39"
|
2022-03-11 09:55:46 +00:00
|
|
|
|
2022-09-14 09:48:48 +00:00
|
|
|
# utilities
|
2023-03-07 03:41:08 +00:00
|
|
|
cfg-if = "=1.0"
|
2024-04-08 22:26:57 +00:00
|
|
|
num-bigint = { version = "=0.4.3", default-features = false, features = [
|
|
|
|
"rand",
|
|
|
|
] }
|
2023-07-28 10:25:34 +00:00
|
|
|
num-traits = "=0.2.15"
|
|
|
|
once_cell = "=1.17.1"
|
2023-03-07 03:41:08 +00:00
|
|
|
rand = "=0.8.5"
|
|
|
|
rand_chacha = "=0.3.1"
|
|
|
|
tiny-keccak = { version = "=2.0.2", features = ["keccak"] }
|
2024-04-08 22:26:57 +00:00
|
|
|
utils = { package = "zerokit_utils", version = "=0.4.3", path = "../utils/", default-features = false }
|
2023-10-03 15:58:21 +00:00
|
|
|
|
2022-03-18 06:23:44 +00:00
|
|
|
|
2022-09-14 09:48:48 +00:00
|
|
|
# serialization
|
2023-07-28 10:25:34 +00:00
|
|
|
serde_json = "=1.0.96"
|
|
|
|
serde = { version = "=1.0.163", features = ["derive"] }
|
2023-03-07 12:45:06 +00:00
|
|
|
|
|
|
|
include_dir = "=0.7.3"
|
2022-09-15 08:32:45 +00:00
|
|
|
|
2022-12-13 19:00:27 +00:00
|
|
|
[dev-dependencies]
|
2023-03-07 03:41:08 +00:00
|
|
|
sled = "=0.34.7"
|
2023-07-28 10:25:34 +00:00
|
|
|
criterion = { version = "=0.4.0", features = ["html_reports"] }
|
2022-12-13 19:00:27 +00:00
|
|
|
|
2022-09-15 08:32:45 +00:00
|
|
|
[features]
|
2023-05-02 08:01:26 +00:00
|
|
|
default = ["parallel", "wasmer/sys-default", "pmtree-ft"]
|
2024-04-08 22:26:57 +00:00
|
|
|
parallel = [
|
|
|
|
"ark-ec/parallel",
|
|
|
|
"ark-ff/parallel",
|
|
|
|
"ark-std/parallel",
|
|
|
|
"ark-groth16/parallel",
|
|
|
|
"utils/parallel",
|
|
|
|
]
|
2022-09-20 12:22:46 +00:00
|
|
|
wasm = ["wasmer/js", "wasmer/std"]
|
2022-12-13 19:00:27 +00:00
|
|
|
fullmerkletree = ["default"]
|
2024-05-06 11:09:22 +00:00
|
|
|
arkzkey = ["ark-zkey"]
|
2022-12-13 19:00:27 +00:00
|
|
|
|
|
|
|
# Note: pmtree feature is still experimental
|
2023-05-02 08:01:26 +00:00
|
|
|
pmtree-ft = ["utils/pmtree-ft"]
|
2023-05-29 13:21:36 +00:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "pmtree_benchmark"
|
|
|
|
harness = false
|
2024-05-06 11:09:22 +00:00
|
|
|
|
|
|
|
[[bench]]
|
|
|
|
name = "circuit_loading_benchmark"
|
|
|
|
harness = false
|