mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-02 02:19:43 +00:00
Implement E2EE and message content moderation
This commit is contained in:
1 parent
e1ff87dc03
commit
198cd80dfd
74 files changed
+12939
-2178
No files matched your search
@@ -0,0 +1,12 @@
|
||||
-- Add E2EE public key to profiles table
|
||||
-- This migration adds a column to store user's RSA public key for E2EE
|
||||
|
||||
-- RSA public key in JWK format (JSON Web Key)
|
||||
ALTER TABLE profiles ADD COLUMN IF NOT EXISTS public_key_jwk JSONB;
|
||||
|
||||
-- Index for efficient lookups when encrypting for partner
|
||||
CREATE INDEX IF NOT EXISTS idx_profiles_couple_id_public_key ON profiles(couple_id)
|
||||
WHERE public_key_jwk IS NOT NULL;
|
||||
|
||||
COMMENT ON COLUMN profiles.public_key_jwk IS
|
||||
'RSA-2048 public key in JWK format for E2EE. Private key stored on device only.';
|
||||
Reference in new issue
Block a user