mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-12 18:53:11 +00:00
22 lines
562 B
Rust
22 lines
562 B
Rust
use eth_trie_utils::partial_trie::{Nibbles, PartialTrie};
|
|
|
|
mod load;
|
|
mod read;
|
|
|
|
/// A `PartialTrie` where an extension node leads to a leaf node containing an account.
|
|
pub(crate) fn state_trie_ext_to_account_leaf(value: Vec<u8>) -> PartialTrie {
|
|
PartialTrie::Extension {
|
|
nibbles: Nibbles {
|
|
count: 3,
|
|
packed: 0xABC.into(),
|
|
},
|
|
child: Box::new(PartialTrie::Leaf {
|
|
nibbles: Nibbles {
|
|
count: 3,
|
|
packed: 0xDEF.into(),
|
|
},
|
|
value,
|
|
}),
|
|
}
|
|
}
|