pchain_world_state/lib.rs
1/*
2 Copyright © 2023, ParallelChain Lab
3 Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
4*/
5
6//! pchain-world-state defines structs, functions, and methods for reading and writing world state from and into a persistent storage.
7//! The world state is stored in Merkle Patricia Trie structure which is the combination of a:
8//! - Patricia Trie: An efficient Radix Trie (r=16), a data structure in which “keys” represent the path one has to take to reach a node
9//! - Merkle Tree: A hash tree in which each node’s hash is computed from its child nodes hashes.
10
11pub(crate) mod trie;
12
13pub mod states;
14
15pub mod keys;
16
17pub mod storage;
18
19pub mod error;
20
21pub mod network;
22
23#[cfg(test)]
24mod tests;
25