iroh_blobs/store/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Store implementations
//!
//! Use the [`mem`] store for sharing a small amount of mutable data,
//! the [`readonly_mem`] store for sharing static data, and the [`fs`] store
//! for when you want to efficiently share more than the available memory and
//! have access to a writeable filesystem.
use bao_tree::BlockSize;
pub mod fs;
pub mod mem;
pub mod readonly_mem;
mod test;
pub(crate) mod util;

use crate::hash::{Hash, HashAndFormat};

/// Block size used by iroh, 2^4*1024 = 16KiB
pub const IROH_BLOCK_SIZE: BlockSize = BlockSize::from_chunk_log(4);