@@ -5,7 +5,13 @@ version = "0.2.8"
5
5
authors = [
" Weiliang Li <[email protected] >" ]
6
6
description = " Elliptic Curve Integrated Encryption Scheme for secp256k1"
7
7
edition = " 2021"
8
- keywords = [" secp256k1" , " x25519" , " crypto" , " ecc" , " ecies" , " cryptocurrency" ]
8
+ keywords = [ # at most five
9
+ " secp256k1" ,
10
+ " curve25519" ,
11
+ " crypto" ,
12
+ " ecies" ,
13
+ " cryptocurrency" ,
14
+ ]
9
15
license = " MIT"
10
16
readme = " README.md"
11
17
# links
@@ -36,7 +42,7 @@ hkdf = { version = "0.12.4", default-features = false }
36
42
sha2 = { version = " 0.10.8" , default-features = false }
37
43
38
44
# random number generator
39
- getrandom = { version = " = 0.2.15" , default-features = false }
45
+ getrandom = { version = " 0.2.15" , default-features = false }
40
46
rand_core = { version = " 0.6.4" , default-features = false , features = [
41
47
" getrandom" ,
42
48
] }
@@ -49,7 +55,7 @@ parking_lot = "0.12.3"
49
55
50
56
[target .'cfg(all(target_arch = "wasm32", target_os="unknown"))' .dependencies ]
51
57
# only for js (browser or node). if it's not js, like substrate, it won't build
52
- getrandom = { version = " = 0.2.15" , default-features = false , features = [" js" ] }
58
+ getrandom = { version = " 0.2.15" , default-features = false , features = [" js" ] }
53
59
once_cell = { version = " 1.21.1" , default-features = false , features = [" std" ] }
54
60
wasm-bindgen = { version = " 0.2.100" , default-features = false }
55
61
@@ -63,12 +69,13 @@ std = ["hkdf/std", "sha2/std", "once_cell/std"]
63
69
64
70
# curves
65
71
# no usage, TODO: make optional after 0.3.0
66
- secp256k1 = [] # ["libsecp256k1"]
67
- x25519 = [" x25519-dalek" ]
72
+ secp256k1 = [] # ["dep: libsecp256k1"]
73
+ x25519 = [" dep: x25519-dalek" ]
68
74
69
75
# aes
76
+ # TODO: rename to `aes-openssl` and `aes-rust`
70
77
openssl = [" dep:openssl" ]
71
- pure = [" aes-gcm/aes" , " typenum" ]
78
+ pure = [" aes-gcm/aes" , " typenum" ] # TODO: use dep syntax
72
79
# with feature "openssl" or "pure" (aes-256-gcm)
73
80
aes-12bytes-nonce = [] # default: 16 bytes without this
74
81
0 commit comments