Skip to content

LocalStorageCryptoStore

Defined in: src/crypto/store/localStorage-crypto-store.ts:67

Internal module. in-memory storage for e2e.

  • CryptoStore

new LocalStorageCryptoStore(store): LocalStorageCryptoStore

Defined in: src/crypto/store/localStorage-crypto-store.ts:78

Storage

LocalStorageCryptoStore

MemoryCryptoStore.constructor

countEndToEndSessions(txn, func): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:117

unknown

(count) => void

void

CryptoStore.countEndToEndSessions

MemoryCryptoStore.countEndToEndSessions


deleteAllData(): Promise<void>

Defined in: src/crypto/store/localStorage-crypto-store.ts:352

Delete all data from this store.

Promise<void>

Promise which resolves when the store has been cleared.

CryptoStore.deleteAllData

MemoryCryptoStore.deleteAllData


doTxn<T>(mode, stores, func): Promise<T>

Defined in: src/crypto/store/localStorage-crypto-store.ts:390

T

Mode

Iterable<string>

(txn) => T

Promise<T>

CryptoStore.doTxn

MemoryCryptoStore.doTxn


getAccount(txn, func): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:359

unknown

(accountPickle) => void

void

CryptoStore.getAccount

MemoryCryptoStore.getAccount


getCrossSigningKeys(txn, func): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:368

unknown

(keys) => void

void

CryptoStore.getCrossSigningKeys

MemoryCryptoStore.getCrossSigningKeys


getEndToEndInboundGroupSession(senderCurve25519Key, sessionId, txn, func): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:224

string

string

unknown

(groupSession, groupSessionWithheld) => void

void

CryptoStore.getEndToEndInboundGroupSession

MemoryCryptoStore.getEndToEndInboundGroupSession


getEndToEndRooms(txn, func): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:321

unknown

(rooms) => void

void

CryptoStore.getEndToEndRooms

MemoryCryptoStore.getEndToEndRooms


getEndToEndSession(deviceKey, sessionId, txn, func): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:148

string

string

unknown

(session) => void

void

CryptoStore.getEndToEndSession

MemoryCryptoStore.getEndToEndSession


getEndToEndSessions(deviceKey, txn, func): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:158

string

unknown

(sessions) => void

void

CryptoStore.getEndToEndSessions

MemoryCryptoStore.getEndToEndSessions


getSecretStorePrivateKey<K>(txn, func, type): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:373

K extends "m.megolm_backup.v1"

unknown

(key) => void

K

void

CryptoStore.getSecretStorePrivateKey

MemoryCryptoStore.getSecretStorePrivateKey


markSessionsNeedingBackup(sessions): Promise<void>

Defined in: src/crypto/store/localStorage-crypto-store.ts:335

ISession[]

Promise<void>

CryptoStore.markSessionsNeedingBackup

MemoryCryptoStore.markSessionsNeedingBackup


startup(): Promise<CryptoStore>

Defined in: src/crypto/store/memory-crypto-store.ts:80

Ensure the database exists and is up-to-date.

This must be called before the store can be used.

Promise<CryptoStore>

resolves to the store.

CryptoStore.startup

MemoryCryptoStore.startup


storeAccount(txn, accountPickle): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:364

unknown

string

void

CryptoStore.storeAccount

MemoryCryptoStore.storeAccount


storeEndToEndInboundGroupSession(senderCurve25519Key, sessionId, sessionData, txn): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:236

string

string

InboundGroupSessionData

unknown

void

CryptoStore.storeEndToEndInboundGroupSession

MemoryCryptoStore.storeEndToEndInboundGroupSession


storeEndToEndSession(deviceKey, sessionId, sessionInfo, txn): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:166

string

string

ISessionInfo

unknown

void

CryptoStore.storeEndToEndSession

MemoryCryptoStore.storeEndToEndSession


storeSecretStorePrivateKey<K>(txn, type, key): void

Defined in: src/crypto/store/localStorage-crypto-store.ts:382

K extends "m.megolm_backup.v1"

unknown

K

SecretStorePrivateKeys[K]

void

CryptoStore.storeSecretStorePrivateKey

MemoryCryptoStore.storeSecretStorePrivateKey


static exists(store): boolean

Defined in: src/crypto/store/localStorage-crypto-store.ts:68

Storage

boolean