telehash tools library in c
This is a full implementation of telehash in portable c for embedded systems, designed to be source that can be copied into other projects.
make to build a
libtelehash.a and some utility apps into
make test to run a full test suite, and
make static to generate a current standalone
npm install to automatically install optional crypto dependencies (libsodium and libtomcrypt).
e3x_*: all of the crypto handling
link_*: higher level easy interfaces for apps
ext_*: various useful extensions to a mesh to support built-in channels
net_*: transport and networking handling
util_*and libs: portable utilities and bundled libs
There's many examples of usage in the bundled tests.
Most of the codebase uses lob_t as the primary data type since it handles JSON and binary for all packets.
The following methods return generated lobs (you must free):
- mesh_on_open (callback must return or free the given lob)
And these methods consume lobs (will be free'd):