Beetswap is a Rust-based implementation of the Bitswap
protocol for the libp2p
networking stack.
Bitswap is a protocol developed for the exchange of blocks between peers. It plays a critical role in data distribution, ensuring that peers can request and receive the blocks they need from other peers in the network.
Check out the examples.
- Efficient Block Exchange: Implements the Bitswap protocol to ensure efficient transfer of blocks between peers.
- Libp2p Integration: Designed to integrate smoothly with libp2p, allowing it to be used in a wide range of decentralized applications.
- Rust Safety and Performance: Takes advantage of Rust's memory safety guarantees and performance optimizations, making it a robust choice for networked applications.
Beetswap uses multihash-codetable, so hashers can be enabled with the corresponding feature:
# your crate's Cargo.toml
# Say we want CIDs that used blake3 or sha2 or sha3
multihash-codetable = { version = "0.1", features = ["blake3", "sha2", "sha3"] }
Beyond the multihash codetable hashers, other custom hashers can be added, see multihasher for further details.
We welcome contributions! Please fork the repository and submit a pull request.
Beetswap is licensed under the Apache 2.0 License. See the LICENSE file for more details.
About Eiger
We are engineers. We contribute to various ecosystems by building low level implementations and core components.
Contact us at [email protected] Follow us on X/Twitter