Skip to main content

Overview

microsuilib-logo

The code lines presented in the MicroSui documentation are primarily intended for projects targeting microcontrollers and embedded hardware systems, where C is the officially supported language.

MicroSui provides, through open-source code, the ability for devices that were previously disconnected from the blockchain to become operational, allowing them to connect, interact with the blockchain, and perform cryptographic operations oriented toward the development of the Sui Network Blockchain.

Although MicroSui is designed for microcontrollers and embedded systems, it is compatible with any platform. Thanks to the simplicity of C, many Sui Network cryptographic operations can be executed more efficiently using MicroSui’s core functions, with the added benefit of a C API designed for easy and safe language bindings.

Main Components

The MicroSui Framework includes microsui-lib repository, a lightweight implementation in C language.

It’s designed to be compatible with virtually any device or computer.

That said, let’s be brutally honest: there’s little reason to use it on powerful systems where robust solutions like Mysten’s TypeScript SDK are available. In those cases, it is strongly recommended to use the tools offered by Mysten Labs, for obvious reasons.

microsui-lib is truly valuable in constrained environments devices where firmware MUST be written in C. That’s where the library truly shines, offering a unique solution where no alternatives exist.

MicroSui Core C API library

The MicroSui Core C API library provides the low-level, portable building blocks of the framework, exposing minimal and deterministic C functions for key management, signing, encoding, and core Sui cryptographic operations.

This layer is designed to be lightweight, predictable, and suitable for highly constrained environments, serving as the foundation for higher-level abstractions such as the MicroSui SDK.

These functions are designed to run on virtually any device, regardless of how constrained it may be, and remain fully functional even on 8-bit microcontrollers.

MicroSui SDK

The MicroSui SDK is a higher-level abstraction layer built on top of the MicroSui Core C APIs.

While the Core layer exposes low-level, portable C functions designed to run on virtually any microcontroller, the SDK introduces an object-style programming model implemented in pure C (using structs + function pointers), inspired by modern Object Oriented SDKs such as Mysten Labs’ TypeScript SDK.

This approach provides a more expressive and ergonomic developer experience, closer to Object Oriented languages like TypeScript, while remaining compatible with embedded constraints.

Platform Support & Compatibility

IMPORTANT NOTE

A full MicroSui SDK support relies on features that may require:

  • Internet connectivity
  • Networking stacks (HTTP stack)

As a result, SDK support is currently fully supported and production-stable on:

  • ESP32 family (all variants)
  • Desktop platforms (Windows, macOS, Linux, Unix)

Support for additional embedded architectures may be introduced in future releases.