-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: LightClientSnapshot #74
Conversation
71caec4
to
e5349d6
Compare
Signed-off-by: Thomas Chataigner <[email protected]>
e5349d6
to
fa39963
Compare
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.
Looks great! Tiny doc typos/suggestions in-line below (feel free to ignore and fix in future PRs)
ethereum/core/src/types/block.rs
Outdated
|
||
/// `BeaconBlockHeader` represents the header of a beacon block. | ||
/// | ||
/// From [the CL specifications](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#beaconblockheader). |
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.
tiny suggestion: It took me a second to realize "CL" means "consensus layer", we could get rid of this acronym
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.
Alright, let me rephrase !
Co-authored-by: wwared <[email protected]>
* feat: LightClientSnapshot (#58) Signed-off-by: Thomas Chataigner <[email protected]> * Update ethereum/core/src/crypto/mod.rs Co-authored-by: wwared <[email protected]> * docs: fix misleading acronym --------- Signed-off-by: Thomas Chataigner <[email protected]> Co-authored-by: wwared <[email protected]>
This PR implement the
LightClientSnapshot
data structure in thelight-client
crate.It depends on 3 main data structures implemented in
core
:BeaconBlockHeader
: Implementation based on https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#beaconblockheaderSyncCommittee
: Implementation based on https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/altair/beacon-chain.md#synccommitteePublicKey
: The implementation takes part of the code already implemented for the Aptos LC, such as the compression trick at runtime. This might not be needed in the future but we'll remove it then. This also tackles part of Cryptographic primitives data structures #60.Closes #58