Skip to content

Commit ff8fa00

Browse files
committed
chore: remove unmaintained libsecp256k1 crate
1 parent 494174b commit ff8fa00

6 files changed

Lines changed: 4 additions & 121 deletions

File tree

bip0032/AGENTS.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363

6464
Generate GitHub Release notes that cover these sections:
6565

66-
- Breaking Changes
67-
- New Features
66+
- Breaking Changes.
67+
- Bug Fixes.
68+
- New Features.
6869
- Performance & Behavior Improvements.

bip0032/Cargo.toml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@ std = [
4040
"zeroize/std",
4141
"k256?/std",
4242
"secp256k1?/std",
43-
"libsecp256k1?/std",
4443
"p256?/std",
4544
"ed25519-dalek?/std",
4645
]
4746

4847
# BIP-0032 (secp256k1)
4948
k256 = ["k256/arithmetic"]
5049
secp256k1 = ["dep:secp256k1"]
51-
libsecp256k1 = ["dep:libsecp256k1"]
5250

5351
# Optional SLIP-0010 extension (support secp256k1/nist256p1/ed25519 curve)
5452
slip10 = []
@@ -70,9 +68,6 @@ zeroize = { version = "1.8", default-features = false }
7068
k256 = { version = "0.13", default-features = false, features = ["alloc"], optional = true }
7169
# https://github.com/bitcoin-core/secp256k1
7270
secp256k1 = { version = "0.31", default-features = false, features = ["alloc"], optional = true }
73-
# https://github.com/paritytech/libsecp256k1
74-
# NOTE: libsecp256k1 crate is no longer maintained
75-
libsecp256k1 = { version = "0.7", default-features = false, features = ["static-context"], optional = true }
7671

7772
###############################################################################
7873
# nist256p1 libraries (SLIP-0010 extension)

bip0032/benchmarks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license.workspace = true
88
publish = false
99

1010
[dev-dependencies]
11-
bip0032 = { path = "..", features = ["k256", "secp256k1", "libsecp256k1"] }
11+
bip0032 = { path = "..", features = ["k256", "secp256k1"] }
1212
bip32 = "0.5"
1313
bitcoin = "0.32"
1414
coins-bip32 = "0.13"

bip0032/benchmarks/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ keygen/bip32 (k256::ecdsa)
2121
keygen/bip0032 (k256) time: [1.0072 µs 1.0092 µs 1.0114 µs]
2222
keygen/bip0032 (secp256k1)
2323
time: [1.0158 µs 1.0178 µs 1.0201 µs]
24-
keygen/bip0032 (libsecp256k1)
25-
time: [1.0726 µs 1.0743 µs 1.0762 µs]
2624
```
2725

2826
## Derivation
@@ -43,8 +41,6 @@ derive/bip32 (k256::ecdsa)
4341
derive/bip0032 (k256) time: [216.79 µs 217.39 µs 218.06 µs]
4442
derive/bip0032 (secp256k1)
4543
time: [76.699 µs 80.643 µs 87.096 µs]
46-
derive/bip0032 (libsecp256k1)
47-
time: [168.01 µs 168.48 µs 169.08 µs]
4844
```
4945

5046
## Serialization
@@ -69,8 +65,6 @@ xprv_decode/bip0032 (k256)
6965
time: [5.4610 µs 5.4995 µs 5.5431 µs]
7066
xprv_decode/bip0032 (secp256k1)
7167
time: [5.4711 µs 5.6594 µs 5.9702 µs]
72-
xprv_decode/bip0032 (libsecp256k1)
73-
time: [5.5412 µs 5.5559 µs 5.5717 µs]
7468
```
7569

7670
### xprv encode
@@ -93,8 +87,6 @@ xprv_encode/bip0032 (k256)
9387
time: [9.8094 µs 9.8699 µs 9.9398 µs]
9488
xprv_encode/bip0032 (secp256k1)
9589
time: [9.7993 µs 9.8549 µs 9.9156 µs]
96-
xprv_encode/bip0032 (libsecp256k1)
97-
time: [9.7966 µs 10.016 µs 10.350 µs]
9890
```
9991

10092
### xpub decode
@@ -117,8 +109,6 @@ xpub_decode/bip0032 (k256)
117109
time: [10.942 µs 11.079 µs 11.248 µs]
118110
xpub_decode/bip0032 (secp256k1)
119111
time: [9.8025 µs 9.9168 µs 10.056 µs]
120-
xpub_decode/bip0032 (libsecp256k1)
121-
time: [13.306 µs 14.191 µs 16.104 µs]
122112
```
123113

124114
### xpub encode
@@ -141,6 +131,4 @@ xpub_encode/bip0032 (k256)
141131
time: [9.6266 µs 9.7398 µs 9.9000 µs]
142132
xpub_encode/bip0032 (secp256k1)
143133
time: [9.5780 µs 9.6362 µs 9.7008 µs]
144-
xpub_encode/bip0032 (libsecp256k1)
145-
time: [9.6415 µs 9.7524 µs 9.8780 µs]
146134
```

bip0032/src/curve/secp256k1/backends/libsecp256k1.rs

Lines changed: 0 additions & 97 deletions
This file was deleted.

bip0032/src/curve/secp256k1/backends/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ pub trait Secp256k1Backend {
1212

1313
#[cfg(feature = "k256")]
1414
mod k256;
15-
#[cfg(feature = "libsecp256k1")]
16-
mod libsecp256k1;
1715
#[cfg(feature = "secp256k1")]
1816
mod secp256k1;
1917

2018
#[cfg(feature = "k256")]
2119
pub use self::k256::K256Backend;
22-
#[cfg(feature = "libsecp256k1")]
23-
pub use self::libsecp256k1::Libsecp256k1Backend;
2420
#[cfg(feature = "secp256k1")]
2521
pub use self::secp256k1::Secp256k1FfiBackend;

0 commit comments

Comments
 (0)