Correctly pick middle hop to victimize
[rust-lightning] / lightning / Cargo.toml
index ae4f48fb4eeb65d90f9dccab9cbc9a66cb7d1358..2b0c2d16b7a3bf9f108157ad981fc1893dab6107 100644 (file)
@@ -32,7 +32,10 @@ _bench_unstable = []
 no-std = ["hashbrown", "bitcoin/no-std", "core2/alloc"]
 std = ["bitcoin/std"]
 
-default = ["std"]
+# Generates low-r bitcoin signatures, which saves 1 byte in 50% of the cases
+grind_signatures = []
+
+default = ["std", "grind_signatures"]
 
 [dependencies]
 bitcoin = { version = "0.27", default-features = false, features = ["secp-recovery"] }
@@ -41,14 +44,14 @@ secp256k1 = { version = "0.20.2", default-features = false, features = ["alloc"]
 
 hashbrown = { version = "0.11", optional = true }
 hex = { version = "0.4", optional = true }
-regex = { version = "0.1.80", optional = true }
+regex = { version = "0.2.11", optional = true }
 backtrace = { version = "0.3", optional = true }
 
 core2 = { version = "0.3.0", optional = true, default-features = false }
 
 [dev-dependencies]
 hex = "0.4"
-regex = "0.1.80"
+regex = "0.2.11"
 # TODO remove this once rust-bitcoin PR #637 is released
 secp256k1 = { version = "0.20.2", default-features = false, features = ["alloc"] }