# go-waku A Go implementation of the [Waku v2 protocol](https://specs.vac.dev/specs/waku/v2/waku-v2).
## Install #### Building from source ``` git clone https://github.com/status-im/go-waku cd go-waku make # See the available command line options with ./build/waku --help ``` #### Docker ``` docker build -t go-waku:latest . docker run go-waku:latest --help ``` #### Building on windows Windows requires the following tools to be installed - git bash (which is installed as part of [Git](https://git-scm.com/downloads)) - [chocolatey](https://chocolatey.org/install) - [make](https://community.chocolatey.org/packages/make) - [mingw](https://community.chocolatey.org/packages/mingw) - [go](https://go.dev/doc/install) ## Library ``` go get github.com/status-im/go-waku ``` ## C Bindings ``` make static-library make dynamic-library ``` ## Mobile libraries Requires [`gomobile`](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile) ``` make mobile-android make mobile-ios ``` ## Tutorials and documentation - [Receive and send messages using Waku Relay](docs/relay.md) - [Send messages using Waku Lightpush](docs/lightpush.md) - [Encrypting and decrypting Waku Messages](docs/encoding.md) - [Retrieve message history using Waku Store](docs/store.md) - [C Bindings](library/README.md) ## Examples Examples of usage of go-waku as a library can be found in the `examples/` folder: - [**basic2**](tree/master/examples/basic2) - demonstrates how to send and receive messages - [**chat2**](tree/master/examples/chat2) - simple chat client using waku relay / lightpush + filter / store protocol to send/receive messages and retrieve message history - [**filter2**](tree/master/examples/filter2) - demonstrates how to use filter protocol - [**c-bindings**](tree/master/examples/c-bindings) - simple program to demonstrate how to consume the go-waku library via C FFI - [**waku-csharp**](tree/master/examples/csharp) - C# console application that uses the go-waku library via FFI - [**android-kotlin**](tree/master/examples/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: - [Go](https://golang.org/) (version 1.15 or later) - [protoc](https://grpc.io/docs/protoc-installation/) - [Protocol Buffers for Go with Gadgets](https://github.com/gogo/protobuf) To enable the git hooks: ```bash 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](https://github.com/status-im/go-waku/issues/new/). For more general discussion, help and latest news, join **#go-waku** on [Vac Discord](https://discord.com/channels/864066763682218004/865466710924460034) or [Telegram](https://t.me/vacp2p). ## License Licensed and distributed under either of * MIT license: [LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT or * Apache License, Version 2.0, ([LICENSE-APACHEv2](LICENSE-APACHEv2) or http://www.apache.org/licenses/LICENSE-2.0) at your option. These files may not be copied, modified, or distributed except according to those terms.