Blockchain Enabled File Sharing

For running on Ubuntu Linux:

**** Initial Installs ***** On all machines in terminal:

  1. Install python3:

a) $ sudo apt-get update

b) $ sudo apt-get install python3.6

  1. Install pip:

a) $ sudo apt install python3-pip

  1. Install Necessary Imports:

a) $ pip install tk

b) $ pip install requests

c) $ pip install moralis

d) $ pip install rsa


*** Running the project *** On full nodes:

  1. Get machine IPs:

a) $ ip a

b) Take note of the IP for each machine.

c) Take note of the network interface name

  1. Update the network interface name

a) Open comboGUI.py

b) Replace in myIP() the value in quotes ' ' to match your network interface name. ( return (ni.ifaddresses('< YOUR INTERFACE NAME HERE>')[ni.AF_INET][0]['addr']))

  1. Run the main program on the primary node:

a) Navigate to the project directory.

b) $ python3 [projectname.py]

c) Input the IP of the second machine into the window's IP text box.

  1. Run the main program on secondary nodes:

a) Navigate to the project directory.

b) $ python3 [projectname.py]

c) Input the IP of the first machine into the window's IP text box.

For all future machines: 5) Run the main program:

a) Navigate to the project directory.

b) $ python3 [projectname.py]

c) Input the IP of any existing machine running the program into the window's IP text box.


To download the application code to Android Studio:

Download the UAHTeam5BlockchainApp directory

Open Android Studio and from the title bar, select File, New, Import Project

Navigtate to the directory where the folder UAHTeam5BlockchainApp is stored and select the UAHTeam5BlockchainApp folder

Select OK and wait for the project to initialize.


To install the app on an Android device:

Ensure the device has developer options enabled: https://developer.android.com/studio/debug/dev-options

Connect the device to the computer: https://developer.android.com/studio/run/device

Android Studio should automatically recognize the device and target it for installation.

From the title bar, press the green play button to install and run the app on the device.


**** Using the project ****

  1. Login using existing credentials on the blockchain:

a) Default username for first admin account: admin

b) Default password for first admin account: admin

c) Default username for first doctor account: doctor

d) Default password for first doctor account: batman