Search in sources :

Example 1 with NoOpLocalSigner

use of tech.pegasys.teku.core.signatures.NoOpLocalSigner in project teku by ConsenSys.

the class SlashingProtectionLoggerTest method createProtectedValidator.

private Validator createProtectedValidator(BLSPublicKey publicKey) {
    Signer localSigner = new NoOpLocalSigner();
    Signer signer = new SlashingProtectedSigner(publicKey, slashingProtector, localSigner);
    return new Validator(publicKey, signer, mock(GraffitiProvider.class));
}
Also used : Signer(tech.pegasys.teku.core.signatures.Signer) ExternalSigner(tech.pegasys.teku.validator.client.signer.ExternalSigner) SlashingProtectedSigner(tech.pegasys.teku.core.signatures.SlashingProtectedSigner) NoOpLocalSigner(tech.pegasys.teku.core.signatures.NoOpLocalSigner) SlashingProtectedSigner(tech.pegasys.teku.core.signatures.SlashingProtectedSigner) GraffitiProvider(tech.pegasys.teku.validator.api.GraffitiProvider) NoOpLocalSigner(tech.pegasys.teku.core.signatures.NoOpLocalSigner) Validator(tech.pegasys.teku.validator.client.Validator)

Aggregations

NoOpLocalSigner (tech.pegasys.teku.core.signatures.NoOpLocalSigner)1 Signer (tech.pegasys.teku.core.signatures.Signer)1 SlashingProtectedSigner (tech.pegasys.teku.core.signatures.SlashingProtectedSigner)1 GraffitiProvider (tech.pegasys.teku.validator.api.GraffitiProvider)1 Validator (tech.pegasys.teku.validator.client.Validator)1 ExternalSigner (tech.pegasys.teku.validator.client.signer.ExternalSigner)1