/Blockchain-Simulator

Blockchain Simulation + a bit of PCN as well

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

CS 765 Assignments

This respository contains the three assignments of the "Blockchains, Cryptocurrencies and Smart Contracts" course (CS 765, Spring 2023 offering) at IIT Bombay, under the guidance of Prof. Vinay Ribeiro.

The first assignment involves building a simulator for a bitcoin-style blockchain, with various configuration parameters like the average inter-block time interval. The second builds atop this to simulate selfish and stubborn mining attacks. The third assignment simulates a simple payment channel network, and studies its behavior with time.

Each directory has its own corresponding README with more information about the corresponding assignment.