Skip to content

Commit

Permalink
Implement BigInt traits for the gmp backend using rug
Browse files Browse the repository at this point in the history
  • Loading branch information
elichai committed Jul 19, 2021
1 parent e95c62d commit 5239eb2
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 439 deletions.
9 changes: 7 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ sha2 = "0.8.0"
sha3 = "0.8.2"
zeroize = "1"

rust-gmp-kzen = { version = "0.5", features = ["serde_support"], optional = true }
num-bigint = { version = "0.4", features = ["serde"], optional = true }

[dependencies.secp256k1]
Expand All @@ -46,6 +45,12 @@ features = ["serde", "rand-std"]
version = "0.5"
features = ["ecdsa"]

[dependencies.rug]
version = "1"
default-features = false
features = ["integer", "serde"]
optional = true

[dev-dependencies]
bincode = "1.1"
serde_json = "1.0"
Expand All @@ -54,4 +59,4 @@ proptest = "0.10"
proptest-derive = "0.2"

[features]
default = ["rust-gmp-kzen"]
default = ["rug"]
Loading

0 comments on commit 5239eb2

Please sign in to comment.