* Use @noble/secp256k1 * Remove elliptic * Remove @types * -19 * verify uses recover internally * fromSeed * Init Noble utils inside cryptoInit * remove bn.js dep (used from @polkadot/util) * With x-noble-secp256k1 * Adjust * Remove unused functions * CHANGELOG * Fix useless assignment * Cleanup cryptoInit * adjust hasher * bn.js only via util * align versions * Remove x-secp256k1 (to be pulled in from master merge) * Remove (now) invalid test * Remove assertBigInt * hasBigInt * cleanups * Apply suggestions from code review * evmAddress fixes * Extra comment
@polkadot/util-crypto
Various useful cyrpto utility functions that are used across all projects in the @polkadot namespace. It provides utility functions with additional safety checks, allowing not only for consistent coding, but also reducing the general boilerplate.
Usage
Installation -
yarn add @polkadot/util-crypto
Functions can be imported as follows:
import { mnemonicGenerate } from '@polkadot/util-crypto';