@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
16 lines • 1.1 kB
TypeScript
import { ForkName } from "@lodestar/params";
import { Root, Slot, SubnetID, deneb } from "@lodestar/types";
import { IBeaconChain } from "../interface.js";
export declare function validateGossipBlobSidecar(fork: ForkName, chain: IBeaconChain, blobSidecar: deneb.BlobSidecar, subnet: SubnetID): Promise<void>;
/**
* Validate some blob sidecars in a block
*
* Requires the block to be known to the node
*
* NOTE: chain is optional to skip signature verification. Helpful for testing purposes and so that can control whether
* signature gets checked depending on the reqresp method that is being checked
*/
export declare function validateBlockBlobSidecars(chain: IBeaconChain | null, blockSlot: Slot, blockRoot: Root, blockBlobCount: number, blobSidecars: deneb.BlobSidecars): Promise<void>;
export declare function validateBlobsAndBlobProofs(expectedKzgCommitments: deneb.BlobKzgCommitments, blobs: deneb.Blobs, proofs: deneb.KZGProofs): Promise<void>;
export declare function validateBlobSidecarInclusionProof(blobSidecar: deneb.BlobSidecar): boolean;
//# sourceMappingURL=blobSidecar.d.ts.map