-
Notifications
You must be signed in to change notification settings - Fork 10
Implement encryption and shard management functionalities #47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Added save_shards.py to handle saving key shards to multiple nodes with CID validation and error handling. - Introduced share_to_address.py for sharing access to addresses with CID validation. - Created shared_key.py for generating key shards using Shamir's secret sharing scheme. - Developed transfer_ownership.py to manage ownership transfers of encrypted data with CID validation. - Implemented utility functions in utils.py for CID validation, object comparison, and API request handling. - Added upload_encrypted.py for uploading encrypted files with key generation and shard saving. - Created comprehensive unit tests for encryption, shard management, and ownership transfer functionalities. - Ensured robust error handling and validation across all new functionalities.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
What have I changed
Implemented all the encryption function
Why have I changed
All encryption function is missing
How to test it
Test all the files in
test_encryption
folder andtest_upload_encrypted.py
. Make sure you own thecid
in the testing files elseAccess Denied
error will come.PR Type
Enhancement
Description
Implement comprehensive encryption and key management system
Add Shamir's secret sharing for key sharding and recovery
Integrate encrypted file upload with shard distribution
Provide access control and ownership transfer capabilities
Diagram Walkthrough
File Walkthrough