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

Update attestation construction #8101

Closed
mehdi-aouadi opened this issue Mar 19, 2024 · 0 comments · Fixed by #8269
Closed

Update attestation construction #8101

mehdi-aouadi opened this issue Mar 19, 2024 · 0 comments · Fixed by #8269
Labels

Comments

@mehdi-aouadi
Copy link
Contributor

Attesting

Construct attestation

  • Set attestation_data.index = 0.
  • Let aggregation_bits be a Bitlist[MAX_VALIDATORS_PER_COMMITTEE] of length len(committee), where the bit of the index of the validator in the committee is set to 0b1.
  • Set attestation.aggregation_bits = [aggregation_bits], a list of length 1
  • Let committee_bits be a Bitvector[MAX_COMMITTEES_PER_SLOT], where the bit at the index associated with the validator's committee is set to 0b1
  • Set attestation.committee_bits = committee_bits

Note: Calling get_attesting_indices(state, attestation) should return a list of length equal to 1, containing validator_index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant