use std::collections::HashMap; #[macro_use] extern crate arrayref; extern crate tiny_keccak; extern crate rustc_hex; mod utils; mod node; // const TYPENODEROOT: u8 = 4; const EMPTYNODEVALUE: [u8;32] = [0;32]; pub struct TestValue { bytes: Vec, index_length: u32, } pub trait Value { fn bytes(&self) -> &Vec; fn index_length(&self) -> u32; } impl Value for TestValue { fn bytes(&self) -> &Vec { &self.bytes } fn index_length(&self) -> u32 { self.index_length } }