22 releases (12 major breaking)

15.0.1 Sep 25, 2024
15.0.0 Feb 26, 2024
14.0.0 Feb 13, 2024
13.0.0 Jan 23, 2024
0.0.0 Jan 29, 2023

#16 in #leave

Download history 899/week @ 2024-07-30 855/week @ 2024-08-06 1107/week @ 2024-08-13 1375/week @ 2024-08-20 862/week @ 2024-08-27 727/week @ 2024-09-03 1085/week @ 2024-09-10 796/week @ 2024-09-17 1153/week @ 2024-09-24 1087/week @ 2024-10-01 1180/week @ 2024-10-08 1582/week @ 2024-10-15 1838/week @ 2024-10-22 1643/week @ 2024-10-29 1914/week @ 2024-11-05 25484/week @ 2024-11-12

31,488 downloads per month
Used in 22 crates (5 directly)

Apache-2.0

29KB
617 lines

Release

Polkadot SDK stable2409


lib.rs:

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

~43KB