#waku #p2p #networking

waku-bindings

Waku networking library

17 releases (5 breaking)

0.6.0 Feb 19, 2024
0.5.0 Dec 11, 2023
0.4.0 Oct 30, 2023
0.2.0 Jul 13, 2023
0.1.0-beta1 Nov 29, 2022

#3 in #waku

Download history 171/week @ 2024-07-29 7/week @ 2024-08-05 28/week @ 2024-08-12 5/week @ 2024-08-19 1/week @ 2024-09-02 14/week @ 2024-09-09 14/week @ 2024-09-16 45/week @ 2024-09-23 27/week @ 2024-09-30 1/week @ 2024-10-14 2/week @ 2024-10-21 24/week @ 2024-10-28 31/week @ 2024-11-04 70/week @ 2024-11-11

127 downloads per month
Used in 6 crates (via graphcast-sdk)

MIT/Apache

1.5MB
31K SLoC

Go 29K SLoC // 0.1% comments Rust 2K SLoC // 0.0% comments SQL 93 SLoC C 20 SLoC // 0.2% comments Shell 14 SLoC // 0.2% comments

Waku Rust bindings

github crates.io docs.rs build status

Rust api on top of waku-sys bindgen bindings to c ffi bindings.

Usage

Add this to your Cargo.toml:

[dependencies]
waku-bindings = "0.1.0"

About Waku

Waku is the communication layer for Web3. Decentralized communication that scales.

Private. Secure. Runs anywhere.

What is Waku?

Waku is a suite of privacy-preserving, peer-to-peer messaging protocols.

Waku removes centralized third parties from messaging, enabling private, secure, censorship-free communication with no single point of failure.

Waku provides privacy-preserving capabilities, such as sender anonymity,metadata protection and unlinkability to personally identifiable information.

Waku is designed for generalized messaging, enabling human-to-human, machine-to-machine or hybrid communication.

Waku runs everywhere: desktop, server, including resource-restricted devices, such as mobile devices and browsers. How does it work?

The first version of Waku had its origins in the Whisper protocol, with optimizations for scalability and usability. Waku v2 is a complete rewrite. Its relay protocol implements pub/sub over libp2p, and also introduces additional capabilities:

  1. Retrieving historical messages for mostly-offline devices.
  2. Adaptive nodes, allowing for heterogeneous nodes to contribute.
  3. Bandwidth preservation for light nodes.

This makes it ideal for running a p2p protocol on mobile, or in other similarly resource-restricted environments.

Read the Waku docs

Dependencies

~19–28MB
~375K SLoC