@dashevo/dashcore-lib
Advanced tools
Comparing version 0.19.39 to 0.19.40
@@ -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; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2742164
191
37004
30