das-research/README.md

37 lines
1.2 KiB
Markdown
Raw Normal View History

# DAS Research
2022-12-14 16:46:20 +00:00
2023-05-06 09:31:08 +00:00
This repository hosts research on DAS for the collaboration between Codex and the EF.
2022-12-14 16:46:20 +00:00
The goal of the DAS Simulator is to study the problem of Data Availability Sampling, both as it is
currently proposed and with possible modifications, from the networking perspective. The simulator
is written in Python3 for accessibility, but we can imagine rewriting it at one point for
scalability and efficiency.
Currently we simulate the first part of the process which is to get segments of the 2D Reed Solomon
erasure coded block from the block builder to validators. The simulator tracks diffusion in the
network and validation progress. It is highly configurable, and it allows to explore the parameter
space in one run, generating also summary figures.
2022-12-14 16:46:20 +00:00
## Prepare the environment
* Clone the DAS repository (if not done yet) and go into the das-research directory
```
2023-05-06 09:31:08 +00:00
git clone https://github.com/status-im/das-research.git
cd das-research
2022-12-14 16:46:20 +00:00
```
* Create a virtual environment and install the requirements
```
2023-05-06 09:31:08 +00:00
python3 -m venv myenv
source myenv/bin/activate
pip3 install -r DAS/requirements.txt
2022-12-14 16:46:20 +00:00
```
## Run the simulator
```
2023-05-06 09:31:08 +00:00
python3 study.py smallConf.py
2022-12-14 16:46:20 +00:00
```