Update README

This commit is contained in:
Miguel Mota 2022-11-14 09:25:21 -08:00
parent 00b656fc9a
commit 429669cb53
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9
1 changed files with 4 additions and 0 deletions

View File

@ -134,6 +134,10 @@ npm test
- Yes, see [merkletreejs-cli](https://github.com/miguelmota/merkletreejs-cli).
- Q: Is there a way to visualize the merkle trees in the browser?
- Yes, see [merkletree-viz](https://github.com/miguelmota/merkletree-viz).
## Notes
As is, this implemenation is vulnerable to a [second pre-image attack](https://en.wikipedia.org/wiki/Merkle_tree#Second_preimage_attack). Use a difference hashing function for leaves and nodes, so that `H(x) != H'(x)`.