mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 14:54:45 +00:00
resolve merge conflicts
This commit is contained in:
@@ -196,7 +196,7 @@ impl<E: EthSpec> SignedBuilderBid<E> {
|
||||
.pubkey()
|
||||
.decompress()
|
||||
.map(|pubkey| {
|
||||
let domain = spec.get_builder_domain();
|
||||
let domain = spec.get_builder_application_domain();
|
||||
let message = self.message.signing_root(domain);
|
||||
self.signature.verify(&pubkey, message)
|
||||
})
|
||||
|
||||
@@ -4,6 +4,7 @@ pub const APPLICATION_DOMAIN_BUILDER: u32 = 16777216;
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Copy)]
|
||||
pub enum ApplicationDomain {
|
||||
/// NOTE: This domain is only used for out-of-protocol block building, DO NOT use it for Gloas/ePBS.
|
||||
Builder,
|
||||
}
|
||||
|
||||
|
||||
@@ -549,7 +549,9 @@ impl ChainSpec {
|
||||
// This should be updated to include the current fork and the genesis validators root, but discussion is ongoing:
|
||||
//
|
||||
// https://github.com/ethereum/builder-specs/issues/14
|
||||
pub fn get_builder_domain(&self) -> Hash256 {
|
||||
//
|
||||
// NOTE: This domain is only used for out-of-protocol block building, DO NOT use it for Gloas/ePBS.
|
||||
pub fn get_builder_application_domain(&self) -> Hash256 {
|
||||
self.compute_domain(
|
||||
Domain::ApplicationMask(ApplicationDomain::Builder),
|
||||
self.genesis_fork_version,
|
||||
|
||||
@@ -31,7 +31,7 @@ impl SignedValidatorRegistrationData {
|
||||
.pubkey
|
||||
.decompress()
|
||||
.map(|pubkey| {
|
||||
let domain = spec.get_builder_domain();
|
||||
let domain = spec.get_builder_application_domain();
|
||||
let message = self.message.signing_root(domain);
|
||||
self.signature.verify(&pubkey, message)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user