Closed c-geek closed 8 years ago
I have recently published a companion module to this one which builds these same proof paths. It will construct the proof path, has an option to include/exclude the 'parent' values as they can be seen as redundant, can be called with either a tree leaf index or a target index value, and includes tests.
https://github.com/Tierion/merkle-proof
I'm open to to creating a new branch in this project and integrating my proof path code and tests into this if you'd like.
Would be very glad to see a pull request of yours about it. If tests pass, I will integrate it for sure and increment version too.
Fixed in #11.
Someone proposed 2 tree traversal functions by e-mail.
Would be nice to test them and integrate if it works as expected: