-
Notifications
You must be signed in to change notification settings - Fork 1
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
Finish partial state update with ssz rs (process_block_header) #4
base: partial-update-with-ssz-rs
Are you sure you want to change the base?
Finish partial state update with ssz rs (process_block_header) #4
Conversation
Great find! I was stuck with this earlier |
let latest_block_header_proof: Proof = env::read(); | ||
// let validator_slashed: bool = env::read(); | ||
// let validator_slashed_proof: Proof = env::read(); | ||
|
||
let proposer_index: u64 = env::read(); |
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.
missing verification for proposer_index
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.
How should this be verified since the next proposer index is not part of the Beacon State?
I guess we have to calculate this in the guest: https://ethereum.github.io/consensus-specs/specs/phase0/beacon-chain/#compute_proposer_index
This PR does the following: