Skip to content

francescolavra/iota-c-library

 
 

Repository files navigation

embedded IOTA C library

Alpha version:

API might change over time. Don't use it in production environments!

Design:

This library is designed to make it possible to use IOTA on really small embedded devices. The library has the following attributes:

  • Thread-safe (optional feature, enabled with the IOTA_THREADSAFE pre-processor definition; if enabled, it uses POSIX mutexes)
  • Low footprint
  • Usable on devices without MMU
  • C99 compliant

A notice to trytes:

Due to confusion of several people, a short explanation about the conversions. The API for the conversion is available in conversion.c and conversion.h.

In this context the following words have the following meaning:

Chars: Means the char representation of an Tryte. (ASCII character) A - Z and 9. (base-27 encoded ternary number) Bytes: Means a byte representation of trytes, optimized for low storage and memory usage.
Trits: Means a int8_t array representation of trits.
Trytes: Means a int8_t array representation of trytes.

Conversion space ratio

One transaction = 2673 trytes = ((2673/81) * 48) Bytes = 2673*3 Trits = 2673 chars

Usage:

Generation of addresses

Coming soon.

Generation of transactions and bundles

Coming soon.

About

embedded IOTA C library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.3%
  • Shell 5.5%
  • C++ 1.9%
  • Other 1.3%