Fix sig domain

This commit is contained in:
Eitan Seri- Levi
2026-02-09 20:42:47 -08:00
parent a311b1a482
commit 081efc7940
3 changed files with 11 additions and 3 deletions

View File

@@ -1250,7 +1250,11 @@ impl<T: SlotClock + 'static, E: EthSpec> ValidatorStore for LighthouseValidatorS
validator_pubkey: PublicKeyBytes,
envelope: ExecutionPayloadEnvelope<E>,
) -> Result<SignedExecutionPayloadEnvelope<E>, Error> {
let domain_hash = self.spec.get_builder_domain();
let signing_context = self.signing_context(
Domain::BeaconBuilder,
envelope.slot.epoch(E::slots_per_epoch()),
);
let domain_hash = signing_context.domain_hash(&self.spec);
let signing_root = envelope.signing_root(domain_hash);
// Execution payload envelope signing is not slashable, bypass doppelganger protection.