BSD-3-Clause licensed and maintained by Kazu Yamamoto
This version can be pinned in stack with:hash-tree-0.1.2@sha256:9f551c72599b2d2036874049f73da8394d367567f9361e17a664a4719fad0d7f,1401

Module documentation for 0.1.2

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

Changes

ChangeLog for hash-tree

0.1.2

add and the consistency proof for the empty tree now behave as RFC 9162, which changes their results.

  • Add GitHub Actions CI #2
  • Allow crypton < 2.4 #3
  • Append duplicate elements as RFC 9162 #4
  • Run doctest on CI #5
  • Define no consistency proof for the empty tree as RFC 9162 #6
  • Fix typos, drop a stale comment and add upper bounds #7
  • Drop unused constraints on the input and hash types #8

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.