Giter VIP home page Giter VIP logo

firmware's Introduction

Firmware Guideline

Chip

ARM SC300, cortex M3 level 192MHz RAM:384KB FLASH:512KB IO:USB/SPI/UART/GPIO/ADC, secure boot,OTP and MPU

IDE

KEIL5, armcc and arm-gcc compile schnorrkel libsr.a to hex with arm-gcc and using fixed function address to access by main project compiled by armcc.

modules

USB

HAL

  • FLASH
  • TIMER
  • Button control via GPIO
  • OLED screen via SPI

Wallet

  • Entropy generate using hardware random source which is physical noise
  • Entropy to Mnemonic
  • Mnemonic recovery and back up using only screen and buttons on device
  • Mnemonic to seed
  • Seed to root private key
  • Derive for each coins

Bootloader

There will be a secure boot-loader for the firmware update. It will verify the hash and signature of the main firmware of course.
Build test tools by sending USB commands in test scripts to test the firm on EVB abd we wll have strictly code security review.

How to complie schnorrkel for Cortex

Core list:

  • thumbv6m-none-eabi, for the Cortex-M0 and Cortex-M1 processors
  • thumbv7m-none-eabi, for the Cortex-M3 processor
  • thumbv7em-none-eabi, for the Cortex-M4 and Cortex-M7 processors
  • thumbv7em-none-eabihf, for the Cortex-M4F and Cortex-M7F processors

Add target

rustup target add thumbv7m-none-eabi //for M3 cargo build --target thumbv7m-none-eabi

or

Create .cargo/config and add [build] target = "thumbv7m-none-eabi" # Cortex-M3

TO BE DONE

  1. Git Clone https://github.com/w3f/schnorrkel Set all dependcies to no_std
  2. merlin a. rand_core = { version = "0.3", default-features = false } b. byteorder = { version = "1.2.4", default-features = false } c. keccak = { version = "0.1.0", default-features = false } d. close [dev-dep..] e. close [features] f. strobe.rs //use std::ops::{Deref, DerefMut}; use core::ops::{Deref, DerefMut}; g.transcript.rs finalise_simple() finalise_trng()

2.ed25519-dalek a.secret.rs and ed25519.rs close generate b.close rand dep

Set backend to 32bit

Add static lib to toml [lib] name = "sr" path = "src/lib.rs" crate-type = ["staticlib"]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.