An open API service indexing awesome lists of open source software.

https://github.com/ravenstine/bitcoin-keygen

A CLI tool that generates offline Bitcoin wallets
https://github.com/ravenstine/bitcoin-keygen

Last synced: about 2 months ago
JSON representation

A CLI tool that generates offline Bitcoin wallets

Awesome Lists containing this project

README

        

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](https://www.openssl.org/). 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](https://www.docker.com/) installed on your host and run the software in a container.

```sh
make image
make container
```

or

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

## Native Installation

### Prerequisites

You will need `gcc`, `libopenssl`, and `libqrencode`.

### Linux (Alpine)

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

### macOS

```sh
brew install gcc [email protected] qrencode
```

### Build

```sh
make
```

### Install

```sh
sudo make install
```