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

Use types for representing LC Merkle branches #3563

Merged
merged 11 commits into from
Jan 15, 2024

Conversation

etan-status
Copy link
Contributor

@etan-status etan-status commented Dec 27, 2023

For better legibility and alignment with ethereum/beacon-APIs, use named types for the various Merkle branches used in the LC protocol.

draghtnight

This comment was marked as spam.

Comment on lines 44 to 45
class ExecutionBranch(Vector[Bytes32, floorlog2(EXECUTION_PAYLOAD_INDEX)]):
pass
Copy link
Contributor

Choose a reason for hiding this comment

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

It is exactly what we convert the "custom types" into.

What do you think about just adding custom type ExecutionBranch: Vector[Bytes32, floorlog2(EXECUTION_PAYLOAD_INDEX)])?

@hwwhww hwwhww merged commit 90d48e5 into ethereum:dev Jan 15, 2024
30 checks passed
@etan-status etan-status deleted the lc-branchtypes branch January 15, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants