New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eosjs-ecc

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eosjs-ecc - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

package.json
{
"name": "eosjs-ecc",
"version": "1.0.3",
"version": "1.0.4",
"description": "Elliptic curve cryptography functions",

@@ -12,3 +12,3 @@ "keywords": "ECC, Private Key, Public Key, Signature, AES, Encryption, Decryption",

"type": "git",
"url": "git://github.com/eosjs/ecc.git"
"url": "git://github.com/EOSIO/eosjs-ecc.git"
},

@@ -15,0 +15,0 @@ "dependencies": {

@@ -57,3 +57,3 @@ [![NPM](https://img.shields.io/npm/v/eosjs-ecc.svg)](https://www.npmjs.org/package/eosjs-ecc)

```bash
git clone https://github.com/eosjs/ecc.git
git clone https://github.com/EOSIO/eosjs-ecc.git ecc
cd ecc

@@ -60,0 +60,0 @@ yarn

@@ -67,3 +67,5 @@ const ecurve = require('ecurve');

if (checksum.toString() !== new_checksum.toString())
throw new Error('Invalid WIF key (checksum miss-match)')
throw new Error('Invalid WIF key (checksum miss-match), ' +
`${checksum.toString('hex')} != ${new_checksum.toString('hex')}`
)

@@ -70,0 +72,0 @@ private_key = private_key.slice(1);

@@ -95,3 +95,6 @@ const BigInteger = require('bigi');

new_checksum = new_checksum.slice(0, 4);
assert.deepEqual(checksum, new_checksum, 'Checksum did not match');
assert.deepEqual(checksum, new_checksum,
'Checksum did not match, ' +
`${checksum.toString('hex')} != ${new_checksum.toString('hex')}`
);
return PublicKey.fromBuffer(public_key);

@@ -98,0 +101,0 @@ }

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