Class MemoryCryptoStore

Internal module. in-memory storage for e2e.

Hierarchy

  • MemoryCryptoStore

Implements

Constructors

Properties

account: null | string = null
crossSigningKeys: null | Record<string, ICrossSigningKey> = null
deviceData: null | IDeviceData = null
inboundGroupSessions: {
    [sessionKey: string]: InboundGroupSessionData;
} = {}

Type declaration

inboundGroupSessionsWithheld: Record<string, IWithheld> = {}
notifiedErrorDevices: {
    [userId: string]: {
        [deviceId: string]: boolean;
    };
} = {}

Type declaration

  • [userId: string]: {
        [deviceId: string]: boolean;
    }
    • [deviceId: string]: boolean
outgoingRoomKeyRequests: OutgoingRoomKeyRequest[] = []
parkedSharedHistory: Map<string, ParkedSharedHistory[]> = ...
privateKeys: Partial<SecretStorePrivateKeys> = {}
rooms: {
    [roomId: string]: IRoomEncryption;
} = {}

Type declaration

sessionProblems: {
    [deviceKey: string]: IProblem[];
} = {}

Type declaration

sessions: {
    [deviceKey: string]: {
        [sessionId: string]: ISessionInfo;
    };
} = {}

Type declaration

sessionsNeedingBackup: {
    [sessionKey: string]: boolean;
} = {}

Type declaration

  • [sessionKey: string]: boolean
sharedHistoryInboundGroupSessions: {
    [roomId: string]: [senderKey: string, sessionId: string][];
} = {}

Type declaration

  • [roomId: string]: [senderKey: string, sessionId: string][]

Methods

  • Type Parameters

    • T

    Parameters

    • mode: Mode
    • stores: Iterable<string>
    • func: ((txn?: unknown) => T)
        • (txn?: unknown): T
        • Parameters

          • Optional txn: unknown

          Returns T

    Returns Promise<T>

  • Parameters

    • txn: unknown
    • func: ((accountPickle: null | string) => void)
        • (accountPickle: null | string): void
        • Parameters

          • accountPickle: null | string

          Returns void

    Returns void

Generated using TypeDoc