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.
maketo build a
libtelehash.aand some utility apps into
make testto run a full test suite, and
make staticto generate a current standalone
npm installto 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):
And these methods consume lobs (will be free'd):