This is the code for the hardware implementation of the ESP32 microcontroller. Specifically, in this software, we are using version C3 of the ESP32 microcontroller (ESP32-C3), however, this code is compatible with all versions of ESP32.
For this hardware implementation, PlatformIO was chosen as the development environment and firmware builder.
PlatformIO is a VSCode extension. Install VSCode if you don't already have it.
git clone https://github.com/MicroSui/microsui-esp32.git
Open the PlatformIO extension, click on Open in Quick Access, and select the project folder where you cloned it.
Start your project from scratch, or begin with a reliable starting point by browsing the available examples.
Once you finish your project, compile and upload the firmware to the ESP32 by clicking Upload and Monitor in PlatformIO’s Project Tasks.
These are the available examples in this Hardware Implementation:
signOfflineFromHexaPk– Generate an offline Sui signature from a fixed message using a hexadecimal private key.signOfflineFromBech32Pk– Generate an offline Sui signature from a fixed message using a Sui Bech32 private key.
- If you want to use another version of ESP32 you simply need to change it to the version you want by modifying
board = xxxxxxx(board = esp32-c3-devkitm-1by default) in the/platformio.inifile in the root of the project.