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

Partial Withdrawal Oracle Slot Proof #16

Closed
wants to merge 7 commits into from

Conversation

Sidu28
Copy link
Contributor

@Sidu28 Sidu28 commented Jan 7, 2024

This PR is to add a slot proof to the verify withdrawal call params. We need this additional slot proof to ensure that the oracle root slot is after the specified range of blocks requested by the user. This is a key part of the risc0/zk partial withdrawal design.

This PR also removes validator balance proofs and replaces them with validator container proofs, as per the new M2 mainnet contracts

@Sidu28 Sidu28 requested a review from gpsanant January 7, 2024 13:09
@@ -0,0 +1,161 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

add binaries to gitignore

// Note: this slot and slot root proof are used for partial withdrawal proofs to ensure that the oracle root slot is after the specified range of blocks requested by the user
verifyAndProcessWithdrawalCallParams.StateRootProof.Slot = oracleBlockHeader.Slot

verifyAndProcessWithdrawalCallParams.StateRootProof.SlotRootProof, err = ProveSlotAgainstBlockHeader(oracleBlockHeader)
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need this now? why wasn't it here before?

@Sidu28 Sidu28 closed this Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants