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
- Host: GitHub
- URL: https://github.com/ravenstine/bitcoin-keygen
- Owner: Ravenstine
- License: cc0-1.0
- Created: 2023-11-22T05:12:45.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-22T15:17:02.000Z (over 1 year ago)
- Last Synced: 2025-02-10T08:32:11.078Z (4 months ago)
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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
```