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

Resize BitList #24

Merged
merged 3 commits into from
Jul 8, 2024
Merged

Resize BitList #24

merged 3 commits into from
Jul 8, 2024

Conversation

eserilev
Copy link
Contributor

@eserilev eserilev commented Jun 1, 2024

Add a function resize that takes a BitList of length N and resizes it to a BitList of length M where N < M. The newly resized BitList has the same bits set as the original. This is useful for electra related changes to Attestation's in situations where we need to work with different sized BitLists depending on the Attestation variant.

src/bitfield.rs Outdated Show resolved Hide resolved
@eserilev eserilev changed the title Extend BitList Resize BitList Jun 10, 2024
@michaelsproul michaelsproul merged commit ec5c98e into sigp:main Jul 8, 2024
4 of 5 checks passed
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.

2 participants