Go implementation of Waku v2 protocol
Go to file
richΛrd 88d69ebccd
feat: force reachability (#778)
2023-09-28 16:08:40 -04:00
.github chore: Update auto assign pr gh command (#761) 2023-09-22 01:13:20 -07:00
build chore: release (#255) 2022-06-19 17:50:37 -04:00
ci ci: use latest and stable Docker tags based on job name 2023-09-22 15:11:25 +02:00
cmd/waku feat: force reachability (#778) 2023-09-28 16:08:40 -04:00
coverage chore: automate cc-test-reporter install 2023-04-14 12:08:48 -04:00
docs update wakuv2 fleet DNS discovery enrtree (#775) 2023-09-28 08:34:30 -04:00
examples update wakuv2 fleet DNS discovery enrtree (#775) 2023-09-28 08:34:30 -04:00
hooks Chore/pre commit check to run go.mod for all examples (#647) 2023-08-16 17:56:57 +05:30
library feat: change UnsubscribeWithSubscription so that it's single sub-specific 2023-09-22 17:53:33 +03:00
logging chore(lint): adds `make lint-full` target and fixes some linting errors 2023-09-12 09:54:34 -04:00
pkg chore: release (#255) 2022-06-19 17:50:37 -04:00
scripts/linux ci: use wakuorg Docker Hub organization 2023-09-20 12:45:27 +02:00
tests chore(lint): adds `make lint-full` target and fixes some linting errors 2023-09-12 09:54:34 -04:00
waku update wakuv2 fleet DNS discovery enrtree (#775) 2023-09-28 08:34:30 -04:00
.codeclimate.yml chore(rln-relay): use the only key from keystore if only 1 exists 2023-09-08 12:05:32 -04:00
.dockerignore Dockerfile: add commit, log format, and make target (#83) 2021-10-15 12:47:23 +02:00
.gitignore feat: add serviceSlot ds (#684) 2023-08-30 18:57:22 +07:00
.gitmodules chore: compile smart contracts and generate types 2023-09-04 10:02:14 -04:00
.golangci.full.yaml feat: make RLN available by default 2023-09-14 09:03:18 -04:00
CHANGELOG.md Initial commit 2021-03-11 16:27:12 -04:00
Dockerfile chore(rln-relay): docs and docker 2023-09-14 14:30:48 -04:00
LICENSE-APACHEv2 Initial commit 2021-03-11 16:27:12 -04:00
LICENSE-MIT Initial commit 2021-03-11 16:27:12 -04:00
Makefile ci: use wakuorg Docker Hub organization 2023-09-20 12:45:27 +02:00
README.md update wakuv2 fleet DNS discovery enrtree (#775) 2023-09-28 08:34:30 -04:00
VERSION feat: 0.8.0 2023-09-17 15:10:25 -04:00
flake.lock nix: upgrade nixpkgs to include xcodeWrapper fixes 2023-05-04 15:23:52 +02:00
flake.nix Use PubsubTopic naming; enforce unique ContentTopics (#750) 2023-09-19 18:22:11 +05:30
go.mod fix: nix build with RLN 2023-09-18 11:20:31 -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 \ # or, the image:tag of your choice
    --dns-discovery:true \
    --dns-discovery-url:enrtree://ANEDLO25QVUGJOUTQFRYKWX6P4Z4GKVESBMHML7DZ6YK4LGS5FC5O@prod.wakuv2.nodes.status.im \
    --discv5-discovery

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.