Skip to main content

A simple Bitcoin address generator

Project description

Bitcoin Address

Bitcoin Wallet Address Generator

This is a simple Bitcoin wallet address generator coded in Python 3. It generates a Private Key in different formats (hex, wif and compressed wif) and corresponding Public Addresses, raw, P2WPKH addresses starting with prefix 1, P2SH addresses starting with prefix 3 as part of Segwit soft fork and Bech32 addresses with prefix bc1 P2WPKH and P2WSH.

Installation

pip install -r requirements.txt

Usage:

from bitcoinaddress import Wallet
wallet = Wallet()
print(wallet)

Output:

Private Key HEX: 562997b9379008a97d7e4cbf6f19c41d4c348de96199aba44c79e3b32f1cc174
Private Key WIF: 5JUEV9pjH4o16NRTBsaN18ehDNaqSsD66EySbT1BZsSvYQttmga
Private Key WIF compressed: Kz7CXFwfbuk3QhYvazEFhamNVcGLqAcMU8g7y3moe5fRKZXZaj7k

Public Key: 04e7ba7ecb0fccaae6bbe1d1493a1dc2e6d266006374411af3ff82546490ffef67cd2e06d0e385b695fe2eaf436d61559837571d989b413e75d763127f628a05f3
Public Key compressed: 03e7ba7ecb0fccaae6bbe1d1493a1dc2e6d266006374411af3ff82546490ffef67

Public Address 1: 1oKgBdYNyNiW5ntjEpJwsJwRZ1Qr9cPce
Public Address 3: 3K55C3EdCJYZWoc95Tt7CbXnUkDSaVeZrC
Public Address bc1 (P2WPKH): bc1q363sj8rhw0uqmxurraa0rtydhp32cyuke4lfwt 
Public Address bc1 (P2WSH): bc1qsy38c4na9fm0y5pvyhja0hscpx5my290pgwgeq5eduvdqmejkwyq0whxpw

Authors

Pedro Fortes and others who contribute.

License

This software is distributed under the terms of the MIT License. See the file 'LICENSE' in the root directory of the present distribution, or http://opensource.org/licenses/MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitcoinaddress-0.0.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bitcoinaddress-0.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file bitcoinaddress-0.0.1.tar.gz.

File metadata

  • Download URL: bitcoinaddress-0.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for bitcoinaddress-0.0.1.tar.gz
Algorithm Hash digest
SHA256 382dc5ffd4456c7fce38f80ab8516907e236603b9d915dce8d804cafd94bdee5
MD5 104825bead202dc23fd666c89fe113f9
BLAKE2b-256 6b8c195891aaeab33adf6c3f7eb7d00348cb2c5c93e3568f418daa7951617076

See more details on using hashes here.

File details

Details for the file bitcoinaddress-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: bitcoinaddress-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for bitcoinaddress-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e1fb183824d5be84708e14ab59c5ae44e636fce96777f5e1a3d3908c2f0871f
MD5 e8584d0ceba9d327d13c90c251f612df
BLAKE2b-256 076f01d50bde2defa8662ad74604866e08b610720889e825fbbfe94a81fe653c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page