pub fn create_leaf(key: HashKey, value: HashKey) -> (HashKey, Vec<u8>) {
    // 65 bytes
    let raw = [&[LEAF], key.as_ref(), value.as_ref()].concat();
    let h = digest(&raw);
    (h, raw)
}
// Leaf is the hashed key and hashed value
Leaf is the hashed key and hashed value
Leaf is the hashed key and hashed value
pub fn create_leaf(key: HashKey, value: HashKey) -> (HashKey, Vec<u8>) {
    // 65 bytes
    let raw = [&[LEAF], key.as_ref(), value.as_ref()].concat();
    let h = digest(&raw);
    (h, raw)
}
pub fn create_leaf ( key : HashKey , value : HashKey ) -> ( HashKey , Vec < u8 > ) { // 65 bytes let raw = [ & [ LEAF ] , key . as_ref ( ) , value . as_ref ( ) ] . concat ( ) ; let h = digest ( & raw ) ; ( h , raw ) }
Leaf is the hashed key and hashed value
Leaf is the hashed key and hashed value
key
HashKey
value
HashKey