@ceramicnetwork/core
Version:
Typescript implementation of the Ceramic protocol
17 lines • 849 B
TypeScript
import type { AppliableStreamLog, DiagnosticsLogger, UnappliableStreamLog } from '@ceramicnetwork/common';
import type { CID } from 'multiformats/cid';
import type { AnchorValidator } from '../anchor/anchor-service.js';
import { StreamID } from '@ceramicnetwork/streamid';
declare type IpfsRecordLoader = {
retrieveFromIPFS(cid: CID | string, path?: string): Promise<any>;
};
export declare class AnchorTimestampExtractor {
private readonly logger;
private readonly ipfsLoader;
private readonly anchorValidator;
constructor(logger: DiagnosticsLogger, ipfsLoader: IpfsRecordLoader, anchorValidator: AnchorValidator);
private verifyAnchorCommit;
verifyAnchorAndApplyTimestamps(streamId: StreamID, log: UnappliableStreamLog): Promise<AppliableStreamLog>;
}
export {};
//# sourceMappingURL=anchor-timestamp-extractor.d.ts.map