Skip to content

albertocevallos/Intro_To_Cryptoeconomic_Modelling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

Intro_To_Cryptoeconomic_Modelling

Overview

This is the code for this Medium article published by Alberto Cevallos on using Python for mechanism design.

Content

  • Part I: Build a Simple Blockchain Using Python
  • Part II: Design and Test Mechanism

Take into account that blockchain protocols couple different types of mechanisms for different purposes (using PoW or PoS for sybil control, or PBFT or Tendermint for decision making/consensus). Many combinations are possible but not all make sense.

Much of the design work consists in understanding what are the different attack vectors, governance objectives and desired product requirements (eg. speed, level of security). From that point on, it's reverse engineering the desired outcome using cryptographic protocols and economic games (rewards, penalties, participation thresholds).

Dependencies

  • hashlib
  • datetime

You can install the dependencies using pip.

Usage

You can clone the jupyter notebook version blockchain.ipynb file but I recommend using the Google colab link and run the code from there.

Credits

Thanks to howcodeORG for the base blockchain simulation code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published