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

integration: diva (#352) #13

Merged
merged 1 commit into from
May 3, 2023
Merged

integration: diva (#352) #13

merged 1 commit into from
May 3, 2023

Conversation

ratankaliani
Copy link
Member

@ratankaliani ratankaliani commented May 3, 2023

Changes

  • Add a DivaBeaconOracle contract where you can prove:
    • Any of the fields of a validator
    • The balance of a validator using the balances container in BeaconState
    • A deposit from a BLSPubkey using the deposits container in BeaconBlock

Notes

Lodestar currently has a gindex issue for fields in the Validator container. As such, we need to calculate the gindices of Validator fields manually.

Creates a Diva Beacon Oracle contract that can prove:

Any of the fields of a validator.

The balance of a validator using the balances container in BeaconState.

A deposit from a BLSPubkey using the deposits container in BeaconBlock.

Note:

Lodestar currently has a gindex issue for fields in the Validator container. As such, we need to calculate the gindices of Validator fields manually.

GitOrigin-RevId: 26db3160591809821b4785bce105ac980c0db6bd
@ratankaliani ratankaliani requested a review from mattstam May 3, 2023 00:30
@ratankaliani ratankaliani merged commit b6506d5 into main May 3, 2023
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