X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2FCargo.toml;h=2b0c2d16b7a3bf9f108157ad981fc1893dab6107;hb=30b6873d03e59fd2b329725f71e9df98eaba1c2c;hp=ae4f48fb4eeb65d90f9dccab9cbc9a66cb7d1358;hpb=797a648b6caa105e4c6edd9dba337eebb15bc97c;p=rust-lightning diff --git a/lightning/Cargo.toml b/lightning/Cargo.toml index ae4f48fb..2b0c2d16 100644 --- a/lightning/Cargo.toml +++ b/lightning/Cargo.toml @@ -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"] }