Coder Social home page Coder Social logo

tokensdl / bitbox02-firmware Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitboxswiss/bitbox02-firmware

1.0 0.0 0.0 28.22 MB

Firmware code of the BitBox02 hardware wallet

Home Page: https://shiftcrypto.ch/bitbox02

License: Apache License 2.0

Shell 0.39% C++ 1.24% Python 7.08% C 71.11% Go 0.72% Rust 17.63% Makefile 0.23% CMake 1.50% GDB 0.01% Dockerfile 0.11%

bitbox02-firmware's Introduction

Build Status CI

The BitBox02 is a hardware wallet that simplifies secure handling of crypto coins through storing private keys and signing transactions. The content of this repository is the bootloader and firmware used on the device. The BitBox02 is meant to be used primarily with the BitBox App, although third party integration is possible through the BitBox02 API.

The main functionality of the firmware is the following:

  • Safely receive and send coins.
  • Interacting with the user through touch sliders and a display.
  • Back up the seed to a microSD card.
  • Back up the seed by displaying the BIP39 mnemonic encoding on the screen.
  • Import 12, 18 or 24 word BIP39 mnemonics
  • Generate a random seed from multiple strong sources of entropy.
  • Protect the seed from attackers.
  • Derive keys from the seed according to BIP39 and BIP32.
  • Return the extended public key for a keypath so that the app can find all unspent transaction outputs.
  • Display the receive address for the keypath, coin and script/address type.
  • Display the receive address, transaction amount and network fee and sign each input after confirmation.

Architecture

The main chip on the device is the microcontroller from Microchip (atsamd51j20a). This chip is used for communication to the BitBoxApp via USB, to the user via the sliders and to the secure element (atecc608a) via I2C.

Sliders

The sliders along the edges of the device are used for user input. There are three input gestures:

  • Tap
  • Slide
  • Hold to confirm

USB

The USB communication is implemented using the request-response pattern with enecrypted protobuf messages. The encryption protocol used is Noise with out-of-band authentication.

Hardware docs

PCB schematics v2.1

PCB bill of materials (BOM) v2.1

PCB x-ray v2.1

Contributing

The instructions for setting up a development environment can be found in BUILD.md. Please also read our CONTRIBUTING.md before filing issues and pull requests.

Reporting a vulnerability

See our security policy.

bitbox02-firmware's People

Contributors

beerosagos avatar benma avatar conte91 avatar cstenglein avatar douglasbakkum avatar jadzeidan avatar jgriffiths avatar jonathancross avatar jstrnbrg avatar my1 avatar nickez avatar offbyn avatar stadicus avatar stdsu avatar thecharlatan avatar tomasvrba avatar x1ddos avatar

Stargazers

 avatar

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.