@fireproof/database
Version:
Live database for the web
9 lines (8 loc) • 419 B
TypeScript
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;
}>;