forked from dusk-network/schnorr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
82 lines (72 loc) · 2.09 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
73
74
75
76
77
78
79
80
81
82
[package]
name = "dusk-schnorr"
version = "0.16.0"
edition = "2021"
readme = "README.md"
repository = "https://github.com/dusk-network/schnorr"
keywords = ["cryptography", "schnorr", "zk-snarks", "zero-knowledge", "signatures"]
categories =["algorithms", "cryptography", "mathematics"]
description = "A pure-Rust implementation of Schnorr signatures with a PLONK circuit module additionally"
exclude = [
".gitignore",
"Cargo.lock",
".github/"
]
license = "MPL-2.0"
[dependencies]
rand_core = { version = "0.6", default-features = false }
dusk-bytes = "0.1"
dusk-poseidon = { version ="0.31", default-features = false }
dusk-plonk = { version = "0.16", default-features = false }
dusk-bls12_381 = { version = "0.12", default-features = false }
dusk-jubjub = { version = "0.13", default-features = false }
rkyv = { version = "0.7", optional = true, default-features = false }
bytecheck = { version = "0.6", optional = true, default-features = false }
[dev-dependencies]
rkyv = { version = "0.7", default-features = false, features = ["size_32"] }
criterion = "0.3"
rand = "0.8"
lazy_static = "1.4"
ff = { version = "0.13", default-features = false }
[[bench]]
name = "signature"
harness = false
[[bench]]
name = "signature_double"
harness = false
required-features = ["double"]
[[bench]]
name = "signature_var_generator"
harness = false
required-features = ["var_generator"]
[features]
default = ["std"]
alloc = ["dusk-bls12_381/alloc", "dusk-plonk/alloc", "dusk-poseidon/alloc"]
std = [
"alloc",
"dusk-plonk/std",
"rand_core/std"
]
rkyv-impl = [
"dusk-jubjub/rkyv-impl",
"rkyv",
"bytecheck",
]
double = []
var_generator = []
[[test]]
name = "double"
path = "tests/schnorr_double.rs"
required-features = ["double"]
[[test]]
name = "var_generator"
path = "tests/schnorr_var_generator.rs"
required-features = ["var_generator"]
[[test]]
name = "gadgets"
path = "tests/gadgets.rs"
required-features = ["alloc"]
# we use the approach from https://github.com/victe/rust-latex-doc-minimal-example
# to render latex on docs.rs
[package.metadata.docs.rs]
rustdoc-args = [ "--html-in-header", "./katex-header.html" ]