Skip to content

How to generate a Bitcoin wallet with Python. Step by step tutorial.

Notifications You must be signed in to change notification settings

morfin/bitcoin_wallet_tutorial_with_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Step by Step Bitcoin Wallet Tutorial

Are you a developer trying to figure out how a bitcoin "wallet" is actually generated without getting into all the ins and outs? This guide might help you.

The guide is based on this excellent webpage: http://www.mobilefish.com/services/cryptocurrency/cryptocurrency.html So most of the comments where extrated from that page.

The procedural code demo will introduce you to all the concepts involved in the creation of a bitcoin wallet. If you follow the code step by step in main.py and utils.py, some of your basic questions regarding Private Keys, Public Keys, WIF's, uncompressed/compressed WIF's, etc. will be answered by looking at an actual implemenation.

This guide will assume that you know the basics of the following topics:

  • Numeral systems: base-2 (binary), base-10 (decimal), base-16 (hexadecimal), base-58
  • Asymmetric cryptography A.K.A Public Key Cryptography
  • Hashing

In order to follow along, you'll need Python 2.7 and some crypto/bitcoin libraries:

$ pip install hashlib
$ pip install pybitcointools 
$ pip install pybitcoin

Once those libraries are installed, you can just simply run the main.py (Python 2.7):

$ python main.py

References & Resources:

Disclaimer:

The provided code is only intended to show you the basics of a bitcoin wallet creation. Use the code at your own risk.

License

MIT

About

How to generate a Bitcoin wallet with Python. Step by step tutorial.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages