Comparing version 1.0.2 to 1.0.3
let createHash = require('create-hash') | ||
let createHmac = require('create-hmac') | ||
let ripemd160 | ||
try { | ||
ripemd160 = require('crypto') | ||
.getHashes() | ||
.includes('rmd160') | ||
? 'rmd160' | ||
: 'ripemd160' | ||
} catch (err) { | ||
ripemd160 = 'rmd160' | ||
} | ||
function hash160 (buffer) { | ||
return createHash('rmd160').update( | ||
return createHash(ripemd160).update( | ||
createHash('sha256').update(buffer).digest() | ||
@@ -7,0 +18,0 @@ ).digest() |
{ | ||
"name": "bip32", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A BIP32 compatible library", | ||
@@ -40,3 +40,3 @@ "keywords": [ | ||
"author": "Daniel Cousens", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -43,0 +43,0 @@ "url": "https://github.com/bitcoinjs/bip32/issues" |
@@ -20,2 +20,3 @@ # bip32 | ||
## LICENSE [ISC](LICENSE) | ||
## LICENSE [MIT](LICENSE) | ||
A derivation (and extraction for modularity) of the `HDWallet`/`HDNode` written and tested by [bitcoinjs-lib](https://github.com/bitcoinjs/bitcoinjs-lib) contributors since 2014. |
Sorry, the diff of this file is not supported yet
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
37394
808
22