JSPM

@polkadot/util-crypto

1.6.0-beta.12
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 171136
  • Score
    100M100P100Q171438F
  • License Apache-2.0

A collection of useful crypto utilities for @polkadot

Package Exports

  • @polkadot/util-crypto
  • @polkadot/util-crypto/address/decode
  • @polkadot/util-crypto/address/defaults
  • @polkadot/util-crypto/address/encode
  • @polkadot/util-crypto/blake2/asU8a
  • @polkadot/util-crypto/index
  • @polkadot/util-crypto/keccak/asU8a
  • @polkadot/util-crypto/key
  • @polkadot/util-crypto/key/fromPath
  • @polkadot/util-crypto/mnemonic/generate
  • @polkadot/util-crypto/mnemonic/toSeed
  • @polkadot/util-crypto/mnemonic/validate
  • @polkadot/util-crypto/nacl
  • @polkadot/util-crypto/nacl/decrypt
  • @polkadot/util-crypto/nacl/encrypt
  • @polkadot/util-crypto/nacl/keypair/fromSecret
  • @polkadot/util-crypto/nacl/keypair/fromSeed
  • @polkadot/util-crypto/nacl/sign
  • @polkadot/util-crypto/nacl/verify
  • @polkadot/util-crypto/random/asU8a
  • @polkadot/util-crypto/schnorrkel
  • @polkadot/util-crypto/xxhash/asU8a
  • @polkadot/util-crypto/xxhash/xxhash64/asHex

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@polkadot/util-crypto) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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';

Utilities

Utilities