use of tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.RandaoReveal in project web3signer by ConsenSys.
the class Eth2RequestUtils method createRandaoReveal.
private static Eth2SigningRequestBody createRandaoReveal() {
final ForkInfo forkInfo = forkInfo();
final RandaoReveal randaoReveal = new RandaoReveal(UInt64.valueOf(3));
final Bytes signingRoot = signingRootUtil.signingRootForRandaoReveal(randaoReveal.getEpoch(), forkInfo.asInternalForkInfo());
return new Eth2SigningRequestBody(ArtifactType.RANDAO_REVEAL, signingRoot, forkInfo, null, null, null, null, null, null, randaoReveal, null, null, null, null);
}
Aggregations