Search in sources :

Example 1 with AggregationSlot

use of tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.AggregationSlot in project web3signer by ConsenSys.

the class Eth2RequestUtils method createAggregationSlot.

private static Eth2SigningRequestBody createAggregationSlot() {
    final ForkInfo forkInfo = forkInfo();
    final AggregationSlot aggregationSlot = new AggregationSlot(UInt64.valueOf(119));
    final Bytes signingRoot = signingRootUtil.signingRootForSignAggregationSlot(aggregationSlot.getSlot(), forkInfo.asInternalForkInfo());
    return new Eth2SigningRequestBody(ArtifactType.AGGREGATION_SLOT, signingRoot, forkInfo, null, null, null, aggregationSlot, null, null, null, null, null, null, null);
}
Also used : AggregationSlot(tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.AggregationSlot) Bytes(org.apache.tuweni.bytes.Bytes) 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 AggregationSlot (tech.pegasys.web3signer.core.service.http.handlers.signing.eth2.AggregationSlot)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