ethereum-cryptography
Collection of the primitives Ethereum uses: secp256k1, BN254 and BLS12-381 curves, Keccak, SHA-2, RIPEMD-160, BLAKE2b, PBKDF2, scrypt, AES, BIP-32, BIP-39 and random bytes.
In short
What to know.
- Algorithms
- ECDSA on secp256k1, BLS signatures, Pairings on BN254 (alt_bn128), Pairings on BLS12-381 and 8 more4 of 12 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, BLS signatures, Pairings on BN254 (alt_bn128), Pairings on BLS12-381 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 ethereum-cryptographyregistry.npmjs.orgRetrieved 3 December 2026
- ethereum-cryptography repositorygithub.comRetrieved 3 December 2026
Full record
- Package
- ethereum-cryptography
- Ecosystem
- npm
- Role
- Toolkit
- Status
- Not marked deprecated by its registry or maintainers.
- Notes
- Every module re-exports pinned versions of the noble and scure libraries.
- 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
- BLS signatures signatureClassical public keyBroken by Shor's algorithm
- Pairings on BN254 (alt_bn128) pairingClassical public keyBroken by Shor's algorithm
- Pairings on BLS12-381 pairingClassical public keyBroken by Shor's algorithm
- Keccak-256 hashHashWeakened by Grover's search
- SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512) hashHashWeakened by Grover's search
- RIPEMD-160 hashHashWeakened by Grover's search
- BLAKE2 (BLAKE2b, BLAKE2s) hashHashWeakened by Grover's search
- PBKDF2 kdfSymmetricWeakened by Grover's search
- scrypt password-hashSymmetricWeakened by Grover's search
- AES cipherSymmetricWeakened by Grover's search
- 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, BLS signatures, Pairings on BN254 (alt_bn128), Pairings on BLS12-381
- Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.Keccak-256, SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512), RIPEMD-160, BLAKE2 (BLAKE2b, BLAKE2s), PBKDF2, scrypt, AES
- Not applicableThe quantum question does not apply to this part.Cryptographically strong random number generation
Notes describe algorithm families, not any one project.