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

beacon/types: add beacon chain data types #27292

Merged
merged 3 commits into from
May 17, 2023

Conversation

zsfelfoldi
Copy link
Contributor

This PR adds beacon chain data types required by blsync.

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

Looking great


type Values []Value

var ValueT = reflect.TypeOf(Value{})
Copy link
Member

Choose a reason for hiding this comment

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

we can make this private, right?

// Value represents either a 32 byte value or hash node in a binary merkle tree/partial proof.
type Value [32]byte

type Values []Value
Copy link
Member

Choose a reason for hiding this comment

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

You you pls add a short doc here?

"github.com/ethereum/go-ethereum/beacon/merkle"
"github.com/ethereum/go-ethereum/beacon/params"
"github.com/ethereum/go-ethereum/common"
"github.com/minio/sha256-simd"
Copy link
Member

Choose a reason for hiding this comment

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

Pls replace this with the crypto version

Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe merged commit c08dc59 into ethereum:master May 17, 2023
@karalabe karalabe added this to the 1.11.7 milestone May 17, 2023
@islishude
Copy link
Contributor

Hi, the pr includes a new yaml dependency github.com/go-yaml/yaml, why not using gopkg.in/yaml.v3

@vinioleg2015zem vinioleg2015zem linked an issue May 21, 2023 that may be closed by this pull request
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
* beacon/types: add beacon chain data types

* beacon/merkle: added comments

* go.mod: cleanups

---------

Co-authored-by: Péter Szilágyi <[email protected]>
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 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.

> content://media/external/downloads/1000000694
4 participants