{"id":16108949,"url":"https://github.com/sbis04/mediblock","last_synced_at":"2025-03-18T09:30:41.042Z","repository":{"id":121352827,"uuid":"318280859","full_name":"sbis04/mediblock","owner":"sbis04","description":"App for sharing medical records securely (using custom encryption scheme and blockchain)","archived":false,"fork":false,"pushed_at":"2020-12-15T04:00:44.000Z","size":14172,"stargazers_count":27,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-28T08:29:58.113Z","etag":null,"topics":["blockchain","cpp","dart","ehrs","ethereum","flutter","infura","metamask","post-quantum","rinkeby","solidity"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbis04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-03T18:13:48.000Z","updated_at":"2024-09-07T14:57:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c3df92f-eea2-48a5-ba2d-e7391dd773d1","html_url":"https://github.com/sbis04/mediblock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbis04%2Fmediblock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbis04%2Fmediblock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbis04%2Fmediblock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbis04%2Fmediblock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbis04","download_url":"https://codeload.github.com/sbis04/mediblock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910666,"owners_count":20367546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","cpp","dart","ehrs","ethereum","flutter","infura","metamask","post-quantum","rinkeby","solidity"],"created_at":"2024-10-09T19:29:11.559Z","updated_at":"2025-03-18T09:30:41.031Z","avatar_url":"https://github.com/sbis04.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MediBlock\n\n### [Video demo of the app in action](https://youtu.be/vSe-I6875dU)\n\nAn app for sharing electronic health records (EHRs) securely using Blockchain based searchable-encryption scheme.\n\n## Key features\n\n- Uses a **custom encryption** scheme designed by us (based upon multiple research proven concepts - `scroll down to know more`)\n\n- Immune against **quantum attacks**\n\n- **Minimal transaction cost** and low data retrieval/storage time\n\n- Easy to use and **simple app UI** (having all the highly complicated computation stuff in the backend)\n\n\u003e **POINT TO NOTE:** We don't upload the `file` to blockchain, rather just store some `data` required for the encryption (keeping the transaction cost low and requires minimal time for retrieving/storing data to blockchain).\n\n## Technology stack\n\n- Flutter\n- Dart\n- Firebase\n- Google Sign In\n- Solidity (ethereum smart contract)\n- Metamask\n- Rinkeby\n- Infura\n- C++11\n\n## The problem\n\nWith more data being pushed to external cloud storage, privacy concerns are usual. Straightforward encryption of uploaded data strips the ability to search over it with some keywords: a highly desirable ability in some use-cases as EMR (Electronic medical records) and IIoT (Industrial Internet of Things). Consequent efforts at constructing post-quantum searchable encryption schemes have failed to resist a curious server launching _inside_ offline keyword guessing attack. Moreover, for every intended receiver, the data owner performs computation separately, implying prior knowledge about recipients. In use-cases, such as EMR, prior knowledge of intended recipients (medical centers) is not true. In this work, we propose a forward-secure searchable encryption scheme that leverages blockchain to take the burden of repetitive computations off the data owner. The proposed scheme resists attacks from an honest-but-curious server and protects the privacy of searches performed.\n\nThe scheme used was developed as a part of a research project under Dr. [S.K. Hafizul Islam](https://scholar.google.com/citations?user=ip3ClBIAAAAJ\u0026hl=en\u0026oi=ao) and Dr. [Sherali Zeadally](http://www.uky.edu/~sze223/).\n\n![](https://github.com/sbis04/mediblock/raw/master/screenshots/paper_title.png)\n\nThe scheme we developed has the following properties:\n\n- **Post-quantum**: the scheme is secure in post-quantum environments, i.e. it is resistant to attacks from fully developed quantum computers.\n\n- **Forward-secure**: Amongst multiple sessions, if _i_-th session is compromised/hacked, there is guarantee that all to-be-initiated sessions in future are not automatically compromised.\n\n- **Server-blindness**: The server only stores the encrypted EHRs. In no way it is possible for the server to be able to deduce the contents of the EHRs or the search patters employed by medical professionals.\n\n## System model\n\nThe scheme has the following participants:\n\n**Trusted Third Party (TTP)**: generates keys for users and performs one-time delivery over secure channel (eg. TLS) Initializes system parameters\n\n**Data Owner (DO)**: Someone who stores their medical history on the server. For instance, a patient.\n\n**Data User (DU)**: Someone, liks a medical professional, who uses DO’s history.\n\n**Cloud Server (CS)**: The government approved server in our previous slides, where the EHRs are stored\n\n**Ledger**: A decentralized blockchain network that enables the DO to encrypt data once and let any authorized doctor use it.\n\n![](https://github.com/sbis04/mediblock/raw/master/screenshots/system_model.png)\n\n![](https://github.com/sbis04/mediblock/raw/master/screenshots/mediblock_interfacing.png)\n\n## Wireframe (with some description)\n\n![](https://github.com/sbis04/mediblock/raw/master/screenshots/mediblock_wireframe.png)\n\n## Initial planning\n\n![](https://github.com/sbis04/mediblock/raw/master/screenshots/mediblock_planning.jpg)\n\n## Plugins\n\n- [firebase_core](https://pub.dev/packages/firebase_core)\n- [firebase_auth](https://pub.dev/packages/firebase_auth)\n- [google_sign_in](https://pub.dev/packages/google_sign_in)\n- [cloud_firestore](https://pub.dev/packages/cloud_firestore)\n- [firebase_storage](https://pub.dev/packages/firebase_storage)\n- [shared_preferences](https://pub.dev/packages/shared_preferences)\n- [file_picker](https://pub.dev/packages/file_picker)\n- [web3dart](https://pub.dev/packages/web3dart)\n- [http](https://pub.dev/packages/http)\n- [path_provider](https://pub.dev/packages/path_provider)\n- [permission_handler](https://pub.dev/packages/permission_handler)\n- [open_file](https://pub.dev/packages/open_file)\n\n## License\n\nCopyright (c) 2020 Bharat Keswani, Nimish Mishra, Souvik Biswas\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbis04%2Fmediblock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbis04%2Fmediblock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbis04%2Fmediblock/lists"}