mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-17 04:58:46 +00:00
Add SRP password recovery and E2EE reset
Add proof-based password registration, login, enrollment, and change flows, with rate limiting and encrypted recovery-key envelopes. Support explicit E2EE identity resets while preserving historical signer verification, and document and test the new recovery workflows.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace Govor.Domain.Models.Users.Crypto;
|
||||
|
||||
public sealed class E2eeIdentityChange
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
public long Epoch { get; set; }
|
||||
public string PreviousIdentityKey { get; set; } = "";
|
||||
public string IdentityKey { get; set; } = "";
|
||||
public long ChangedAt { get; set; }
|
||||
public Guid? PreviousSessionId { get; set; }
|
||||
public string? PreviousDeviceKeyJson { get; set; }
|
||||
}
|
||||
@@ -7,4 +7,8 @@ public sealed class E2eeRecoveryVault
|
||||
public string IdentityKey { get; set; } = "";
|
||||
public string Ciphertext { get; set; } = "";
|
||||
public string Signature { get; set; } = "";
|
||||
public long Epoch { get; set; }
|
||||
public long PasswordCredentialVersion { get; set; }
|
||||
public string? PasswordCiphertext { get; set; }
|
||||
public string? PasswordSignature { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user