Skip to content

This is a little blockchain simulator (similar to bitcoin right now) for educational purpose by Dr. PEI YAOYAO

Notifications You must be signed in to change notification settings

Nanyisong/Blockchain-simulator-exe

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Blockchain-simulator-exe

This is a little blockchain(similar to bitcoin right now) for educational purpose by Dr. PEI YAOYAO

Introduction

  • hash algrithom: Double sha256
  • encryption: ECDSA, p2ksh, p2sh might be possible later
  • consensus rule : proof of works
  • wallet: random wallet
  • peer type : all full peers, spv might be possible later
  • smart contract: might be possible later

Basic rule

Firsty,12 peers join the game. Everyone got 1000 yuan at the beginning. 1 yuan = 10 jiao = 100 fen. fen is the minimum monetary unit. The buttons are "Make random transaction","Reach one consusens","Make one specific transastions", "reach five consensus","add one peer into network",and "quit".Try hover mouse on the buttons and heros, u got tips.

Source code

The source codes will be open lattely. Plz wait a sec if you are interested.

Let's get started

chick the button below.

image

Make random transaction button

Heros will make random transactions each other.Just like this.

image

But we can see the transactions are unconfirmed before consensus reached.

image

Consensus button

** Click to let heros reach consensus.**

image We can see transactions are confirmed after consesus reached. The winner got subsidy and transaction fees.

image

Specific transaction button

** We can let heros make transactions with others. But at most 1000 fen limited.**

image

After that,we can see only one transactions in the net. Transactions will be written into blockchain after consensus reached

image

Five consensus reached button

Five ramdom transactions making and consensus will conducted continuously.

image

Add new peer button

Four peers at most and they are peniless.

image image

About

This is a little blockchain simulator (similar to bitcoin right now) for educational purpose by Dr. PEI YAOYAO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published