Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
serban300 committed Sep 30, 2022
1 parent d42a2ff commit 52348da
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions frame/beefy-mmr/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,17 @@
//! compilation targets.
//!
//! Merkle Tree is constructed from arbitrary-length leaves, that are initially hashed using the
//! same [Hasher] as the inner nodes.
//! 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 leave (hash of) is promoted to the upper layer.
#[cfg(not(feature = "std"))]
extern crate alloc;
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
pub use sp_runtime::traits::Keccak256;
use sp_runtime::{app_crypto::sp_core, sp_std, traits::Hash as HashT};
use sp_std::{vec, vec::Vec};

use beefy_primitives::mmr::{BeefyAuthoritySet, BeefyNextAuthoritySet};
pub use sp_runtime::traits::Keccak256;
use sp_runtime::{app_crypto::sp_core, traits::Hash as HashT};

/// Construct a root hash of a Binary Merkle Tree created from given leaves.
///
Expand Down

0 comments on commit 52348da

Please sign in to comment.