Skip to content
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

Merged
merged 3 commits into from
Mar 17, 2023

Conversation

jimmygchen
Copy link
Member

Issue Addressed

Addresses #3994

Proposed Changes

  • Update blob signing domain to 0x0B000000
  • Implement the unblinded block and blob signing flow

Additional Info

  • Web3Signer signing not implemented yet

@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Comment on lines 547 to 556
// 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 });
}
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed, thanks!

@@ -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);
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, sorry. Fixed now

@@ -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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Member Author

@jimmygchen jimmygchen Mar 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Member

@realbigsean realbigsean left a 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

@realbigsean realbigsean added the waiting-on-author The reviewer has suggested changes and awaits thier implementation. label Mar 16, 2023
@jimmygchen jimmygchen added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Mar 16, 2023
@jimmygchen jimmygchen requested a review from realbigsean March 16, 2023 20:26
@divagant-martian
Copy link
Collaborator

@jimmygchen clippy needs some attention

@jimmygchen
Copy link
Member Author

@jimmygchen clippy needs some attention

Thanks, fixed now! Was having a bit of issue running clippy locally yesterday

@realbigsean realbigsean merged commit 1301c62 into sigp:deneb-free-blobs Mar 17, 2023
@jimmygchen jimmygchen deleted the validator-blob-signing branch March 17, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deneb ready-for-review The code is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants