mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-17 04:58:46 +00:00
Add E2EE recovery and device rotation
Add signed, encrypted recovery archives with revision checks, account-certified device enrollment and key rotation, and historical signer lookup. Include the database migration, API endpoints, tests, and updated E2EE documentation.
This commit is contained in:
@@ -9,6 +9,10 @@ public class UserCryptoSessionConfiguration : IEntityTypeConfiguration<UserCrypt
|
||||
public void Configure(EntityTypeBuilder<UserCryptoSession> builder)
|
||||
{
|
||||
builder.HasKey(ucs => ucs.Id);
|
||||
builder.Property(c => c.Generation).IsConcurrencyToken();
|
||||
builder.Property(c => c.AccountIdentityKey).HasMaxLength(200);
|
||||
builder.Property(c => c.AccountSignature).HasMaxLength(100);
|
||||
builder.Property(c => c.PreviousFingerprint).HasMaxLength(64);
|
||||
|
||||
builder.HasOne(ucs => ucs.UserSession)
|
||||
.WithOne(us => us.CryptoSession)
|
||||
@@ -34,4 +38,4 @@ public class UserCryptoSessionConfiguration : IEntityTypeConfiguration<UserCrypt
|
||||
builder.Property(ucs => ucs.PublicIdentityKey)
|
||||
.IsRequired();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user