12 releases (breaking)

0.9.1 Sep 25, 2024
0.9.0 Jul 18, 2024
0.4.0 Mar 18, 2024
0.0.0 Dec 21, 2023

#8 in #outbound

Download history 414/week @ 2024-08-26 103/week @ 2024-09-02 357/week @ 2024-09-09 213/week @ 2024-09-16 328/week @ 2024-09-23 346/week @ 2024-09-30 434/week @ 2024-10-07 713/week @ 2024-10-14 939/week @ 2024-10-21 721/week @ 2024-10-28 602/week @ 2024-11-04 20373/week @ 2024-11-11 24624/week @ 2024-11-18 27640/week @ 2024-11-25 22359/week @ 2024-12-02 27213/week @ 2024-12-09

103,052 downloads per month
Used in 14 crates (3 directly)

Apache-2.0

710KB
13K SLoC

Snowbridge Outbound Queue Merkle Tree

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

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

~15–28MB
~449K SLoC