Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceComponentsnpm

@polkadot/util-crypto

Polkadot crypto utilities: sr25519, Ed25519 and secp256k1 keys and signatures, BLAKE2, Keccak, SHA-2, HMAC, PBKDF2, scrypt, NaCl secretbox and encrypted JSON.

In short

What to know.

Algorithms
sr25519 (Schnorrkel), Ed25519, ECDSA on secp256k1, BLAKE2 (BLAKE2b, BLAKE2s) and 7 more3 of 11 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 sr25519 (Schnorrkel), Ed25519, ECDSA on secp256k1 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

  1. npm registry metadata for @polkadot/util-cryptoregistry.npmjs.orgRetrieved 3 December 2026
  2. @polkadot/util-crypto bundle exportsraw.githubusercontent.comRetrieved 3 December 2026

Full record

Package
@polkadot/util-crypto
Ecosystem
npm
Role
Toolkit
Status
Not marked deprecated by its registry or maintainers.
Notes
It also exposes sr25519 VRF signing, which has no separate algorithm record.
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

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.sr25519 (Schnorrkel), Ed25519, ECDSA on secp256k1
  • Weakened by Grover's searchGrover's search would roughly halve its effective security. 256-bit keys and outputs stay adequate.BLAKE2 (BLAKE2b, BLAKE2s), Keccak-256, SHA-2 (SHA-224, SHA-256, SHA-384, SHA-512), HMAC, PBKDF2, scrypt, XSalsa20-Poly1305
  • Not applicableThe quantum question does not apply to this part.Cryptographically strong random number generation

Notes describe algorithm families, not any one project.