BSD-3-Clause licensed and maintained by Kazu Yamamoto
This version can be pinned in stack with:hash-tree-0.1.1@sha256:f34f3bd947748a3352a9eba699e3cc8c01080a0b909c711165dc697eff00b0b0,1308

Module documentation for 0.1.1

Purely functional Merkle hash tree which implements appe nd-only logs and provides both inclusion proof and consistency proof.

Changes

ChangeLog for hash-tree

0.1.1

  • Security: verifyConsistencyProof did not check that the second tree size was fully consumed (RFC 9162 Sec 2.1.4.2), so a proof could be accepted for a wrong second tree size. It also threw an error for over-long proofs and did not reject first > second.
  • verifyInclusionProof now rejects a negative leaf index.