- A local Ganache block chain.
- At least two accounts on the blockchain. One for the patient, and the second for the surgeon.
- Clone the repository
$ git clone https://github.com/AwwalQuan/blockchainconsent.git
- Navigate to the repository
$ cd blockchainconsent
- Create a smart contract.
- Modify the file
smartcontract/consent/migrations/2_consent_migration.js
and insert the patient and surgeon's Ethereum address. - In the
smartcontract/consent/
directory, run$ truffle deploy
to deploy the contract
- Modify the file
- Run the slave robot
$ python3 slave_robot.py
. Enter the address and private key of the patient that created the contract. - Open another terminal and run the master console
$ python3 master_console.py
. Enter the surgeon's private key to authenticate the surgeon.
The following sequence diagram shows the authentication steps