ecpair
Bitcoin secp256k1 key pair class with ECDSA and Schnorr signing and verification on top of an injected secp256k1 library.
In short
What to know.
- Algorithms
- ECDSA on secp256k1, Schnorr signatures (BIP 340), Cryptographically strong random number generation2 of 3 would be broken by a large quantum computer.
- Advisories
- None in the storeOSV last read 3 December 2026, 16:49 UTC.
- What to do
- Plan a move away from ECDSA on secp256k1, Schnorr signatures (BIP 340) before large quantum computers exist.
0 in the store
Advisories
No advisory in the store for this package.
OSV listed none on 3 December 2026, 16:49 UTC. That does not mean the package has no problems.
Reviewed 3 December 2026
Sources
- npm registry metadata for ecpairregistry.npmjs.orgRetrieved 3 December 2026
- ecpair repositorygithub.comRetrieved 3 December 2026
Full record
- Package
- ecpair
- Ecosystem
- npm
- Role
- Toolkit
- Repository
- github.com/bitcoinjs/ecpair
- 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
- No finding refers to this package yet.
Algorithms it provides
- ECDSA on secp256k1 signatureClassical public keyBroken by Shor's algorithm
- Schnorr signatures (BIP 340) signatureClassical public keyBroken by Shor's algorithm
- Cryptographically strong random number generation rngOtherNot applicable
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)
- Not applicableThe quantum question does not apply to this part.Cryptographically strong random number generation
Notes describe algorithm families, not any one project.