import { DOMAIN_SYNC_COMMITTEE } from "@lodestar/params";
import { SignatureSetType, computeSigningRoot, } from "@lodestar/state-transition";
import { ssz } from "@lodestar/types";
export function getSyncCommitteeSignatureSet(config, state, syncCommittee) {
    const domain = config.getDomain(state.slot, DOMAIN_SYNC_COMMITTEE, syncCommittee.slot);
    return {
        type: SignatureSetType.indexed,
        index: syncCommittee.validatorIndex,
        signingRoot: computeSigningRoot(ssz.Root, syncCommittee.beaconBlockRoot, domain),
        signature: syncCommittee.signature,
    };
}
//# sourceMappingURL=syncCommittee.js.map