Skip to content

Build your own Custom Offline Bitcoin Seed Generation device with the help of M5StickC.

Notifications You must be signed in to change notification settings

prakashrx/bitcoin-seed-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Bitcoin Mneumonic generator for MstickC.

A simple dedicated device that can be used to generate a 12/24 word mneumonic offline. It uses the inbuilt hardware (6-axis IMU SH200Q) and to generate entropy.

MstickC

Hardware

MstickC

Software

  1. Visual Studio Code
  2. PlatformIO extention for VSCode
  3. Git

Build

  • Checkout code
git clone https://github.com/prakashr1984/bitcoin-seed-generator.git
cd bitcoin-seed-generator
  • Open the bitcoin-seed-generator folder in VS Code.
  • PlatformIO: Build Build

Upload Firmware to MstickC

  • Make sure you have the device connected via USB
  • PlatformIO: Upload Build

Dependencies

This project uses M5StickC and uBitcoin library

Dependencies for this project are defined in platform.ini

lib_deps =
  https://github.com/m5stack/M5StickC.git#0.2.0
  https://github.com/micro-bitcoin/uBitcoin.git

Developer Guide

Please refer to the uBitcoin doc to learn about the API's available in the bitcoin library.

The main source code resides in src/ folder.

.
+-- src
|   +-- main.cpp
|   +-- Mnemonic.cpp
|   +-- Mnemonic.h

main.cpp - contains the bare minimum UI and code for seed generation. At present it uses the M5stick IMU library functions getAccelData , getGyroData to generate a randomness. It also uses getTempData to increase this randomness.

Mnemonic.cpp/.h - contains a custom logic for generating a random seed based on a sequence of float values (from any analog input pin of a device).

ToDo

  • Imporve the UI
  • Additinal tools
    • Generate Checksum word
    • Generate Recieve addresses based on xpub stored on the device.
    • Generate a series of 24 word Seeds from an existing Seed ?
    • More...

About

Build your own Custom Offline Bitcoin Seed Generation device with the help of M5StickC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages