Files
pezkuwi-subxt/substrate/core/trie/Cargo.toml
T
Sergei Pepyakin 517746bd62 Check storage_key for validity (#2316)
* Intro `ChildStorageKey` for checked child keys

* Get rid of Into in Externalities trait

* Use Cow in ChildStorageKey

* Fix tests for state-machine.

* Clean

* child_storage_root always return a value

* Don't return Option from Ext::child_storage_root

* Return 42 in child_storage_root

* Return CHILD_STORAGE_KEY_PREFIX from trie id gen

* Bump spec and impl version.

* Require `:default:` in `is_child_trie_key_valid`

* Add `default:` prefix.

* Introduce `into_owned` for `ChildStorageKey`.

* Add documentation.

* Fix state-machine tests

* Remove outdated TODO

I check out with Emeric and he is ok with that

* child_storage_root is infailable

* Nit

* Move assert after check.

* Apply suggestions from @DemiMarie-parity

Co-Authored-By: pepyakin <s.pepyakin@gmail.com>

* Formatting nit in core/executor/src/wasm_executor.rs

Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com>

* Formatting nits from @thiolliere
2019-04-23 18:14:45 +02:00

41 lines
1.1 KiB
TOML

[package]
name = "substrate-trie"
version = "1.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Patricia trie stuff using a parity-codec node format"
repository = "https://github.com/paritytech/parity-common"
license = "GPL-3.0"
edition = "2018"
[[bench]]
name = "bench"
harness = false
[dependencies]
codec = { package = "parity-codec", version = "3.2", default-features = false }
rstd = { package = "sr-std", path = "../sr-std", default-features = false }
hash-db = { version = "0.12.2", default-features = false }
trie-db = { version = "0.12.2", default-features = false }
trie-root = { version = "0.12.2", default-features = false }
memory-db = { version = "0.12.2", default-features = false }
substrate-primitives = { path = "../primitives", default-features = false }
[dev-dependencies]
trie-bench = { version = "0.12" }
trie-standardmap = { version = "0.12" }
keccak-hasher = { version = "0.12" }
criterion = "0.2"
hex-literal = "0.1.0"
[features]
default = ["std"]
std = [
"rstd/std",
"codec/std",
"hash-db/std",
"memory-db/std",
"trie-db/std",
"trie-root/std",
"substrate-primitives/std",
]