JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12804
  • Score
    100M100P100Q148641F
  • License MIT

Signatures, keys and Pedersen hash on STARK friendly elliptic curve

Package Exports

  • @toruslabs/starkware-crypto
  • @toruslabs/starkware-crypto/dist/lib.cjs/index.js
  • @toruslabs/starkware-crypto/dist/lib.esm/index.js

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 (@toruslabs/starkware-crypto) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@toruslabs/starkware-crypto

npm version

Signatures, keys and Pedersen hash on STARK friendly elliptic curve.

Installation

Bundling

This module is distributed in 3 formats:

  • main build: dist/lib.cjs/index.js in CommonJS format
  • module build: dist/lib.esm/index.js in ESModule format (preferred for bundlers)
  • browser build: dist/starkwareCrypto.umd.js in UMD format for direct use in browsers

Install via package manager

npm install @toruslabs/starkware-crypto

Directly in Browser

CDN's serve the non-core-js polyfilled version by default.

jsdeliver

Usage

Signature

import { sign, verify } from '@toruslabs/starkware-crypto';

sign(keyPair, msgHash);

verify(keyPair, msgHash, signature);