Skip to content

Commit

Permalink
Update secp256k1-sys to add schnorr/extra-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibo-lg committed Sep 15, 2020
1 parent a20447c commit c469295
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 48 deletions.
2 changes: 1 addition & 1 deletion secp256k1-sys/Cargo.toml
Expand Up @@ -12,7 +12,7 @@ description = "FFI for Pieter Wuille's `libsecp256k1` library."
keywords = [ "secp256k1", "libsecp256k1", "ffi" ]
readme = "README.md"
build = "build.rs"
links = "rustsecp256k1_v0_2_0"
links = "rustsecp256k1_v0_2_1"

# Should make docs.rs show all functions, even those behind non-default features
[package.metadata.docs.rs]
Expand Down
2 changes: 2 additions & 0 deletions secp256k1-sys/build.rs
Expand Up @@ -39,6 +39,8 @@ fn main() {
.flag_if_supported("-Wno-unused-function") // some ecmult stuff is defined but not used upstream
.define("SECP256K1_BUILD", Some("1"))
.define("ENABLE_MODULE_ECDH", Some("1"))
.define("ENABLE_MODULE_SCHNORRSIG", Some("1"))
.define("ENABLE_MODULE_EXTRAKEYS", Some("1"))
.define("ECMULT_GEN_PREC_BITS", Some("4"))
// TODO these three should be changed to use libgmp, at least until secp PR 290 is merged
.define("USE_NUM_NONE", Some("1"))
Expand Down

0 comments on commit c469295

Please sign in to comment.