Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chainsafe/persistent-merkle-tree

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainsafe/persistent-merkle-tree - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

CHANGELOG.md

4

lib/hash.js
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc