machinefi / web3-iot-sdk

A general-purpose embedded SDK for connecting smart devices to Web3 applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instruction

A cortex-m3 based embedded rust program that implements ed25519 key generation by calling iot sdk. The program can be run via qemu or downloaded directly to the stm32f103 development board.The program was compiled on an X86_64 Ubuntu 18.04.6 LTS system.

Build io sdk library

git clone git@github.com:machinefi/web3-iot-sdk.git

cd  web3-iot-sdk

cmake -DGIT_SUBMODULE_UPDATE=ON -DBUILD_IOTEX_F=ON -DCRYPTO_IMPL="MbedTLS"  -S ./ -B ./build-out

cmake --build build-out

Build embedded rust program

Run program in qemu

cd no_std/app

cargo run --target  thumbv7m-none-eabi  --toollchian  nightly-x86_64-unknown-linux-gnu

Generate a binary program to run on the stm32fl03 development board

cd no_std/app

cargo  objcopy  --bin app --release  --features "uart_print"  -- -O binary app.bin   --target  thumbv7m-none-eabi  --toollchian  nightly-x86_64-unknown-linux-gnu

About

A general-purpose embedded SDK for connecting smart devices to Web3 applications


Languages

Language:C 91.1%Language:CMake 4.2%Language:Rust 3.3%Language:Python 1.3%Language:Assembly 0.1%Language:Shell 0.0%Language:Dockerfile 0.0%