Compare commits

..

No commits in common. "browser" and "master" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,6 @@
"bitcoinjs-lib": "^3.3.1",
"bn.js": "^4.11.8",
"coininfo": "^4.5.0",
"create-hash": "^1.2.0",
"lodash": "^4.17.11",
"safe-buffer": "^5.1.1",
"secp256k1": "^3.4.0"

View File

@ -1,6 +1,6 @@
'use strict'
const createHash = require('create-hash')
const crypto = require('crypto')
const bech32 = require('bech32')
const secp256k1 = require('secp256k1')
const Buffer = require('safe-buffer').Buffer
@ -128,7 +128,7 @@ function intBEToWords (intBE, bits) {
}
function sha256 (data) {
return createHash('sha256').update(data).digest()
return crypto.createHash('sha256').update(data).digest()
}
function convert (data, inBits, outBits) {