Skip to main content

apply_prefix

Function apply_prefix 

Source
pub fn apply_prefix(prefix: Option<H256>, path: Nibbles) -> Nibbles
Expand description

Prepends an account address prefix (with an invalid nibble 17 as separator) to a trie path, distinguishing storage trie entries from state trie entries in the flat key-value namespace. Returns the path unchanged if prefix is None (state trie).