sigp / ssz_types

List, vector and bitfield types for SSZ
Apache License 2.0
2 stars 13 forks source link

Resize BitList #24

Closed eserilev closed 4 months ago

eserilev commented 5 months ago

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.