Skip to main content

DeviceStorage

@webda/sealed-client


Interface: DeviceStorage

Defined in: packages/sealed-client/src/storage.ts:5

Local key-value storage of a device: holds the device blob (the keyring key wrapped by the device KEK, and the encrypted keyring) and the pinned public key fingerprint. Nothing stored here is ever sent to the server.

Methods​

delete()​

delete(key): Promise<void>

Defined in: packages/sealed-client/src/storage.ts:20

Remove a key, no-op when missing

Parameters​

key​

string

storage key

Returns​

Promise<void>


get()​

get(key): Promise<string | undefined>

Defined in: packages/sealed-client/src/storage.ts:10

Parameters​

key​

string

storage key

Returns​

Promise<string | undefined>

the value, undefined when missing


set()​

set(key, value): Promise<void>

Defined in: packages/sealed-client/src/storage.ts:15

Parameters​

key​

string

storage key

value​

string

value

Returns​

Promise<void>