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

merkletreejs

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merkletreejs - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

4

index.js

@@ -140,4 +140,4 @@ const reverse = require('buffer-reverse')

getProof(leaf, index) {
leaf = bufferify(leaf);
const proof = [];
leaf = bufferify(leaf)
const proof = []

@@ -144,0 +144,0 @@ if (typeof index !== 'number') {

{
"name": "merkletreejs",
"version": "0.0.17",
"version": "0.0.18",
"description": "Construct Merkle Trees and verify proofs",

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

@@ -252,5 +252,5 @@ const test = require('tape')

t.plan(1)
let leaves = ['a', 'b', 'c'].map(x => sha3(x).toString('hex'));
const tree = new MerkleTree(leaves, SHA256);
const root = '311d2e46f49b15fff8b746b74ad57f2cc9e0d9939fda94387141a2d3fdf187ae';
let leaves = ['a', 'b', 'c'].map(x => sha3(x).toString('hex'))
const tree = new MerkleTree(leaves, SHA256)
const root = '311d2e46f49b15fff8b746b74ad57f2cc9e0d9939fda94387141a2d3fdf187ae'
t.equal(tree.getRoot().toString('hex'), root)

@@ -302,3 +302,3 @@ })

t.equal(verifications.every(Boolean), true)
});
})

@@ -305,0 +305,0 @@ test('crypto-js bufferify', t => {

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