-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
82 lines (74 loc) · 2.1 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 = "jubjub-schnorr"
version = "0.5.1"
edition = "2021"
readme = "README.md"
repository = "https://github.com/dusk-network/jubjub-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 = "0.40"
dusk-bls12_381 = { version = "0.13", default-features = false }
dusk-jubjub = { version = "0.14", default-features = false, features = ["zeroize"] }
ff = { version = "0.13", default-features = false }
zeroize = { version = "1", default-features = false, features = ["derive"] }
rkyv = { version = "0.7", optional = true, default-features = false }
bytecheck = { version = "0.6", optional = true, default-features = false }
dusk-plonk = { version = "0.20", default-features = false, features = ["alloc"], optional = true }
serde = { version = "1.0", optional = true }
bs58 = { version = "0.4" , optional = true }
serde_json = { version = "1.0", optional = true }
[dev-dependencies]
rkyv = { version = "0.7", default-features = false, features = ["size_32"] }
criterion = "0.3"
rand = "0.8"
lazy_static = "1.4"
[[bench]]
name = "signature"
harness = false
required-features = ["zk"]
[[bench]]
name = "signature_double"
harness = false
required-features = [
"zk",
]
[[bench]]
name = "signature_var_generator"
harness = false
required-features = [
"zk",
]
[features]
alloc = []
zk = [
"dusk-plonk",
"dusk-poseidon/zk",
]
rkyv-impl = [
"dusk-jubjub/rkyv-impl",
"rkyv",
"bytecheck",
]
serde = [
"dep:serde",
"bs58",
"serde_json"
]
[[test]]
name = "gadgets"
path = "tests/gadgets.rs"
required-features = ["zk"]
# 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" ]