We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e2840b commit 4067487Copy full SHA for 4067487
src/controllers/Crypto.js
@@ -5,7 +5,7 @@ import { WebWorker } from '../WebWorker.js'
5
/** @typedef {{ privateKeyEpoch: string, publicKeyEpoch: string }} DERIVED_KEY */
6
/** @typedef {{ epoch:string, derived?: DERIVED_KEY }} KEY_EPOCH */
7
/** @typedef {JsonWebKey | string} JSONWEBKEY_STRING */
8
-/** @typedef {{ cryptoKey: CryptoKey, jsonWebKey?: JSONWEBKEY_STRING | string, epoch: string, derived?: DERIVED_KEY }} KEY */
+/** @typedef {{ cryptoKey: CryptoKey, jsonWebKey?: JSONWEBKEY_STRING | string, epoch: string, derived?: DERIVED_KEY, disabled?: boolean }} KEY */
9
/** @typedef {{ publicKey: KEY, privateKey: KEY }} KEY_PAIR */
10
/** @typedef {{ text: string, iv: Uint8Array<ArrayBuffer>, name: string, key: KEY_EPOCH }} ENCRYPTED */ // text: JSON.stringify({text: string, epoch: string})
11
/** @typedef {{ text: string, epoch: string, encrypted: { epoch: string, key: KEY_EPOCH }, key: KEY_EPOCH }} DECRYPTED */
0 commit comments