lighthouse/eth2/utils/cached_tree_hash/examples/8k_hashes_standard.rs
Paul Hauner a4559e798d
Add benches, examples for cached hashing.
Ignore flamegraph files
2019-04-28 11:38:32 +10:00

12 lines
233 B
Rust

use cached_tree_hash::TreeHashCache;
use ethereum_types::H256 as Hash256;
use tree_hash::TreeHash;
fn main() {
let n = 2048;
let vec: Vec<Hash256> = (0..n).map(|_| Hash256::random()).collect();
vec.tree_hash_root();
}