bitcoinjs / merkle-lib

A performance conscious library for merkle root and tree calculations.
MIT License
29 stars 17 forks source link

Verifying if a specific data portion is part of a tree #8

Open ghost opened 4 years ago

ghost commented 4 years ago

Can someone help me here ...

I tried the example provided with merkle-lib and it works correctly.

But if I try to create a new buffer data with the same string and use the library to check if it is included in the library it end up with a no proof result .

For example while using

var proof = merkleProof(tree,new Buffer('bbbbbbbb', 'hex')) Instead of: var proof = merkleProof(tree, data[0]) In example provided

Regards