forked from w3f/schnorrkel
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Cargo.toml
132 lines (111 loc) · 3.28 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[package]
name = "schnorrkel"
version = "0.10.2"
authors = ["Jeff Burdges <[email protected]>"]
readme = "README.md"
license = "BSD-3-Clause"
repository = "https://github.com/w3f/schnorrkel"
documentation = "https://docs.rs/schnorrkel"
keywords = ["cryptography", "ed25519", "curve25519", "signature", "ECC"]
categories = ["cryptography", "no-std"]
description = "Schnorr VRF, signatures, etc. using the Ristretto group"
exclude = [ ".gitignore", "res/*" ]
edition = "2018"
# [badges]
# travis-ci = { repository = "dalek-cryptography/ed25519-dalek", branch = "master"}
[dependencies.aead]
version = "0.4.3"
default-features = false
optional = true
[dependencies.arrayref]
version = "0.3.6"
default-features = false
[dependencies.arrayvec]
# needs to match parity-scale-code which is "=0.7.0"
version = "0.7.0"
default-features = false
[dependencies.curve25519-dalek]
package = "curve25519-dalek-ng"
# git = "https://github.com/dalek-cryptography/curve25519-dalek"
version = "4.1.1"
default-features = false
# [dependencies.ed25519-dalek]
# version = "1.0.0"
# default-features = false
# optional = true
[dependencies.subtle]
package = "subtle-ng"
version = "2.5.0"
default-features = false
[dependencies.merlin]
version = "3.0.0"
# features = ["debug-transcript"]
default-features = false
# [dependencies.rand]
# version = "0.8.3"
# default-features = false
# optional = true
[dependencies.rand_core]
version = "0.6.2"
default-features = false
[dependencies.rand_chacha]
version = "0.3.1"
default-features = false
optional = true
[dependencies.serde_crate]
version = "1.0.130"
package = "serde"
default-features = false
optional = true
[dependencies.serde_bytes]
version = "0.11.5"
default-features = false
optional = true
[dependencies.cfg-if]
version = "1.0.0"
optional = true
[dependencies.sha2]
version = "0.9.8"
default-features = false
[dependencies.failure]
version = "0.1.8"
default-features = false
optional = true
[dependencies.zeroize]
version = "1.4.2"
default-features = false
features = ["zeroize_derive"]
[dev-dependencies]
rand = "0.8.4"
rand_chacha = "0.3.1"
# hex = "0.3.2"
hex-literal = "0.3.3"
sha2 = "0.9.8"
sha3 = "0.9.1"
bincode = "1.3.3"
criterion = "0.3.5"
serde_json = "1.0.68"
[[bench]]
name = "schnorr_benchmarks"
harness = false
[features]
default = ["std", "u64_backend", "getrandom"] # "rand"
preaudit_deprecated = []
nightly = ["curve25519-dalek/nightly", "rand/nightly"] # "zeroize/nightly"
alloc = ["curve25519-dalek/alloc", "rand_core/alloc", "serde_bytes/alloc"]
std = ["getrandom", "curve25519-dalek/std", "serde_bytes/std"] # "failure/std"
asm = ["sha2/asm"]
u64_backend = ["curve25519-dalek/u64_backend"]
u32_backend = ["curve25519-dalek/u32_backend"]
avx2_backend = ["curve25519-dalek/avx2_backend"]
serde = ["serde_crate", "serde_bytes", "cfg-if"]
# We cannot make getrandom a direct dependency because rand_core makes
# getrandom a feature name, which requires forwarding.
getrandom = ["rand_core/getrandom"]
# We thus cannot forward the wasm-bindgen feature of getrandom,
# but our consumers could depend upon getrandom and activate its
# wasm-bindgen feature themselve, which works due to cargo features
# being additive.
# wasm-bindgen = ["getrandom/wasm-bindgen"]
# See https://github.com/rust-lang/cargo/issues/9210
# and https://github.com/w3f/schnorrkel/issues/65#issuecomment-786923588