Skip to content

blackholemedia/bc_demo

Repository files navigation

Bitcoin with python

standard-readme compliant

This is the python implementation of bitcoin .

Table of Contents

Security

left blank

Background

In order to explore the mechanism of bitcoin, I create this project with python.You will know how bitcoin work by this project

Reference: Going the distance

Install

Just clone the repo. You need to setup python3 environment first. And redis is necessary.

git clone https://github.com/blackholemedia/bc_demo.git
pip install -r requirements.txt
# install redis in opensuse 
zypper install redis-server

Usage

You need to start redis locally.

Start from cli, the entry is base.py, just like this python base.py -p. Here are the options:

-p --print: print block chain
-c --create_wallet: create a wallet
-s --show_wallets: show all wallets
-b --balance: get balance of provided address
-f --from address1 -t --to address2 -a --amount 8: transfer currency

API

left blank

More optional sections

Contributing

See contributors of this repo.

PRs accepted.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

left blank

TODO

Consensus implementation

About

Demo implementation of block chain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages