Move beefy-merkle-tree to utils/binary-merkle-tree and make it generic (#13076)

* move BeefyMmrApi to pallet-beefy-mmr

* fix test_utils use pallet-beefy-mmr BeefyMmrApi

* Move beefy-merkle-tree to utils and Rename to Merkle-tree

* fix fmt and test

* Update merkle-tree to binary-merkle-tree and Remove Keccak256 mod from merkle-tree

* change merkle-tree name to binary-merkle-tree

* mirr fix
This commit is contained in:
Davirain
2023-02-02 18:07:48 +08:00
committed by GitHub
parent 5ba5e0d25f
commit 25388b267e
9 changed files with 75 additions and 71 deletions
@@ -0,0 +1,28 @@
[package]
name = "binary-merkle-tree"
version = "4.0.0-dev"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/paritytech/substrate"
description = "A no-std/Substrate compatible library to construct binary merkle tree."
homepage = "https://substrate.io"
[dependencies]
array-bytes = { version = "4.1", optional = true }
log = { version = "0.4", default-features = false, optional = true }
hash-db = { version = "0.15.2", default-features = false }
[dev-dependencies]
array-bytes = "4.1"
env_logger = "0.9"
sp-core = { version = "7.0.0", path = "../../primitives/core" }
sp-runtime = { version = "7.0.0", path = "../../primitives/runtime" }
[features]
debug = ["array-bytes", "log"]
default = ["debug", "std"]
std = [
"log/std",
"hash-db/std"
]