IntelligenceComponentscrates.io
secp256k1
Rust bindings to the libsecp256k1 C library for secp256k1 ECDSA, BIP 340 Schnorr signatures and ECDH.
In short
What to know.
- Algorithms
- ECDSA on secp256k1, Schnorr signatures (BIP 340), ECDH (Weierstrass curves)3 of 3 would be broken by a large quantum computer.
- Advisories
- 2 in the storeOSV last read 3 December 2026, 16:49 UTC.
- What to do
- Check your version against the advisories below. Each lists its affected and fixed versions. Plan a move away from ECDSA on secp256k1, Schnorr signatures (BIP 340), ECDH (Weierstrass curves) before large quantum computers exist.
2 in the store
Advisories
| Advisory | Id | Affected versions | Fixed in | Source's rating |
|---|---|---|---|---|
| Unsound API in `secp256k1` allows use-after-free and invalid deallocation from safe code | GHSA-969w-q74q-9j8v | from 0.14.0 before 0.22.2; from 0.23.0 before 0.23.5; from 0.24.0 before 0.24.2 | Fixed in 0.22.2, 0.23.5, 0.24.2 | Rated Moderate |
| Unsound API in `secp256k1` allows use-after-free and invalid deallocation from safe code | RUSTSEC-2022-0070 | from 0.24.0 before 0.24.2 | Fixed in 0.24.2 |
1 listed
Findings
| Finding | Id | Severity | Updated |
|---|---|---|---|
| Unsound API in `secp256k1` allows use-after-free and invalid deallocation from safe code | NMN-2026-0087 | 3 December 2026 |
Reviewed 3 December 2026
Sources
- crates.io metadata for secp256k1crates.ioRetrieved 3 December 2026
- secp256k1 0.33.1 README on crates.iocrates.ioRetrieved 3 December 2026
- secp256k1 documentationdocs.rsRetrieved 3 December 2026
Full record
- Package
- secp256k1
- Ecosystem
- crates.io
- Role
- Binding to a native library
- Repository
- github.com/rust-bitcoin/rust-secp256k1
- Status
- Not marked deprecated by its registry or maintainers.
- Reviewed
- Entry reviewed 3 December 2026. Catalogue entry, curated by hand and incomplete by design.
- Advisories read
- Last read from OSV 3 December 2026, 16:49 UTC
- Findings
- 1 listed above.
Algorithms it provides
- ECDSA on secp256k1 signatureClassical public keyBroken by Shor's algorithm
- Schnorr signatures (BIP 340) signatureClassical public keyBroken by Shor's algorithm
- ECDH (Weierstrass curves) key-exchangeClassical public keyBroken by Shor's algorithm
What a large quantum computer would change
- Broken by Shor's algorithmRests on factoring or discrete logarithms. A large fault-tolerant quantum computer running Shor's algorithm would break it.ECDSA on secp256k1, Schnorr signatures (BIP 340), ECDH (Weierstrass curves)
Notes describe algorithm families, not any one project.