AlexLee1999 / Blockchain-in-Python

A pseudo bitcoin program written in Python3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blockchain in Python

Table of Content

Introduction

This is a program of psuedo bitcoin.
The program demostrates how the bitcoin works.

How to Run

    python3 -m pip install -r requirements.txt
    python3 -m main

Usage:

 ./psudobitcoin createwallet
 ./psudobitcoin createblockchain -address <address>
 ./psudobitcoin printchain
 ./psudobitcoin printblock -height <height>
 ./psudobitcoin send -from <from> -to <to> -amount <amount>
 ./psudobitcoin getbalance -address <address>

Functions

  • Block, Blockchain, Pow
  • Database, Client
  • Utxo
  • Mining Reward
  • Merkle Tree
  • Sign and Verify(TBD)

Requirements

  • Python >= 3.6
  • base58
  • ecdsa

About

A pseudo bitcoin program written in Python3


Languages

Language:Python 100.0%