@chainsafe/persistent-merkle-tree
Advanced tools
Comparing version 0.1.1 to 0.1.2
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const sha256 = require("bcrypto/lib/sha256"); | ||
const as_sha256_1 = require("@chainsafe/as-sha256"); | ||
function hash(a, b) { | ||
return Uint8Array.from(sha256.digest(Buffer.concat([a, b]))); | ||
return as_sha256_1.default.digest(Buffer.concat([a, b])); | ||
} | ||
exports.hash = hash; |
{ | ||
"name": "@chainsafe/persistent-merkle-tree", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Merkle tree implemented as a persistent datastructure", | ||
@@ -50,4 +50,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"bcrypto": "^4.2.8" | ||
"@chainsafe/as-sha256": "^0.2.0" | ||
} | ||
} |
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
28866
18
+ Added@chainsafe/as-sha256@^0.2.0
+ Added@assemblyscript/loader@0.9.4(transitive)
+ Added@chainsafe/as-sha256@0.2.4(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedieee754@1.2.1(transitive)
- Removedbcrypto@^4.2.8
- Removedbcrypto@4.3.2(transitive)
- Removedbsert@0.0.13(transitive)
- Removedbufio@1.0.7(transitive)
- Removedloady@0.0.5(transitive)
- Removednan@2.22.0(transitive)