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

Add types for representing LC Merkle branches #6324

Open
nflaig opened this issue Jan 18, 2024 · 0 comments
Open

Add types for representing LC Merkle branches #6324

nflaig opened this issue Jan 18, 2024 · 0 comments
Labels
good first issue Issues that are suitable for first-time contributors. help wanted The author indicates that additional help is wanted. meta-feature-request Issues to track feature requests. scope-light-clients All issues regarding light client development.

Comments

@nflaig
Copy link
Member

nflaig commented Jan 18, 2024

Add named ssz types introduced in ethereum/consensus-specs#3563 for representing LC Merkle branches.

Name SSZ equivalent Description
FinalityBranch Vector[Bytes32, floorlog2(FINALIZED_ROOT_GINDEX)] Merkle branch of finalized_checkpoint.root within BeaconState
CurrentSyncCommitteeBranch Vector[Bytes32, floorlog2(CURRENT_SYNC_COMMITTEE_GINDEX)] Merkle branch of current_sync_committee within BeaconState
NextSyncCommitteeBranch Vector[Bytes32, floorlog2(NEXT_SYNC_COMMITTEE_GINDEX)] Merkle branch of next_sync_committee within BeaconState
ExecutionBranch Vector[Bytes32, floorlog2(EXECUTION_PAYLOAD_GINDEX)] Merkle branch of execution_payload within BeaconBlockBody

The types should be added and exported as part of @lodestar/types package

finalityBranch: new VectorCompositeType(Bytes32, FINALIZED_ROOT_DEPTH),

executionBranch: new VectorCompositeType(Bytes32, EXECUTION_PAYLOAD_DEPTH),

@nflaig nflaig added good first issue Issues that are suitable for first-time contributors. meta-feature-request Issues to track feature requests. labels Jan 18, 2024
@philknows philknows added the scope-light-clients All issues regarding light client development. label Jan 19, 2024
@philknows philknows added the help wanted The author indicates that additional help is wanted. label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issues that are suitable for first-time contributors. help wanted The author indicates that additional help is wanted. meta-feature-request Issues to track feature requests. scope-light-clients All issues regarding light client development.
Projects
None yet
Development

No branches or pull requests

2 participants