https://github.com/strongerprogrammer7/bridge_ton_eth_through_db
Interaction patients with doctor throught DB MySQL and Smart contract Ethereum and TON. Contracts include only get access doc and annual access. DB include all other. Main goal create bridge ETH - TON
https://github.com/strongerprogrammer7/bridge_ton_eth_through_db
Last synced: 8 months ago
JSON representation
Interaction patients with doctor throught DB MySQL and Smart contract Ethereum and TON. Contracts include only get access doc and annual access. DB include all other. Main goal create bridge ETH - TON
- Host: GitHub
- URL: https://github.com/strongerprogrammer7/bridge_ton_eth_through_db
- Owner: StrongerProgrammer7
- License: gpl-3.0
- Created: 2024-01-16T12:15:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-08T14:42:49.000Z (over 1 year ago)
- Last Synced: 2025-02-07T06:23:43.594Z (about 1 year ago)
- Language: JavaScript
- Size: 26.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**This work was done as part of the Course work by Author: Abdyukov Z.M. **
Content
[Brief introduction](https://github.com/StrongerProgrammer7/bridge_ton_eth_through_db?tab=readme-ov-file#-brief-introduction-)
[Development tools](https://github.com/StrongerProgrammer7/bridge_ton_eth_through_db?tab=readme-ov-file#development-tools-and-programming-language)
[Architecture](https://github.com/StrongerProgrammer7/bridge_ton_eth_through_db?tab=readme-ov-file#architecture)
[View Prototype](https://github.com/StrongerProgrammer7/bridge_ton_eth_through_db?tab=readme-ov-file#-view-prototype-)
[TODO](https://github.com/StrongerProgrammer7/bridge_ton_eth_through_db?tab=readme-ov-file#-todo-)
Bridge TON - ETH through DB
Interaction Patient between Doctor
Brief introduction
The main goal of the work is to create a bridge between ETH & TON smart contracts through a database. This will increase work flexibility by allowing patients and doctors to use different wallets.
The scientific novelty of the paper is that a new approach to patient-physician interaction through the use of different wallets is proposed.
It's work continue previous works
Only front-end and smart contract ETH and used IPFS:
https://github.com/StrongerProgrammer7/SmartContractPatients
Front-end + Back-end. Used MySql for store big data and contract ETH only for access to record patient:
https://github.com/StrongerProgrammer7/Interaction_with_patients
How it work
In our work, the database server will be used as a bridge to ensure cross-chain interaction between different blockchains. The database stores records of patients, doctors, as well as their wallet addresses and smart contract addresses.
The wallet address is a unique identifier that is used to send and receive cryptocurrency tokens and log into the application profile acting as a login, and the smart contract address is the address of the contract deployed on the blockchain, which contains the logic of performing actions and managing data.
The logic of our smart contracts includes storing the addresses of those doctors who have been granted access and contains an access verification operation. If there is no access, the doctor cannot make or change the patient's record.
Development tools and Programming Language
For Smart Contract, i used Solidity and IDE Remix(Debug contract) for ETH and TACT for TON, also Personal Blockchain Ganache
Inside our server, server-ganache is enabled. And the smart contract is deployed inside server-ganahce
For Web-Site, used React(Vite) and NodeJS
Node v18.13.0 ,
npm v8.19.3
List instuments: npm, nodejs, react , vite, ton, ganachem blueprint, tact, openZepplinContracts, remixIDE, vscode
Architecture
Scheme Database & smart-contracts
Deployment diagram
Sequence diagrams
View prototype
The interface has not changed based on previous work. Except that the ability to use the TON wallet and switch between wallets has been added.
Choose wallet
Cost Eth
Cost TON
If not have access
TODO:
1) addition, notification and reminder system, functionality for making an appointment with a doctor online, the ability to store the results of medical research and analyses in encrypted form,
2) Optimizing the application interface to improve the user experience,
3) further improvement of data security and protection mechanisms, including the implementation of encryption and authentication methods to ensure the confidentiality of patient medical data,
4) considering the possibility of integration with other blockchain platforms besides Eth and Ton to expand the capabilities and flexibility of the application,
5) Ecosystem expansion: Involving partners in the development and expansion of the ecosystem, including medical institutions, insurance companies, pharmaceutical companies and other healthcare participants,
6) providing users with the opportunity to have contracts of both blockchain networks.
7) adaptive front-end for smartphone
Author: Abdyukov Z.M.