use of tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.SyncCommitteeMessage in project web3signer by ConsenSys.
the class Eth2RequestUtils method createSyncCommitteeMessageRequest.
private static Eth2SigningRequestBody createSyncCommitteeMessageRequest() {
final ForkInfo forkInfo = forkInfo();
final Bytes signingRoot;
try {
signingRoot = signingRootFromSyncCommitteeUtils(slot, utils -> utils.getSyncCommitteeMessageSigningRoot(beaconBlockRoot, altairSpec.computeEpochAtSlot(slot), forkInfo.asInternalForkInfo())).get();
} catch (final InterruptedException | ExecutionException e) {
throw new RuntimeException(e);
}
final SyncCommitteeMessage syncCommitteeMessage = new SyncCommitteeMessage(beaconBlockRoot, slot);
return new Eth2SigningRequestBody(ArtifactType.SYNC_COMMITTEE_MESSAGE, signingRoot, forkInfo, null, null, null, null, null, null, null, null, syncCommitteeMessage, null, null);
}
Aggregations