Testing the Project
To test this project, you can run the system.py
script which demonstrates a complete flow for data sharing involving three entities. In this flow, there are two entities requesting data and one that wants to share a dataset.
for more details please refer to the code that is heavily commented.
To run the system.py
file, you will need to have Python and the brownie
package installed on your system.
You can check if you already have Python installed by opening a terminal or command prompt and typing python --version
. If Python is installed, this command will print the version number. If you do not have Python installed, you can download it from the official Python website.
To install the brownie package, please refer to the Brownie documetation: https://eth-brownie.readthedocs.io/en/stable/install.html
before you start running the script you need to make sure all the python dependencies are installed. To install dependencies from the Pipfile we recommend first creating a python virtual environment. Using the pipenv is recommended for this project. To install pipenv use the command below or refer to pipenv's documentation.
pip install --user pipx
pipx install pipenv
Once you installed pipenv use the command below to create a virtual environment and install dependencies inside that newly created virtual environment:
pipenv install
Make sure ganache-cli
is also installed If you want deploy the contracts on a development local blockchain.
Once you have Python and the brownie package installed, you can run the system.py file by navigating to the directory where the file is located in your terminal or command prompt and typing:
brownie run system.py