Go implementation of Waku v2 protocol
Go to file
Roman Zajic 097123a30e
chore: lightpush tests coverage improvement (#957)
2023-12-15 22:09:56 +08:00
.github chore: extract linux build to separate workflow (#918) 2023-11-22 09:13:23 -04:00
build
ci chore: update Nix version label for Jenkins CI (#936) 2023-11-29 17:16:22 -04:00
cmd/waku chore: remove bridging topics feature (#949) 2023-12-09 13:59:35 -04:00
coverage
docker Test: container image workflow (#792) 2023-10-05 08:34:36 +08:00
docs refactor: publish API for relay and lightpush (#845) 2023-10-30 12:30:25 -04:00
examples chore: fix c-bindings example (#915) 2023-11-22 19:35:20 +08:00
hooks
library feat: update store client Query API for autosharding (#885) 2023-11-14 04:22:46 +05:30
libs fix: use https for cloning submodules instead of ssh (#780) 2023-09-30 13:57:49 -04:00
logging Add messages logging subsystem 2023-11-10 13:54:52 +02:00
pkg
scripts/linux feat: v0.9.0 (#902) 2023-11-15 12:31:18 -04:00
tests chore: filter v2 tests push valid payload (#904) 2023-11-15 21:38:08 +08:00
waku chore: lightpush tests coverage improvement (#957) 2023-12-15 22:09:56 +08:00
.codeclimate.yml
.dockerignore
.gitignore
.gitmodules fix: use https instead of ssh for submodules 2023-12-08 14:40:30 -04:00
.golangci.full.yaml
CHANGELOG.md
Dockerfile fix: addr update 2023-10-17 09:00:30 -04:00
LICENSE-APACHEv2
LICENSE-MIT
Makefile fix(test): postgres (#912) 2023-11-20 08:51:29 -04:00
README.md chore: fix c-bindings example (#915) 2023-11-22 19:35:20 +08:00
VERSION feat: v0.9.0 (#902) 2023-11-15 12:31:18 -04:00
flake.lock
flake.nix fix: WakuMessage json encoding (#880) 2023-11-08 12:09:10 -04:00
go.mod fix: addr update 2023-10-17 09:00:30 -04:00
go.sum fix: nix build with RLN 2023-09-18 11:20:31 -04:00

README.md

go-waku

A Go implementation of the Waku v2 protocol.


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 \
  wakuorg/go-waku:latest \ 
    --dns-discovery \
    --dns-discovery-url enrtree://ANEDLO25QVUGJOUTQFRYKWX6P4Z4GKVESBMHML7DZ6YK4LGS5FC5O@prod.wakuv2.nodes.status.im \
    --discv5-discovery

or use the image:tag of your choice.

or build and run the image with:

docker build -t wakuorg/go-waku:latest .

docker run wakuorg/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.