Skip to content

AwwalQuan/blockchainconsent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blockchainconsent

demo

Requirements

  • A local Ganache block chain.
  • At least two accounts on the blockchain. One for the patient, and the second for the surgeon.

Steps to simulate

  1. Clone the repository $ git clone https://github.com/AwwalQuan/blockchainconsent.git
  2. Navigate to the repository $ cd blockchainconsent
  3. 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
  4. Run the slave robot $ python3 slave_robot.py. Enter the address and private key of the patient that created the contract.
  5. 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 sequence_diagram

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published