The Hushcom project is a sample distributed IRC-like chat program, which demonstrates how the ratnet project can be used to develop a full application.
The project includes both a client and server program.
API Docs are available here: https://godoc.org/github.com/awgh/hushcom
The main executable is in the hushcom/ folder, which also includes a REST-ful web interface that serves the actual UI to the browser.
The client/ folder implements the message handling/passing logic of the client.
The main executable is in the hushcomd/ folder.
The server/ folder implements the message handling/passing logic of the server.
Hushcom is interesting as an example for several reasons:
-
Implements signed and authenticated messages over ratnet, which does not normally provide them. This is meant to demonstrate how easy this is to do using existing components, as well as providing tested sample code to accomplish this.
-
Implements a browser-based UI using a REST interface and internal web server.
-
Cross-compiles to Android, where it has been deployed as an APK (native hushcomd plus simple UI app that just opens a browser widget to localhost)
-
Distributed IRC scheme. The Hushcom server only knows user and channel names and PUBLIC keys. The server cannot read the contents of any channel or private messages.
#Demo
There is an include webix-based demo which can be launched with the "go.bat" or "go.sh" command from the "wwwtest" directory. This will launch two client sessions which can be connected to via:
SSL Certs are self-signed, so you will likely have to click through some warnings.
From this point, you can create user profiles, add and join channels, and talk to yourself from one browser session to the other.
- Bencrypt, crypto abstraction layer & utils
- Ratnet, onion-routed messaging system with pluggable transports
- HushCom, simple IRC-like client & server
#Authors and Contributors
awgh@awgh.org (@awgh)