mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
1d442d037c
Introduces a new cryptographic key management system for user sessions, including models, DTOs, interfaces, and services for handling identity keys, signed pre-keys, and one-time pre-keys. Updates the SessionKeysController and DI configuration to use the new services. Adds related EF Core configurations and migrations, and updates the UserSession model to reference the new UserCryptoSession. Removes the obsolete ISessionKeyService interface.
11 lines
408 B
C#
11 lines
408 B
C#
using Govor.Core.Models.Users.Crypto;
|
|
|
|
namespace Govor.Application.Interfaces.UserSession.Crypto;
|
|
|
|
public interface ISessionKeysReader
|
|
{
|
|
Task<bool> HasKeysAttachedAsync(Guid sessionId);
|
|
Task<IReadOnlyList<UserCryptoSession>> GetAllActiveKeysAsync(Guid userId);
|
|
Task<int> GetRemainingOneTimePreKeysCountAsync(Guid sessionId);
|
|
Task<UserCryptoSession?> GetKeysBySessionIdAsync(Guid sessionId);
|
|
} |