Skip to main content

A secure reversable crypto currency

Project description


Bitcoinpy is a Python implementation of Bitcoin to help understand the internals of Bitcoin easy.

Bitcoinpy project is aimed at developers who want to learn about the internal workings of Bitcoin. We created this project so it it is easy to read, understand and modify Bitcoin. Bitcoinpy was developed in Python, so that someone with a little bit of programming ability can read and understand the inner workings of Bitcoin. Lots of helpful documentation is provided to help understand the higher level workings of system and its components. Project is implemented in a very modular fashion, so that if someone wants to change the functionality of a component, they can change or replace that particular component and reuse the rest of the code to test their change without lot of changes. Additional tools like the code for creating genesis block, creating and signing transactions, dumping information from blocks, analyzing the blockchain and other debugging tools have been provided to help developers easily bootstrap and debug new alt coins.

In order to keep the code lightweight we reused the libraries including the Bitcoinlib by Jeff Garzik and others. Code contains all the components including the full bitcoin client, server, wallet and miner. However, some of the components like P2SH, alert messages and more are missing. We will add support for missing functionality, albeit slowly. if you would like to contribute, please feel free to fork the project, hack it and send a pull request. We will gladly accept your changes. Any contributions including documentation are welcome.

How to install on Ubuntu

From source repo:

  • Clone this repository: “git clone ~/reversecoin”
  • Install dependencies: sudo apt-get install python-dev libleveldb1 python-gevent python-leveldb python-bsddb3 python-sqlite
  • After installing dependencies, cd into reversecoin folder and install reversecoin using the command “sudo python install”

From PyPI:

  • Install dependencies: sudo apt-get install python-dev libleveldb1 python-gevent python-leveldb python-bsddb3 python-sqlite
  • Run sudo pip install reversecoin


How to run tests

Reversecoin uses tox and nose for testing. To run tests, simply cd into reversecoin folder and enter the command “tox”. Selective tests can be run using the command “$ tox – tests.api.test_wallet:TestWallet.test_info”. If you want to start reversecoind and reversecoin-miner for manual testing, enter into virtualenv by using “source ~/reversecoin/.tox/py27/bin/activate”, then run the commands “reversecoind” for running the reversecoin daemon and “reversecoin-miner” for mining coins.

Note: You don’t need root access to run the above commands as all the setup takes place in virtualenv.

Project details

Download files

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

Files for reversecoin, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size reversecoin-0.0.7-py2.py3-none-any.whl (112.1 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size reversecoin-0.0.7.tar.gz (105.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page