OPCODE-Open-Spring-Fest / database

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

Open shobhit15082003 opened 6 months ago

shobhit15082003 commented 6 months ago

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

sharvil-lade commented 5 months ago

@MishraSomesh001 please assign this task to me.

AdityaKumar5155 commented 5 months ago

@MishraSomesh001 Assign this task to me

xTwo56 commented 5 months ago

@MishraSomesh001 Kindly assign me this issue