Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eckey

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eckey - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

5

CHANGELOG.md

@@ -0,1 +1,6 @@

0.7.0 / 2014-06-11
------------------
* updated `"ecurve": "^0.6.0"` to `"ecurve": "^0.8.0"`
* removed `terst` for `assert`
0.6.0 / 2014-06-03

@@ -2,0 +7,0 @@ ------------------

17

lib/eckey.js
var crypto = require('crypto')
var ecurve = require('ecurve')
var ECPointFp = ecurve.ECPointFp
var ecparams = ecurve.getECParams('secp256k1')
var ecparams = ecurve.getCurveByName('secp256k1')
var BigInteger = require('bigi')
module.exports = ECKey
function ECKey (bytes, compressed) {

@@ -94,3 +90,3 @@ if (!(this instanceof ECKey)) return new ECKey(bytes, compressed)

if (!this._publicPoint) {
this._publicPoint = ecparams.g.multiply(this.keyBigInteger)
this._publicPoint = ecparams.params.G.multiply(this.keyBigInteger)
}

@@ -116,3 +112,2 @@ return this._publicPoint

/************

@@ -126,9 +121,3 @@ * METHODS

module.exports = ECKey
{
"name": "eckey",
"version": "0.6.0",
"version": "0.7.0",
"description": "Handle private key and public keys associated with elliptic curve cryptography. Used with crypto currencies such as Bitcoin, Litecoin, Dogecoin, etc. Works in both Node.js and the browser.",

@@ -18,3 +18,2 @@ "keywords": [

"mocha": "^1.20.0",
"terst": "^0.2.0",
"secure-random": "^1.0.0",

@@ -34,3 +33,3 @@ "mochify": "^0.9.3",

"dependencies": {
"ecurve": "^0.6.0",
"ecurve": "^0.8.0",
"bigi": "^1.1.0"

@@ -49,2 +48,3 @@ },

"files": "test/*.js",
"harness": "mocha",
"browsers": [

@@ -51,0 +51,0 @@ "firefox/latest",

@@ -13,4 +13,4 @@ eckey

Official documenation:
Official documentation:
http://cryptocoinjs.com/modules/currency/eckey/
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc