Ravenstine / bitcoin-keygen

A CLI tool that generates offline Bitcoin wallets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bitcoin Keygen

This is an example implementation of Bitcoin private key and address generation. It simply prints a mainnet private key (WIF) and a bech32 Bitcoin address, as well as QR codes for the purpose of creating an offline wallet. Cryptographic functions come from OpenSSL. The base58 and bech32 implementations are built-in. It does not create hierarchical-deterministic wallets or use mnemonics.

Disclaimer

DO NOT use addresses generated by this program to keep any significant amount of wealth. Use AT YOUR OWN RISK! The author of this program WILL NOT be held responsible for lost funds or any other negative consequences as a result of running said program. No guarantees are being made by the author.

Containerized Usage

The easiest way to use this software is to have Docker installed on your host and run the software in a container.

make image
make container

or

docker build -t bitcoin-keygen .
docker run --rm --network none bitcoin-keygen

Native Installation

Prerequisites

You will need gcc, libopenssl, and libqrencode.

Linux (Alpine)

apk update
apk add build-base openssl-dev libqrencode-dev

macOS

brew install gcc openssl@3.1 qrencode

Build

make

Install

sudo make install

About

A CLI tool that generates offline Bitcoin wallets

License:Creative Commons Zero v1.0 Universal


Languages

Language:C 90.6%Language:Dockerfile 6.0%Language:Makefile 3.4%