25 releases (16 stable)

16.1.1 Mar 26, 2026
16.1.0 Oct 2, 2025
16.0.0 Jan 7, 2025
15.0.1 Sep 25, 2024
0.0.0 Jan 29, 2023

#3 in #concatenating

Download history 8524/week @ 2026-01-16 7711/week @ 2026-01-23 10263/week @ 2026-01-30 12108/week @ 2026-02-06 20197/week @ 2026-02-13 31365/week @ 2026-02-20 31451/week @ 2026-02-27 36277/week @ 2026-03-06 34281/week @ 2026-03-13 39163/week @ 2026-03-20 45841/week @ 2026-03-27 45198/week @ 2026-04-03 46268/week @ 2026-04-10 43030/week @ 2026-04-17 41896/week @ 2026-04-24 28571/week @ 2026-05-01

166,974 downloads per month
Used in 554 crates (9 directly)

Apache-2.0

32KB
656 lines

This crate implements a simple binary Merkle Tree utilities required for inter-op with Ethereum bridge & Solidity contract.

The implementation is optimised for usage within Substrate Runtime and supports no-std compilation targets.

Merkle Tree is constructed from arbitrary-length leaves, that are initially hashed using the same hasher as the inner nodes. Inner nodes are created by concatenating child hashes and hashing again. The implementation does not perform any sorting of the input data (leaves) nor when inner nodes are created.

If the number of leaves is not even, last leaf (hash of) is promoted to the upper layer.

Dependencies

~4.5MB
~99K SLoC