UNPKG

ipfs-car-extract

Version:

Extract UnixFS paths from an existing DAG with merkle proofs.

13 lines (9 loc) 271 B
import { CID } from 'multiformats/cid' export interface Block { cid: CID bytes: Uint8Array } export interface Blockstore { get: (key: CID) => Promise<Block|undefined> } export declare function extract (blockstore: Blockstore, path: string): AsyncIterable<Block>