pub mod builder;
pub mod codec;
pub mod crypto;
pub mod diff;
pub mod hash;
pub mod hashtree;
pub mod nhash;
pub mod reader;
pub mod store;
pub mod types;
pub mod visibility;
pub use hashtree::{verify_tree as hashtree_verify_tree, HashTree, HashTreeConfig, HashTreeError};
pub use builder::{BEP52_CHUNK_SIZE, DEFAULT_CHUNK_SIZE, DEFAULT_MAX_LINKS};
pub use codec::{
decode_tree_node, encode_and_hash, encode_tree_node, get_node_type, is_directory_node,
is_tree_node, try_decode_tree_node, CodecError,
};
pub use hash::{sha256, verify};
pub use reader::{
verify_tree, verify_tree_integrity, ReaderError, TreeEntry, VerifyIntegrityResult,
VerifyResult, WalkEntry,
};
pub use nhash::{
decode as nhash_decode_any, is_nhash, nhash_decode, nhash_encode, nhash_encode_full,
DecodeResult, NHashData, NHashError,
};
pub use store::{BufferedStore, MemoryStore, Store, StoreError};
pub use types::{
from_hex, hash_equals, to_hex, Cid, CidParseError, DirEntry, Hash, Link, LinkType, PutResult,
TreeNode,
};
pub use crypto::{
content_hash, could_be_encrypted, decrypt, decrypt_chk, encrypt, encrypt_chk, encrypted_size,
encrypted_size_chk, generate_key, key_from_hex, key_to_hex, plaintext_size, CryptoError,
EncryptionKey,
};
pub use visibility::{xor_keys, TreeVisibility};
pub use diff::{
collect_hashes, collect_hashes_with_progress, tree_diff, tree_diff_streaming,
tree_diff_with_old_hashes, DiffStats, TreeDiff,
};