🍺 BREW Explorer

← all formulae

bao

brew install bao v0.13.1 Apache-2.0 OR CC0-1.0

Implementation of BLAKE3 verified streaming

22
30-day installs · #6527
79
90-day · #6116
283
365-day · #6468
572
★ GitHub stars · updated 1y ago

Build dependencies

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [
    "openbao"
  ],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Implementation of BLAKE3 verified streaming",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:45+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "bao",
  "github_default_branch": "master",
  "github_last_commit_at": "2025-05-07T21:05:45Z",
  "github_readme_excerpt": "# \u003ca href=\"#\"\u003e\u003cimg src=\"docs/bao.svg\" alt=\"Bao\" height=100\u003e\u003c/a\u003e \u0026nbsp; [![Actions Status](https://github.com/oconnor663/bao/workflows/tests/badge.svg)](https://github.com/oconnor663/bao/actions) [![docs.rs](https://docs.rs/bao/badge.svg)](https://docs.rs/bao) [![crates.io](https://img.shields.io/crates/v/bao.svg)](https://crates.io/crates/bao)\n\n[Bao Spec](docs/spec.md) \u2014 [Rust Crate](https://crates.io/crates/bao) \u2014 [Rust Docs](https://docs.rs/bao)\n\nBao is an implementation of\n[BLAKE3](https://github.com/BLAKE3-team/BLAKE3) verified streaming, as\ndescribed in Section 6.4 of the [BLAKE3\nspec](https://github.com/BLAKE3-team/BLAKE3-specs/blob/master/blake3.pdf).\nTree hashes like BLAKE3 make it possible to verify part of a file\nwithout re-hashing the entire thing, using an encoding format that\nstores the bytes of the file together with all the nodes of its hash\ntree. Clients can stream this encoding, or do random seeks into it,\nwhile verifying that every byte they read matches the root hash. For the\ndetails of how this works, see the [Bao spec](docs/spec.md).\n\nThis project includes two Rust crates, the\n[`bao`](https://crates.io/crates/bao) library crate and the\n[`bao_bin`](https://crates.io/crates/bao_bin) binary crate. The latter\nprovides the `bao` command line utility.\n\n\u003e **Caution!** Bao is beta cryptography software. It has not been\n\u003e formally audited yet.\n\n## Encoding and Decoding\n\nUse case: A secure messaging app might support attachment files by\nincluding the hash of an attachment in the metadata of a message. With a\nserial hash, the recipient would need to download the entire attachment\nto verify it, but that can be impractical for things like large video\nfiles. With BLAKE3 and Bao, the recipient can stream a video attachment,\nwhile still verifying each byte as it comes in. (This scenario was the\noriginal motivation for the Bao project.)\n\n```sh\n# Create an input file that\u0027s a megabyte of random data.\n\u003e head -c 1000000 /dev/urandom \u003e f\n\n# Convert it into a Bao enc",
  "github_repo": "oconnor663/bao",
  "github_stars": 572,
  "github_topics": [],
  "homepage": "https://github.com/oconnor663/bao",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 22,
  "installs_365d": 283,
  "installs_90d": 79,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0 OR CC0-1.0",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "bao",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 6527,
  "rank_365d": 6468,
  "rank_90d": 6116,
  "raw_hash": "8e37d66b2083bfdc",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/bao.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.13.1",
  "versioned_formulae": [],
  "why_use_this": null
}