-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validator blob signing for the unblinded flow #4096
Validator blob signing for the unblinded flow #4096
Conversation
@@ -180,6 +182,10 @@ impl SigningMethod { | |||
Web3SignerObject::RandaoReveal { epoch } | |||
} | |||
SignableMessage::BeaconBlock(block) => Web3SignerObject::beacon_block(block)?, | |||
SignableMessage::BlobSidecar(_) => { | |||
// https://github.com/ConsenSys/web3signer/issues/726 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
// Make sure the blob slot is not higher than the current slot to avoid potential attacks. | ||
if slot > current_slot { | ||
warn!( | ||
self.log, | ||
"Not signing blob with slot greater than current slot"; | ||
"blob_slot" => slot.as_u64(), | ||
"current_slot" => current_slot.as_u64() | ||
); | ||
return Err(Error::GreaterThanCurrentSlot { slot, current_slot }); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove this because we have the same check for the block and the block and blob slots should be equal or the proposal will be missed. I'm also not sure what the original intent of this check was.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed, thanks!
consensus/types/src/chain_spec.rs
Outdated
@@ -1285,7 +1285,7 @@ mod tests { | |||
|
|||
test_domain(Domain::BeaconProposer, spec.domain_beacon_proposer, &spec); | |||
test_domain(Domain::BeaconAttester, spec.domain_beacon_attester, &spec); | |||
test_domain(Domain::BlobsSideCar, spec.domain_blobs_sidecar, &spec); | |||
test_domain(Domain::BlobSideCar, spec.domain_blob_sidecar, &spec); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one's not compiling cause of the capitalization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, sorry. Fixed now
consensus/types/src/chain_spec.rs
Outdated
@@ -1311,7 +1311,7 @@ mod tests { | |||
&spec, | |||
); | |||
|
|||
test_domain(Domain::BlobsSideCar, spec.domain_blobs_sidecar, &spec); | |||
test_domain(Domain::BlobSideCar, spec.domain_blob_sidecar, &spec); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice jimmy! Just a couple small changes
@jimmygchen clippy needs some attention |
Thanks, fixed now! Was having a bit of issue running clippy locally yesterday |
Issue Addressed
Addresses #3994
Proposed Changes
0x0B000000
Additional Info