Skip to content

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

Notifications You must be signed in to change notification settings

machinefi/web3-iot-sdk

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published