-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
88 lines (77 loc) · 2.92 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
[package]
authors = ["Tristan Britt <tristan@warlock.xyz>",
"0xAlcibiades <alcibiades@warlock.xyz>"]
categories = ["cryptography", "mathematics"]
description = "Implementation of the BLS signature scheme using the alt-bn128 curve."
homepage = "https://github.com/warlock-labs/sylow"
keywords = ["alt-bn128", "zero-knowledge", "cryptography", "elliptic-curve", "pairing"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/warlock-labs/sylow.git"
name = "sylow"
version = "0.1.1"
edition = "2021"
rust-version = "1.83.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[example]]
name = "dkg"
path = "examples/dkg.rs"
[[example]]
name = "ecdh"
path = "examples/simple_ecdh.rs"
[[example]]
name = "threshold_signing"
path = "examples/threshold_signing.rs"
[[example]]
name = "sign_and_verify_multiple_messages"
path = "examples/verify_multiple_messages_same_signer.rs"
[[example]]
name = "simple_xor_ecies"
path = "examples/simple_xor_ecies.rs"
required-features = ["std"]
[dependencies]
# Explicitly `no_std` by construction: https://github.com/RustCrypto/crypto-bigint/blob/659ba4d7df97e47848d754b430446028af200bc3/src/lib.rs#L1
crypto-bigint = { version = "0.6.1", features = ["rand", "alloc"], default-features = false }
# Without the `std` feature explicitly enabled, we are `no_std`
num-traits = { version = "0.2.19", default-features = false }
# Without the `std` feature explicitly enabled, we are `no_std`
sha3 = { version = "0.11.0-pre.4", default-features = false }
# sha3 burries the `alloc` feature of digest when `std` is not enabled, but it's needed and `no_std` safe for alloc only
digest = { version = "0.11.0-pre.10", features = ["alloc"], default-features = false }
# Explicitly `no_std`: https://github.com/dalek-cryptography/subtle/blob/5457b5448b021d1da101ababbb854e6657233943/src/lib.rs#L11
subtle = { version = "2.6.1", default-features = false }
# Without the `std` feature explicitly enabled, we are `no_std`
tracing = { version = "0.1.40", default-features = false }
# Is not `no_std` compatible, so we feature flag it off
secrets = { version = "1.2.0", default-features = false, optional = true }
# The `race` module in once_cell provides no_std compatibility
once_cell = {version = "1.20.3", features = ["alloc", "parking_lot"], default-features = false}
[features]
default = ["std"]
std = ["secrets"]
[dev-dependencies]
confy = "0.6.1"
criterion = { version = "0.5", features = ["html_reports"] }
dudect-bencher = "0.6.0"
lazy_static = "1.5.0"
proptest = "1.5.0"
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
rand = "0.8.5"
rand_core = "0.6.4"
serde = { version = "1.0.209", features = ["derive"] }
serde_json = "1.0.127"
sha2 = "0.11.0-pre.4"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
paste = "1.0.15"
[[bench]]
name = "mod"
harness = false
[profile.bench]
debug = false
debug-assertions = false
incremental = false
lto = true
opt-level = 3
overflow-checks = false