mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-18 13:24:59 +00:00
Add E2EE messaging and VPS deployment
Add signed, encrypted messages and attachments with per-session device keys, conversation key discovery, and server-side validation. Extend CI to publish immutable container images and deploy to a VPS, with setup and protocol documentation.
This commit is contained in:
@@ -8,8 +8,8 @@ public record MessageRequest
|
||||
public Guid RecipientId { get; init; }
|
||||
public RecipientType RecipientType { get; init; }
|
||||
[Required]
|
||||
[MaxLength(100_000, ErrorMessage = "EncryptedContent cannot exceed 100,000 characters.")]
|
||||
[MaxLength(1_000_000, ErrorMessage = "EncryptedContent cannot exceed 1,000,000 characters.")]
|
||||
public string EncryptedContent { get; init; } = string.Empty;
|
||||
public Guid? ReplyToMessageId { get; set; }
|
||||
public List<MediaReference> MediaAttachments { get; set; } = new();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,9 +5,10 @@ namespace Govor.Contracts.Responses.SignalR;
|
||||
public class MessageEditResponse
|
||||
{
|
||||
public Guid MessageId { get; set; }
|
||||
public Guid? ReplyToMessageId { get; set; }
|
||||
public Guid EditorId { get; set; }
|
||||
public Guid RecipientId { get; init; }
|
||||
public RecipientType RecipientType{get; init; }
|
||||
public string NewEncryptedContent { get; set; } = string.Empty;
|
||||
public DateTime EditedAt { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user