decryptCollection now takes the full key material {masterKey,
publicKey, secretKey} and dispatches on keyDecryptionNonce: present
means an owned collection (secretbox under the master key), absent
means a shared collection (sealed box to our public key). Client
already held the keypair for unsealing the auth token, so it just
passes it through.
15 lines
287 B
TypeScript
15 lines
287 B
TypeScript
export { decryptCollection, decryptFile } from "./decrypt.js";
|
|
export type {
|
|
Collection,
|
|
CollectionType,
|
|
EnteFile,
|
|
FileBlob,
|
|
FileMetadata,
|
|
FileType,
|
|
KeyMaterial,
|
|
Microseconds,
|
|
RawCollection,
|
|
RawEnteFile,
|
|
RawMagicMetadata,
|
|
} from "./types.js";
|