mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 08:11:04 +00:00
05c71381c0
* pallet-mmr: extend batch proof verification test covers all possible 2-leaf combinations now, including current verification failures that batch proof item count limit is too low sometimes. * raise upper bound on proof item number as described in https://github.com/paritytech/substrate/issues/11753#issuecomment-1179838174 * test for powerset of leaves * refactor batch proof verification test * test all batch proofs for mmr sizes up to n=13 * limit mmr size to reduce batch proof test duration * use saturating integer addition for proof check * extract common chain building in batch proof tests note: right now, since not killing old chain, it keeps growing by 7 blocks for every leaf selection (added after proof generation), hence heavier to compute. * only add blocks after a proof generation once * increase batch proof testing range * register offchain extensions only once * fmt & remove unused util
49 lines
1.8 KiB
TOML
49 lines
1.8 KiB
TOML
[package]
|
|
name = "pallet-mmr"
|
|
version = "4.0.0-dev"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2021"
|
|
license = "Apache-2.0"
|
|
homepage = "https://substrate.io"
|
|
repository = "https://github.com/paritytech/substrate/"
|
|
description = "FRAME Merkle Mountain Range pallet."
|
|
|
|
[package.metadata.docs.rs]
|
|
targets = ["x86_64-unknown-linux-gnu"]
|
|
|
|
[dependencies]
|
|
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
|
|
mmr-lib = { package = "ckb-merkle-mountain-range", version = "0.3.2", default-features = false }
|
|
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
|
frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, path = "../benchmarking" }
|
|
frame-support = { version = "4.0.0-dev", default-features = false, path = "../support" }
|
|
frame-system = { version = "4.0.0-dev", default-features = false, path = "../system" }
|
|
sp-core = { version = "6.0.0", default-features = false, path = "../../primitives/core" }
|
|
sp-io = { version = "6.0.0", default-features = false, path = "../../primitives/io" }
|
|
sp-mmr-primitives = { version = "4.0.0-dev", default-features = false, path = "../../primitives/merkle-mountain-range" }
|
|
sp-runtime = { version = "6.0.0", default-features = false, path = "../../primitives/runtime" }
|
|
sp-std = { version = "4.0.0", default-features = false, path = "../../primitives/std" }
|
|
|
|
[dev-dependencies]
|
|
env_logger = "0.9"
|
|
hex-literal = "0.3"
|
|
itertools = "0.10.3"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
std = [
|
|
"codec/std",
|
|
"frame-benchmarking/std",
|
|
"frame-support/std",
|
|
"frame-system/std",
|
|
"mmr-lib/std",
|
|
"scale-info/std",
|
|
"sp-core/std",
|
|
"sp-io/std",
|
|
"sp-mmr-primitives/std",
|
|
"sp-runtime/std",
|
|
"sp-std/std",
|
|
]
|
|
runtime-benchmarks = ["frame-benchmarking/runtime-benchmarks"]
|
|
try-runtime = ["frame-support/try-runtime"]
|