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
2
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 3.0.0 to 3.0.1

2

lib/common.test.js

@@ -29,3 +29,3 @@ 'use strict';

it('isValidPublic', function () {
var keys = [[true, 'EOS859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhToVM'], [false, 'MMM859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhToVM'], [false, 'EOS859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhTo']];
var keys = [[true, 'EOS859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhToVM'], [false, 'MMM859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhToVM'], [false, 'EOS859gxfnXyUriMgUeThh1fWv3oqcpLFyHa3TfFYC4PK2HqhToVm']];
var _iteratorNormalCompletion = true;

@@ -32,0 +32,0 @@ var _didIteratorError = false;

@@ -158,7 +158,7 @@ 'use strict';

public_key = new Buffer(base58.decode(public_key), 'binary');
var checksum = public_key.slice(-4);
var checksum = public_key.slice(-4).toString('hex');
public_key = public_key.slice(0, -4);
var new_checksum = hash.ripemd160(public_key);
new_checksum = new_checksum.slice(0, 4);
assert.deepEqual(checksum, new_checksum, 'Checksum did not match, ' + (checksum.toString('hex') + ' != ' + new_checksum.toString('hex')));
new_checksum = new_checksum.slice(0, 4).toString('hex');
assert.equal(checksum, new_checksum, 'Checksum did not match, ' + (checksum + ' != ' + new_checksum));
return PublicKey.fromBuffer(public_key);

@@ -165,0 +165,0 @@ };

@@ -247,7 +247,7 @@ 'use strict';

signature = new Buffer(base58.decode(signature), 'binary');
var checksum = signature.slice(-4);
var checksum = signature.slice(-4).toString('hex');
signature = signature.slice(0, -4);
var new_checksum = hash.ripemd160(signature);
new_checksum = new_checksum.slice(0, 4);
assert.deepEqual(checksum, new_checksum, 'Checksum did not match, ' + (checksum.toString('hex') + ' != ' + new_checksum.toString('hex')));
new_checksum = new_checksum.slice(0, 4).toString('hex');
assert.equal(checksum, new_checksum, 'Checksum did not match, ' + (checksum + ' != ' + new_checksum));
return Signature.fromBuffer(signature);

@@ -254,0 +254,0 @@ };

{
"name": "eosjs-ecc",
"version": "3.0.0",
"version": "3.0.1",
"description": "Elliptic curve cryptography functions",

@@ -5,0 +5,0 @@ "keywords": "ECC, Private Key, Public Key, Signature, AES, Encryption, Decryption",

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