implement patches

This commit is contained in:
2026-04-17 16:35:44 -04:00
parent 15f8a38ba3
commit b0a475642d
8 changed files with 334 additions and 26 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ class User(db.Model, UserMixin):
totp_secret = db.Column(db.String(64), nullable=True)
totp_enabled = db.Column(db.Boolean, default=False, nullable=False)
# ECDH P-256 sharing keypair
# Public key: raw uncompressed point (65 bytes), base64-encoded, stored plaintext
sharing_public_key = db.Column(db.Text, nullable=True)
# Public key: raw uncompressed point (65 bytes), base64-encoded (~88 chars), stored plaintext
sharing_public_key = db.Column(db.String(128), nullable=True)
# Private key: JWK, AES-256-GCM encrypted with the user's vault key
sharing_private_key_enc = db.Column(db.Text, nullable=True)
sharing_private_key_iv = db.Column(db.String(64), nullable=True)