forked from jsnbuchanan/crowd-funder-for-time-pwa
19 lines
355 B
TypeScript
19 lines
355 B
TypeScript
/**
|
|
* Represents an account stored in the database.
|
|
*/
|
|
export type Secret = {
|
|
/**
|
|
* Auto-generated ID by Dexie
|
|
*/
|
|
id: number;
|
|
|
|
/**
|
|
* The secret key used to decrypt the identity if they're not using their own password
|
|
*/
|
|
secret: string;
|
|
};
|
|
|
|
export const SecretSchema = { secret: "++id, secret" };
|
|
|
|
export const MASTER_SECRET_KEY = 0;
|