UNPKG

@fireproof/database

Version:
9 lines (8 loc) 419 B
import type { CarReader } from '@ipld/car'; import type { AnyBlock, AnyCarHeader, AnyLink, BlockFetcher } from './types'; import type { Transaction } from './transaction'; export declare function encryptedMakeCarFile(key: string, fp: AnyCarHeader, t: Transaction): Promise<AnyBlock>; export declare function decodeEncryptedCar(key: string, reader: CarReader): Promise<{ blocks: BlockFetcher; root: AnyLink; }>;