Skip to content

Kadena blockchain client API for microcontroller and IoT devices.

Notifications You must be signed in to change notification settings

crankkio/kadena-client-api

Repository files navigation

kadena-client-api

Kadena blockchain client API for microcontroller and IoT devices. Created by Crankk.io for interfacing with the Kadena blockchain.

Overview

This library provides a lightweight client implementation for interacting with the Kadena blockchain from microcontrollers and IoT devices. It handles:

  • Secure communication with Kadena nodes
  • Payload encryption and hashing
  • Basic node synchronization
  • Command execution

Features

  • Minimal dependencies for embedded systems
  • Secure encryption using mbedTLS
  • Support for RSA and AES encryption
  • Base64 encoding/decoding
  • JSON parsing with ArduinoJson
  • Configurable blockchain endpoints
  • Basic wallet key validation
  • Command execution interface

Requirements

  • C++17 capable compiler
  • Arduino-compatible device
  • mbedTLS library
  • ArduinoJson library
  • Base64 library

Usage

Add this repository to your PlatformIO project's platformio.ini selecting the desired tag:

lib_deps =
    https://github.com/crankk/kadena-client-api.git#1.0.0

Testing

The library includes a test suite that can be run using PlatformIO's test runner.

Prerequisites

  • Python 3.x
  • PlatformIO CLI
  • Build essentials
  • mbedTLS development libraries

Running Tests (Linux)

  1. Install system dependencies:
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y libmbedtls-dev
  1. Install PlatformIO:
python -m pip install --upgrade pip
pip install platformio
  1. Run the tests:
pio test -e native -v

Credits

Created and maintained by Crankk.io

For more information about Kadena blockchain, visit kadena.io

About

Kadena blockchain client API for microcontroller and IoT devices.

Resources

Stars

Watchers

Forks

Packages

No packages published