@lodestar/beacon-node
Version:
A Typescript implementation of the beacon chain
17 lines • 894 B
TypeScript
import { IBeaconStateView } from "@lodestar/state-transition";
import { SubnetID, altair } from "@lodestar/types";
import { IBeaconChain } from "../interface.js";
type IndexInSubcommittee = number;
/**
* Spec v1.1.0-alpha.8
*/
export declare function validateGossipSyncCommittee(chain: IBeaconChain, syncCommittee: altair.SyncCommitteeMessage, subnet: SubnetID): Promise<{
indicesInSubcommittee: IndexInSubcommittee[];
}>;
export declare function validateApiSyncCommittee(chain: IBeaconChain, headState: IBeaconStateView, syncCommittee: altair.SyncCommitteeMessage): Promise<void>;
/**
* Spec v1.1.0-alpha.8
*/
export declare function validateGossipSyncCommitteeExceptSig(chain: IBeaconChain, headState: IBeaconStateView, subnet: SubnetID, data: Pick<altair.SyncCommitteeMessage, "slot" | "validatorIndex">): IndexInSubcommittee[];
export {};
//# sourceMappingURL=syncCommittee.d.ts.map