Search in sources :

Example 1 with RandaoReveal

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);
}
Also used : Bytes(org.apache.tuweni.bytes.Bytes) RandaoReveal(tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.RandaoReveal) ForkInfo(tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.ForkInfo) Eth2SigningRequestBody(tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.Eth2SigningRequestBody)

Aggregations

Bytes (org.apache.tuweni.bytes.Bytes)1 Eth2SigningRequestBody (tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.Eth2SigningRequestBody)1 ForkInfo (tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.ForkInfo)1 RandaoReveal (tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.RandaoReveal)1