-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
Conversation
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.
Looking great
beacon/merkle/merkle.go
Outdated
|
||
type Values []Value | ||
|
||
var ValueT = reflect.TypeOf(Value{}) |
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.
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 |
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.
You you pls add a short doc here?
beacon/types/header.go
Outdated
"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" |
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.
Pls replace this with the crypto version
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.
LGTM
Hi, the pr includes a new yaml dependency |
* beacon/types: add beacon chain data types * beacon/merkle: added comments * go.mod: cleanups --------- Co-authored-by: Péter Szilágyi <peterke@gmail.com>
This reverts commit 867efd5.
This reverts commit 867efd5.
This PR adds beacon chain data types required by blsync.