@Test void signAggregateAndProof_shouldAlwaysSign() { final AggregateAndProof aggregateAndProof = dataStructureUtil.randomAggregateAndProof(); when(delegate.signAggregateAndProof(aggregateAndProof, forkInfo)).thenReturn(signatureFuture); assertThatSafeFuture(signer.signAggregateAndProof(aggregateAndProof, forkInfo)) .isCompletedWithValue(signature); }
@Override public SafeFuture<BLSSignature> signAggregateAndProof( final AggregateAndProof aggregateAndProof, final ForkInfo forkInfo) { return delegate.signAggregateAndProof(aggregateAndProof, forkInfo); }
SlashingProtectedSigner implements Signer { @Override public SafeFuture<BLSSignature> signAggregateAndProof( final AggregateAndProof aggregateAndProof, final ForkInfo forkInfo) { return delegate.signAggregateAndProof(aggregateAndProof, forkInfo); } }
SlashingProtectedSigner implements Signer { @Override public SafeFuture<BLSSignature> signAggregateAndProof( final AggregateAndProof aggregateAndProof, final ForkInfo forkInfo) { return delegate.signAggregateAndProof(aggregateAndProof, forkInfo); } SlashingProtectedSigner(
      final BLSPublicKey validatorPublicKey,
      final SlashingProtector slashingProtector,
      final Signer delegate); }
SlashingProtectedSigner implements Signer { @Override public SafeFuture<BLSSignature> signAggregateAndProof( final AggregateAndProof aggregateAndProof, final ForkInfo forkInfo) { return delegate.signAggregateAndProof(aggregateAndProof, forkInfo); } SlashingProtectedSigner(
      final BLSPublicKey validatorPublicKey,
      final SlashingProtector slashingProtector,
      final Signer delegate); @Override SafeFuture<BLSSignature> signBlock(final BeaconBlock block, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> signAttestationData(
      final AttestationData attestationData, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> createRandaoReveal(final UInt64 epoch, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> signAggregationSlot(final UInt64 slot, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> signAggregateAndProof(
      final AggregateAndProof aggregateAndProof, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> signVoluntaryExit(
      final VoluntaryExit voluntaryExit, final ForkInfo forkInfo); @Override boolean isLocal(); }
SlashingProtectedSigner implements Signer { @Override public SafeFuture<BLSSignature> signAggregateAndProof( final AggregateAndProof aggregateAndProof, final ForkInfo forkInfo) { return delegate.signAggregateAndProof(aggregateAndProof, forkInfo); } SlashingProtectedSigner(
      final BLSPublicKey validatorPublicKey,
      final SlashingProtector slashingProtector,
      final Signer delegate); @Override SafeFuture<BLSSignature> signBlock(final BeaconBlock block, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> signAttestationData(
      final AttestationData attestationData, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> createRandaoReveal(final UInt64 epoch, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> signAggregationSlot(final UInt64 slot, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> signAggregateAndProof(
      final AggregateAndProof aggregateAndProof, final ForkInfo forkInfo); @Override SafeFuture<BLSSignature> signVoluntaryExit(
      final VoluntaryExit voluntaryExit, final ForkInfo forkInfo); @Override boolean isLocal();  }