Go implementation of Waku v2 protocol
Go to file
Prem Chaitanya Prathi 20040f2e9b
fix: data race in filter unsubscribe
2023-08-05 08:03:19 +05:30
.github Update milestone.md 2023-08-03 18:31:11 +05:30
build chore: release (#255) 2022-06-19 17:50:37 -04:00
ci ci: cleanup Ganache container after tests finish 2023-05-05 18:24:06 +02:00
cmd/waku Feat/peer manager (#596) 2023-08-03 21:51:15 +05:30
coverage chore: automate cc-test-reporter install 2023-04-14 12:08:48 -04:00
docs doc: fix node.New examples 2023-07-03 10:48:34 -04:00
examples chore:dependency fixes 2023-08-04 17:24:27 +05:30
hooks feat: add git hook 2021-10-18 14:43:48 +02:00
library feat(c-bindings): websockets support 2023-07-07 11:06:43 -04:00
logging chore: switch to Google's Protobuf library 2023-02-16 11:37:59 -04:00
mobile Feat/peer manager (#596) 2023-08-03 21:51:15 +05:30
pkg chore: release (#255) 2022-06-19 17:50:37 -04:00
scripts/linux chore: setup linux ci for .deb 2022-12-06 15:48:48 -04:00
tests Feat/peer manager (#596) 2023-08-03 21:51:15 +05:30
waku fix: data race in filter unsubscribe 2023-08-05 08:03:19 +05:30
.dockerignore Dockerfile: add commit, log format, and make target (#83) 2021-10-15 12:47:23 +02:00
.gitignore fix(rln): onchain tests 2023-04-26 12:12:10 -04:00
.gitmodules chore: use static rln lib and fix lint 2022-08-15 14:40:10 -04:00
.golangci.yaml feat: use generic flags and convert values to specific data types 2022-08-15 15:22:13 -04:00
CHANGELOG.md
Dockerfile fix: update docker image 2023-05-08 14:49:42 -04:00
LICENSE-APACHEv2
LICENSE-MIT
Makefile fix: race condition in rendezvous test code 2023-08-04 16:37:45 +05:30
README.md feat(filter): get subscription list 2023-05-08 17:37:15 -04:00
VERSION feat: 0.7.0 2023-06-26 13:55:46 -04:00
flake.lock nix: upgrade nixpkgs to include xcodeWrapper fixes 2023-05-04 15:23:52 +02:00
flake.nix refactor: use uint instead of int for RLN indexes 2023-08-03 11:17:50 -04:00
go.mod refactor: use uint instead of int for RLN indexes 2023-08-03 11:17:50 -04:00
go.sum refactor: use uint instead of int for RLN indexes 2023-08-03 11:17:50 -04:00

README.md

go-waku

A Go implementation of the Waku v2 protocol.

Total alerts

Install

Building from source

git clone https://github.com/waku-org/go-waku
cd go-waku
make

# See the available command line options with
./build/waku --help

Nix

You can build Waku v2 node using Nix Flakes:

nix build github:waku-org/go-waku

Or build the library using:

nix build github:waku-org/go-waku#library

To start a shell with build dependencies use:

nix develop

Docker

docker run -i -t -p 60000:60000 -p 9000:9000/udp \
  statusteam/go-waku:v0.5.2 \ # or, the image:tag of your choice
    --dns-discovery:true \
    --dns-discovery-url:enrtree://AOGECG2SPND25EEFMAJ5WF3KSGJNSGV356DSTL2YVLLZWIV6SAYBM@prod.waku.nodes.status.im \
    --discv5-discovery

or build and run the image with:

docker build -t go-waku:latest .

docker run go-waku:latest --help

Building on windows

Windows requires the following tools to be installed

Library

go get github.com/waku-org/go-waku

C Bindings

make static-library
make dynamic-library

Mobile libraries

Requires gomobile

make mobile-android
make mobile-ios

Tutorials and documentation

Examples

Examples of usage of go-waku as a library can be found in the examples/ folder:

  • basic2 - demonstrates how to send and receive messages
  • chat2 - simple chat client using waku relay / lightpush + filter / store protocol to send/receive messages and retrieve message history
  • filter2 - demonstrates how to use filter protocol
  • c-bindings - simple program to demonstrate how to consume the go-waku library via C FFI
  • waku-csharp - C# console application that uses the go-waku library via FFI
  • android-kotlin - android app that uses a .jar generated by gomobile using kotlin

Contribution

Thank you for considering to help out with the source code! We welcome contributions from anyone on the internet, and are grateful for even the smallest of fixes!

If you'd like to contribute to go-waku, please fork, fix, commit and send a pull request. If you wish to submit more complex changes though, please check up with the core devs first to ensure those changes are in line with the general philosophy of the project and/or get some early feedback which can make both your efforts much lighter as well as our review and merge procedures quick and simple.

To build and test this repository, you need:

To enable the git hooks:

git config core.hooksPath hooks

Bugs, Questions & Features

If you encounter any bug or would like to propose new features, feel free to open an issue.

For more general discussion, help and latest news, join #go-waku on Vac Discord or Telegram.

License

Licensed and distributed under either of

or

at your option. These files may not be copied, modified, or distributed except according to those terms.