Search in sources :

Example 1 with LocalSigner

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);
}
Also used : SignedVoluntaryExit(tech.pegasys.teku.spec.datastructures.operations.SignedVoluntaryExit) LocalSigner(tech.pegasys.teku.core.signatures.LocalSigner) VoluntaryExit(tech.pegasys.teku.spec.datastructures.operations.VoluntaryExit) SignedVoluntaryExit(tech.pegasys.teku.spec.datastructures.operations.SignedVoluntaryExit) BLSSignature(tech.pegasys.teku.bls.BLSSignature)

Aggregations

BLSSignature (tech.pegasys.teku.bls.BLSSignature)1 LocalSigner (tech.pegasys.teku.core.signatures.LocalSigner)1 SignedVoluntaryExit (tech.pegasys.teku.spec.datastructures.operations.SignedVoluntaryExit)1 VoluntaryExit (tech.pegasys.teku.spec.datastructures.operations.VoluntaryExit)1