feat: started with proper E2EE ;)

This commit is contained in:
Ruben Talstra 2025-02-15 21:26:40 +01:00
parent e3b5c59949
commit 18d019d8b3
No known key found for this signature in database
GPG key ID: 2A5A7174A60F3BEA
13 changed files with 380 additions and 1 deletions

View file

@ -23,6 +23,13 @@ const shareSchema = mongoose.Schema(
type: Boolean,
default: true,
},
// --- Field for re-encrypting the conversation key for the forked user ---
encryptionKeys: [
{
user: { type: String, index: true },
encryptedKey: { type: String },
},
],
},
{ timestamps: true },
);