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

Custom types for the native beacon state #10080

Merged
merged 4 commits into from
Jan 14, 2022

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Jan 13, 2022

What type of PR is this?

Feature

What does this PR do? Why is it needed?

The native beacon state will use several new custom types. This PR introduces:

  • Byte32
  • BlockRoots
  • StateRoots
  • RandaoMixes

Which issues(s) does this PR fix?

Extracted from #9820

type Byte32 [32]byte

// HashTreeRoot returns calculated hash root.
func (e Byte32) HashTreeRoot() ([32]byte, error) {
Copy link
Member

Choose a reason for hiding this comment

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

Would be nice to split Byte32, BlockRoots and StateRoots into different files

@rkapka rkapka closed this Jan 14, 2022
@rkapka rkapka reopened this Jan 14, 2022
@prylabs-bulldozer prylabs-bulldozer bot merged commit 9ace518 into develop Jan 14, 2022
@delete-merged-branch delete-merged-branch bot deleted the native-state-custom-types branch January 14, 2022 13:25
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.

3 participants