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.
- Checkout code
git clone https://github.com/prakashr1984/bitcoin-seed-generator.git
cd bitcoin-seed-generatorThis 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
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).
- 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...


