-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
71 lines (57 loc) · 2.22 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
[package]
name = "hd-wallet"
version = "0.6.0"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "HD wallets derivation"
repository = "https://github.com/LFDT-Lockness/hd-wallet"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
generic-ec = { version = "0.4", default-features = false }
hmac = { version = "0.12", default-features = false, optional = true }
sha2 = { version = "0.10", default-features = false, optional = true }
subtle = { version = "2", default-features = false, optional = true }
generic-array = { version = "0.14", default-features = false, optional = true }
serde = { version = "1", default-features = false, features = ["derive"], optional = true }
[dev-dependencies]
hex = "0.4"
hex-literal = "0.4"
rand = "0.8"
rug = "1.26"
generic-ec = { version = "0.4", default-features = false, features = ["curve-stark"] }
[features]
default = []
# Adds support of secp256k1 curve to slip10 derivation
curve-secp256k1 = ["generic-ec/curve-secp256k1", "slip10"]
# Adds support of secp256r1 curve to slip10 derivation
curve-secp256r1 = ["generic-ec/curve-secp256r1", "slip10"]
# Enables Edwards-specific derivation
curve-ed25519 = ["generic-ec/curve-ed25519", "edwards"]
# Enables Stark-specific derivation
curve-stark = ["generic-ec/curve-stark", "stark"]
all-curves = ["curve-secp256k1", "curve-secp256r1", "curve-ed25519", "curve-stark"]
serde = ["dep:serde", "generic-ec/serde"]
# Enables Slip10 derivation
slip10 = ["subtle", "hmac", "sha2", "generic-array"]
# Enables Edwards-specific derivation
edwards = ["curve-ed25519", "hmac", "sha2", "generic-array"]
# Enables Stark-specific derivation
stark = ["curve-stark", "hmac", "sha2", "generic-array"]
[[test]]
name = "slip10_test_vector"
required-features = ["slip10", "curve-secp256k1", "curve-secp256r1"]
[[test]]
name = "edwards_test_vector"
required-features = ["edwards"]
[[test]]
name = "stark_test_vector"
required-features = ["stark"]
[[example]]
name = "curves_analysis"
required-features = ["all-curves"]
[[example]]
name = "generate_test_vectors"
required-features = ["all-curves"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs", "--html-in-header", "katex-header.html"]