autonomys / auto-drive

Auto Drive is a decentralized content-addressed storage solution built on the Autonomys Network, leveraging its underlying permanent storage layer known as the Autonomys Distributed Storage Network (DSN).
1 stars 1 forks source link

[Front/Back] Updated Encryption Format #83

Open its-colby opened 1 week ago

its-colby commented 1 week ago

Cache will institute access-control mechanism for files.

  1. User A encrypts File F with key K.
  2. User A shares with User B. This action results in the following. User A digitally signs (Root CID File F + User B ID) and encrypts K with User B's public key. He then sends this to cache server. Cache server saves the entry.
  3. User B asks the cache server for File F. The server checks to see if the file is encrypted and shared. In this case, it is. The server will send File F along with the encrypted K.
  4. User B will decrypt K and use it to read File F.
clostao commented 1 week ago

Wouldn't this require a key pair for every user?

its-colby commented 1 week ago

Yes, it would. We should. Sorry, this shouldn't have been in the TODO just yet. This approach should be confirmed with @jfrank-summit before moving forward. @clostao

This approach is meant to enhance the UX for the sharing of encrypted files