@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
19 lines • 927 B
TypeScript
import { BeaconConfig } from "@lodestar/config";
import { CachedBeaconStateAllForks } from "@lodestar/state-transition";
import { Root, SignedBeaconBlock, Slot, WithBytes } 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: WithBytes<SignedBeaconBlock>[], anchorRoot: Root): {
nextAnchor: BackfillBlock | null;
verifiedBlocks: WithBytes<SignedBeaconBlock>[];
error?: BackfillSyncErrorCode.NOT_LINEAR;
};
export declare function verifyBlockProposerSignature(bls: IBlsVerifier, state: CachedBeaconStateAllForks, blocks: WithBytes<SignedBeaconBlock>[]): Promise<void>;
//# sourceMappingURL=verify.d.ts.map