merkle-tools
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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", |
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
25655