Skip to content

Type Alias: KeyStorePassword

KeyStorePassword: { extraHeaders: Record<string, string>; push: (args: { data: Buffer; password: string; rawEncryptionKey: string; rawStorageKey: string; userId: string; }) => Promise<string>; search: (args: { password: string; rawEncryptionKey: string; rawStorageKey: string; userId: string; }) => Promise<Buffer>; }

Internal interface to the SSKS API.

WARNING: Do not use directly.

Type declaration

extraHeaders

extraHeaders: Record<string, string>

push()

push: (args: { data: Buffer; password: string; rawEncryptionKey: string; rawStorageKey: string; userId: string; }) => Promise<string>

Parameters

args
data

Buffer

password

string

rawEncryptionKey

string

rawStorageKey

string

userId

string

Returns

Promise<string>

search: (args: { password: string; rawEncryptionKey: string; rawStorageKey: string; userId: string; }) => Promise<Buffer>

Parameters

args
password

string

rawEncryptionKey

string

rawStorageKey

string

userId

string

Returns

Promise<Buffer>