blob: 33d01ab55253675377020d2a22885311c2212ca9 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//! `fuchsia_merkle` contains types and methods for building and working with merkle trees.
#![deny(missing_docs)]
pub use fuchsia_hash::{Hash, HASH_SIZE};
/// The size of a single block of data (or hashes), in bytes.
pub const BLOCK_SIZE: usize = 8192;
mod util;
mod tree;
pub use crate::tree::MerkleTree;
mod builder;
pub use crate::builder::MerkleTreeBuilder;
mod writer;
pub use crate::writer::MerkleTreeWriter;