A database using blockchain technology operates as a decentralized and distributed ledger, where data is securely stored across a network of interconnected nodes. Unlike traditional databases centralized in a single location, blockchain databases are distributed, meaning each participant in the network holds a copy of the database.
0
stars
3
forks
source link
[Feature]: A user can share his/her details with someone by sending him key . #12
Description:
Add a new function shareUserDetails which allows a user to share their details securely with someone.
This function takes the Aadhar number and an encryption key as input.
The function encrypts the user details and returns the encrypted data.
Private Function: encrypt
Description:
Introduce a private function encrypt to perform encryption.
Modifier: onlyOwner
Description:
Add a modifier onlyOwner to restrict certain functions to be called only by the contract owner.
This ensures that critical operations are only performed by the contract owner, maintaining security and control.
Note: Use Kechhak256
Code of Conduct
[X] I agree to follow this project's Code of Conduct
So, what is it about?
New Function: shareUserDetails
Description: Add a new function shareUserDetails which allows a user to share their details securely with someone. This function takes the Aadhar number and an encryption key as input. The function encrypts the user details and returns the encrypted data.
Private Function: encrypt
Description: Introduce a private function encrypt to perform encryption.
Modifier: onlyOwner
Description: Add a modifier onlyOwner to restrict certain functions to be called only by the contract owner. This ensures that critical operations are only performed by the contract owner, maintaining security and control.
Note: Use Kechhak256
Code of Conduct