6 releases (breaking)

0.5.0 Apr 8, 2024
0.4.0 Mar 18, 2024
0.3.0 Feb 26, 2024
0.2.0 Feb 13, 2024
0.0.0 Dec 21, 2023

#2060 in Magic Beans

Download history 68/week @ 2024-02-12 188/week @ 2024-02-19 251/week @ 2024-02-26 59/week @ 2024-03-04 46/week @ 2024-03-11 503/week @ 2024-03-18 434/week @ 2024-03-25 107/week @ 2024-04-01 407/week @ 2024-04-08 319/week @ 2024-04-15

1,285 downloads per month
Used in 4 crates (2 directly)

Apache-2.0

580KB
12K SLoC

Snowbridge Outbound Queue Merkle Tree

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


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–30MB
~469K SLoC