forked from tari-project/triptych
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
57 lines (51 loc) · 2.27 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
[package]
name = "triptych"
version = "0.1.1"
authors = ["The Tari Project"]
edition = "2021"
description = "An experimental Rust implementation of the Triptych zero-knowledge proving system"
readme = "README.md"
license = "BSD-3-Clause"
categories = ["cryptography"]
documentation = "https://docs.rs/triptych"
repository = "https://github.com/tari-project/triptych"
[dependencies]
blake3 = { version = "1.5.1", default-features = false }
borsh = { version = "1.5.1", optional = true, default-features = false }
crypto-bigint = { version = "0.5.5", default-features = false }
curve25519-dalek = { version = "4.1.3", default-features = false, features = ["alloc", "digest", "rand_core", "zeroize"] }
itertools = { version = "0.13.0", default-features = false }
merlin = { version = "3.0.0", default-features = false }
rand_core = { version = "0.6.4", default-features = false }
serde = { version = "1.0.205", optional = true, default-features = false, features = ["derive"] }
snafu = { version = "0.8.4", default-features = false }
subtle = { version = "2.6.1", default-features = false }
zeroize = { version = "1.8.1", default-features = false }
[dev-dependencies]
criterion = { version = "0.5.1", default-features = false, features = ["cargo_bench_support"] }
rand_chacha = { version = "0.3.1", default-features = false }
[features]
default = ["rand", "std"]
# Adds proof serialization and deserialization via [`borsh`](https://crates.io/crates/borsh)
borsh = ["dep:borsh"]
# Adds variable-time prover functionality that should only be used if you absolutely know what you're doing
hazmat = []
# Adds additional prover functionality that supplies a cryptographically-secure random number generator
rand = ["rand_core/getrandom"]
# Adds proof serialization and deserialization via [`serde`](https://crates.io/crates/serde)
serde = ["dep:serde", "curve25519-dalek/serde", "zeroize/serde"]
# Adds corresponding dependency features
std = ["blake3/std", "borsh?/std", "itertools/use_std", "merlin/std", "rand_core/std", "serde?/std", "snafu/std", "subtle/std", "zeroize/std"]
[[bench]]
name = "triptych"
harness = false
required-features = ["hazmat"]
[[bench]]
name = "parallel"
harness = false
required-features = ["hazmat"]
[[example]]
name = "ringct"
crate-type = ["staticlib"]
required-features = ["rand"]
test = true