ethereum-bloom-filters
Advanced tools
Comparing version 1.0.10 to 1.1.0
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const sha3 = require("js-sha3"); | ||
const sha3_1 = require("@noble/hashes/sha3"); | ||
/** | ||
@@ -9,3 +9,3 @@ * Keccak256 hash | ||
function keccak256(data) { | ||
return '0x' + sha3.keccak_256(toByteArray(data)); | ||
return bytesToHex(sha3_1.keccak_256(toByteArray(data))); | ||
} | ||
@@ -12,0 +12,0 @@ exports.keccak256 = keccak256; |
{ | ||
"name": "ethereum-bloom-filters", | ||
"version": "1.0.10", | ||
"version": "1.1.0", | ||
"description": "Ability to test bloom filters for ethereum.", | ||
@@ -31,3 +31,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"js-sha3": "^0.8.0" | ||
"@noble/hashes": "^1.4.0" | ||
}, | ||
@@ -38,3 +38,3 @@ "devDependencies": { | ||
"gulp": "^4.0.2", | ||
"gulp-uglify-es": "^1.0.4", | ||
"gulp-uglify-es": "^3.0.0", | ||
"jest": "^24.9.0", | ||
@@ -41,0 +41,0 @@ "ts-jest": "^24.1.0", |
@@ -8,3 +8,3 @@ [![npm version](https://badge.fury.io/js/ethereum-bloom-filters.svg)](https://badge.fury.io/js/ethereum-bloom-filters) | ||
This package only has 1 dependency which is on `js-sha3` which has no dependencies on at all. | ||
This package only has 1 dependency which is on `@noble/hashes` which has no dependencies on at all and is funded by ethereum foundation. | ||
@@ -11,0 +11,0 @@ ## Installation |
Sorry, the diff of this file is not supported yet
19552
371259
+ Added@noble/hashes@^1.4.0
+ Added@noble/hashes@1.4.0(transitive)
- Removedjs-sha3@^0.8.0
- Removedjs-sha3@0.8.0(transitive)