@lighthouse-web3/sdk
Version:
NPM package and CLI tool to interact with lighthouse protocol
36 lines (35 loc) • 715 B
TypeScript
type Proof = {
verifierData: {
commPc: string;
sizePc: string;
};
inclusionProof: {
proofIndex: {
index: string;
path: string[];
};
proofSubtree: {
index: string;
path: string[];
};
indexRecord: {
checksum: string;
proofIndex: string;
proofSubtree: number;
size: number;
};
};
};
type DealInfo = {
dealId: number;
storageProvider: string;
proof: Proof;
};
type PODSIData = {
pieceCID: string;
dealInfo: DealInfo[];
};
declare const _default: (cid: string) => Promise<{
data: PODSIData;
}>;
export default _default;