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

@dashevo/dashcore-lib

Package Overview
Dependencies
Maintainers
7
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dashevo/dashcore-lib - npm Package Compare versions

Comparing version 0.19.39 to 0.19.40

lib/configuration.js

2

index.js

@@ -5,2 +5,3 @@ /* eslint-disable */

'use strict';
const { configure } = require('./lib/configuration');

@@ -94,1 +95,2 @@ var bitcore = module.exports;

bitcore.Transaction.sighash = require('./lib/transaction/sighash');
bitcore.configure = configure;

14

lib/crypto/hash.js

@@ -6,4 +6,3 @@ /* eslint-disable */

var x11hash = require('@dashevo/x11-hash-js');
var crypto = require('crypto');
const { configuration } = require('../configuration');
var BufferUtil = require('../util/buffer');

@@ -16,3 +15,3 @@ var $ = require('../util/preconditions');

$.checkArgument(BufferUtil.isBuffer(buf));
return crypto.createHash('sha1').update(buf).digest();
return configuration.crypto.createHash('sha1').update(buf).digest();
};

@@ -24,3 +23,3 @@

$.checkArgument(BufferUtil.isBuffer(buf));
return crypto.createHash('sha256').update(buf).digest();
return configuration.crypto.createHash('sha256').update(buf).digest();
};

@@ -37,3 +36,4 @@

$.checkArgument(BufferUtil.isBuffer(buf));
return Buffer.from(x11hash.digest(buf, 1, 1));
const hash = configuration.x11hash.digest(buf, 1, 1);
return Buffer.from(hash);
};

@@ -43,3 +43,3 @@

$.checkArgument(BufferUtil.isBuffer(buf));
return crypto.createHash('ripemd160').update(buf).digest();
return configuration.crypto.createHash('ripemd160').update(buf).digest();
};

@@ -54,3 +54,3 @@

$.checkArgument(BufferUtil.isBuffer(buf));
return crypto.createHash('sha512').update(buf).digest();
return configuration.crypto.createHash('sha512').update(buf).digest();
};

@@ -57,0 +57,0 @@

{
"name": "@dashevo/dashcore-lib",
"version": "0.19.39",
"version": "0.19.40",
"description": "A pure and powerful JavaScript Dash library.",

@@ -90,2 +90,6 @@ "author": "Dash Core Group, Inc. <dev@dash.org>",

"email": "Dashameter@gmail.com"
},
{
"name": "Igor Markin",
"email": "markin.io210@gmail.com"
}

@@ -160,2 +164,3 @@ ],

"url": "^0.11.0",
"wasm-x11-hash": "^0.0.2",
"webpack": "^5.38.1",

@@ -162,0 +167,0 @@ "webpack-cli": "^4.7.0"

Sorry, the diff of this file is too big to display

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