Skip to content

Ravenstine/bitcoin-keygen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 [email protected] qrencode

Build

make

Install

sudo make install

About

A CLI tool that generates offline Bitcoin wallets

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published