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

merkle-tools

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merkle-tools - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

merkletools.js

@@ -136,5 +136,5 @@ /*jslint node: true */

for (var x = 0; x < proof.length; x++) {
if (proof[x].left !== undefined) { // then the sibling is a left node
if (proof[x].left) { // then the sibling is a left node
proofHash = hashFunction(Buffer.concat([_getBuffer(proof[x].left), proofHash]));
} else if (proof[x].right !== undefined) { // then the sibling is a right node
} else if (proof[x].right) { // then the sibling is a right node
proofHash = hashFunction(Buffer.concat([proofHash, _getBuffer(proof[x].right)]));

@@ -141,0 +141,0 @@ } else { // no left or right designation exists, proof is invalid

{
"name": "merkle-tools",
"version": "1.0.2",
"version": "1.0.3",
"description": "Tools for creating merkle trees, generating merkle proofs, and verification of merkle proofs.",

@@ -5,0 +5,0 @@ "main": "merkletools.js",

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