This is a fix for issue #8 where the data block (leaf) to be proofed is in a Buffer different from the one used when building the tree. The changes also allow for internal nodes and leaves to be either a Buffer or a Uint8Array instance (though Uint8Array only works for Node.js version 8 and above).
This is a fix for issue #8 where the data block (leaf) to be proofed is in a Buffer different from the one used when building the tree. The changes also allow for internal nodes and leaves to be either a Buffer or a Uint8Array instance (though Uint8Array only works for Node.js version 8 and above).