UNPKG

@lodestar/beacon-node

Version:

A Typescript implementation of the beacon chain

18 lines 799 B
import { BeaconConfig } from "@lodestar/config"; import { Root, SignedBeaconBlock, Slot } from "@lodestar/types"; import { IBlsVerifier } from "../../chain/bls/index.js"; import { BackfillSyncErrorCode } from "./errors.js"; export type BackfillBlockHeader = { slot: Slot; root: Root; }; export type BackfillBlock = BackfillBlockHeader & { block: SignedBeaconBlock; }; export declare function verifyBlockSequence(config: BeaconConfig, blocks: SignedBeaconBlock[], anchorRoot: Root): { nextAnchor: BackfillBlock | null; verifiedBlocks: SignedBeaconBlock[]; error?: BackfillSyncErrorCode.NOT_LINEAR; }; export declare function verifyBlockProposerSignature(config: BeaconConfig, bls: IBlsVerifier, blocks: SignedBeaconBlock[]): Promise<void>; //# sourceMappingURL=verify.d.ts.map