-
Notifications
You must be signed in to change notification settings - Fork 38
/
Cargo.toml
62 lines (53 loc) · 1.42 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
[package]
name = "dusk-poseidon"
version = "0.40.0"
description = "Implementation of Poseidon hash algorithm over the Bls12-381 Scalar field."
categories = ["algorithms", "cryptography", "no-std", "wasm"]
keywords = ["cryptography", "zero-knowledge", "crypto"]
repository = "https://github.com/dusk-network/poseidon252"
edition = "2021"
license = "MPL-2.0"
[dependencies]
dusk-bls12_381 = { version = "0.13", default-features = false, features = ["zeroize"] }
dusk-jubjub = { version = "0.14", default-features = false }
dusk-plonk = { version = "0.20", default-features = false, features = ["alloc", "zeroize"], optional = true }
dusk-safe = "0.2"
[dev-dependencies]
criterion = "0.5"
rand = { version = "0.8", default-features = false, features = ["getrandom", "std_rng"] }
ff = { version = "0.13", default-features = false }
once_cell = "1"
dusk-bytes = "0.1"
[features]
zk = [
"dusk-plonk",
]
encryption = ["dusk-safe/encryption"]
[profile.dev]
opt-level = 3
debug = false
rpath = false
lto = false
debug-assertions = false
codegen-units = 16
panic = 'unwind'
incremental = false
overflow-checks = false
[profile.release]
debug = false
panic = 'abort'
lto = true
incremental = false
codegen-units = 1
[[bench]]
name = "hash"
harness = false
required-features = ["zk"]
[[bench]]
name = "encrypt"
harness = false
required-features = ["zk", "encryption"]
[[bench]]
name = "decrypt"
harness = false
required-features = ["zk", "encryption"]