bosscharlie / bcasim

Blockchain Attack Simulator (BCASim) is Open Source Blockchain Simulator for Attack Analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BCASim : Blockchain Attack Simulator

BCASim is open sorce blockchain simulator for attack analysis. The user can freely change the node operation and protocol specifications. For example Double spending attack, Selfish mining, Sybil Attack.

日本語ページ


Quick Start

$ git clone https://github.com/BCASim/bcasim
$ cd bcasim
$ mvn clean install
$ mvn compile
$ java -cp target/bcasim-0.0.1-SNAPSHOT.jar src/main/java/jp/kota/bcasim/main/Main.java

For more detail

See the usage document page.
It summarizes how to customize simulation parameters and attack scenarios.

In preparation

Experimental example

The following is an example of an experiment conducted using a simulator. The solid line in the image plots the theoretical value, and the cross plots the simulation result. The left is an experiment targeting the attack success probability of Double Spending Attack. The right is an experiment targeting the block generation ratio of the Selfish Mining node.

Double Spending Attack Selfish Mining

Demo video

This is a demo that visualizes the simulation results of BCASim.

1.・Large network
2.・Selfish Mining

About

Blockchain Attack Simulator (BCASim) is Open Source Blockchain Simulator for Attack Analysis

License:Apache License 2.0


Languages

Language:Java 99.6%Language:Python 0.4%