Skip to content
/ go-waku Public
forked from waku-org/go-waku

Go implementation of Waku v2 protocol

License

Notifications You must be signed in to change notification settings

szkl/go-waku

This branch is 121 commits behind waku-org/go-waku:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 1, 2024
Jun 19, 2022
Feb 14, 2024
Apr 17, 2024
Apr 14, 2023
Oct 5, 2023
Mar 20, 2024
Mar 25, 2024
Aug 16, 2023
Mar 20, 2024
Sep 30, 2023
Nov 10, 2023
Jun 19, 2022
Nov 15, 2023
Nov 15, 2023
Apr 17, 2024
Sep 8, 2023
Oct 15, 2021
Apr 16, 2024
Dec 8, 2023
Sep 14, 2023
Mar 11, 2021
Oct 17, 2023
Mar 11, 2021
Mar 11, 2021
Jan 3, 2024
Mar 20, 2024
Nov 15, 2023
May 4, 2023
Mar 25, 2024
Mar 25, 2024
Mar 25, 2024

Repository files navigation

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://AIRVQ5DDA4FFWLRBCHJWUWOO6X6S4ZTZ5B667LQ6AJU6PEYDLRD5O@sandbox.waku.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.

About

Go implementation of Waku v2 protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.5%
  • Other 1.5%