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
Signatures, keys and Pedersen hash on STARK friendly elliptic curve.
Installation
Bundling
This module is distributed in 3 formats:
mainbuild:dist/lib.cjs/index.jsin CommonJS formatmodulebuild:dist/lib.esm/index.jsin ESModule format (preferred for bundlers)browserbuild:dist/starkwareCrypto.umd.jsin UMD format for direct use in browsers
Install via package manager
npm install @toruslabs/starkware-cryptoDirectly 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);