import { DOMAIN_SYNC_COMMITTEE } from "@lodestar/params";
import { SignatureSetType, computeSigningRoot } from "@lodestar/state-transition";
import { ssz } from "@lodestar/types";
export function getSyncCommitteeContributionSignatureSet(config, state, contribution, participantIndices) {
    const domain = config.getDomain(state.slot, DOMAIN_SYNC_COMMITTEE, contribution.slot);
    return {
        type: SignatureSetType.aggregate,
        indices: participantIndices,
        signingRoot: computeSigningRoot(ssz.Root, contribution.beaconBlockRoot, domain),
        signature: contribution.signature,
    };
}
//# sourceMappingURL=syncCommitteeContribution.js.map