Registry / crypto / bao-tree

bao-tree

JSON →
library0.16.0rscratesunverified

BLAKE3 verified streaming with custom chunk groups and range set queries.

# Cargo.toml [dependencies] bao-tree = "0.16.0"
INSTALL
IMPORT
SIG · BAO-TREE
B
bao-tree
cryptorustv0.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BaoTree
use bao_tree::BaoTree;

Computes a BLAKE3 hash using BaoTree with streaming.

use bao_tree::BaoTree; use std::io::Cursor; fn main() -> Result<(), Box<dyn std::error::Error>> { let data = b"Hello, world!"; let mut tree = BaoTree::new(Cursor::new(data)); let hash = tree.finalize(); println!("Hash: {:?}", hash); Ok(()) }
Debug
Known issues
gotchaRequires the BLAKE3 feature; ensure it is enabled in Cargo.toml.
fix
Add `bao-tree = { version = "0.16", features = ["blake3"] }`.
affects: >=0.16.0
Upgrade
Version history
0.16.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
42 hits · last 30 days
node
38
Resources
bao-tree — cargo add bao-tree · libregistry