-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
72 lines (64 loc) · 2.49 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[workspace]
members = ["contracts/testing-contract", "plonky2-reputation"]
exclude = ["contracts/tests"]
resolver = "2"
[profile.release]
codegen-units = 1
# Tell `rustc` to optimize for small code size.
opt-level = "z"
lto = true
debug = false
panic = "abort"
# Opt into extra safety checks on arithmetic operations https://stackoverflow.com/a/64136471/249801
overflow-checks = true
[workspace.package]
authors = ["akorchyn"]
edition = "2021"
version = "0.1.0"
repository = "https://github.com/akorchyn/zk-near"
[workspace.dependencies]
# Near ecosystem
near-sdk = "5.0.0"
# General
tokio = { version = "1.12.0", features = ["full"] }
anyhow = "1.0"
schemars = { version = "0.8.11" }
thiserror = { version = "1.0" }
# crypto
secp256k1 = "0.28"
aes-siv = "0.7.0"
bs58 = "0.5"
ahash = { version = "0.8.7", default-features = false, features = [
"compile-time-rng",
] } # NOTE: Be sure to keep this version the same as the dependency in `hashbrown`.
hashbrown = { version = "0.14.3", default-features = false, features = [
"ahash",
"serde",
] } # NOTE: When upgrading, see `ahash` dependency.
log = { version = "0.4.14", default-features = false }
num = { version = "0.4", default-features = false, features = ["rand"] }
static_assertions = { version = "1.1.0", default-features = false }
unroll = { version = "0.1.5", default-features = false }
itertools = { version = "0.12.0", default-features = false }
serde = { version = "1.0", default-features = false, features = [
"derive",
"rc",
] }
serde_json = "1.0"
hex = "0.4"
hex-literal = "0.4"
clap = { version = "4.0.29", features = ["derive"] }
base64 = "0.22"
env_logger = "0.11"
ed25519-dalek = "1.0"
rand = { version = "0.7", default-features = false }
plonky2 = { git = "https://github.com/zpoken/plonky2", rev = "a5e436079004cc4870313036324267b385089ee6" }
plonky2_u32 = { git = "https://github.com/zpoken/plonky2", rev = "a5e436079004cc4870313036324267b385089ee6" }
plonky2_ecdsa = { git = "https://github.com/zpoken/plonky2", rev = "a5e436079004cc4870313036324267b385089ee6" }
plonky2_sha512_u32 = { git = "https://github.com/ZpokenWeb3/zk-light-client-implementation" }
plonky2_ed25519 = { git = "https://github.com/ZpokenWeb3/zk-light-client-implementation" }
plonky2_bn128 = { git = "https://github.com/ZpokenWeb3/zk-light-client-implementation" }
# ZK
near_mimc = { path = "contract-libraries/near_mimc" }
near_groth16_verifier = { path = "contract-libraries/groth_verifier/near_groth16_verifier" }
near-bigint = { path = "contract-libraries/near_bigint" }