Socket
Socket
Sign inDemoInstall

elliptic-utility

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    elliptic-utility

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


Version published
Maintainers
1
Created

Readme

Source

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

Keywords

FAQs

Last updated on 24 Jan 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc