Skip to content

xujiahuayz/mev-resist-consensus

Repository files navigation

MEV-resistant consensus mechanism

python build status

The repository simulates maximal extractable value (MEV) attacks and models a new MEV-resistant consensus mechanism.

Setup

git clone https://github.com/xujiahuayz/pbs.git
cd pbs

Give execute permission to your script and then run setup_repo.sh

chmod +x setup_repo.sh
./setup_repo.sh
. venv/bin/activate

or follow the step-by-step instructions below between the two horizontal rules:


Create a python virtual environment

  • MacOS / Linux
python3 -m venv venv
  • Windows
python -m venv venv

Activate the virtual environment

  • MacOS / Linux
. venv/bin/activate
  • Windows (in Command Prompt, NOT Powershell)
venv\Scripts\activate.bat

Install toml

pip install toml

Install the project in editable mode

pip install -e ".[dev]"

Install pre-commit

pre-commit install

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published