use of tech.pegasys.teku.core.signatures.LocalSigner in project teku by ConsenSys.
the class VoluntaryExitGenerator method create.
private SignedVoluntaryExit create(ForkInfo forkInfo, UInt64 epoch, int validatorIndex, boolean valid) {
VoluntaryExit exit = new VoluntaryExit(epoch, UInt64.valueOf(validatorIndex));
BLSSignature exitSignature = new LocalSigner(spec, getKeypair(validatorIndex, valid), SYNC_RUNNER).signVoluntaryExit(exit, forkInfo).join();
return new SignedVoluntaryExit(exit, exitSignature);
}
Aggregations