JSPM

elliptic-utility

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q16882F
  • License BSD

Porting from http://www-cs-students.stanford.edu/~tjw/jsbn/LICENSE

Package Exports

  • elliptic-utility

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

Readme

Install

yarn add elliptic-utility

Usage

const Elliptic = require('elliptic-utility').Elliptic
const BigInteger = require('elliptic-utility').BigInteger
const ecparams = Elliptic.getSECCurveByName("secp256k1");
const curve = ecparams.getCurve();

API

Elliptic

  • FieldElementFp: { [Function] fastLucasSequence: [Function] },
  • PointFp: { [Function] decodeFrom: [Function] },
  • CurveFp: [Function],
  • fromHex: [Function],
  • integerToBytes: [Function],
  • X9Parameters: [Function],
  • secNamedCurves: { secp256k1: [Function: secp256k1] },
  • getSECCurveByName: [Function] }

BigInteger

  • ZERO: BigInteger { t: 0, s: 0 },
  • ONE: BigInteger { '0': 1, t: 1, s: 0 },
  • valueOf: [Function: nbv],
  • fromByteArrayUnsigned: [Function],
  • fromByteArraySigned: [Function] }
  • Instance
add
and
andNot
bitCount
byteCount
byteValue
clearBit
clone
divide
divideAndRemainder
equals
flipBit
gcd
getLowestSetBit
intValue
max
min
modInverse
modPow
multiply
not
or
pow
remainder
setBit
shiftLeft
shiftRight
shortValue
signum
subtract
testBit
toByteArray
toBuffer
toHex
xor