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.
Add a function
resize
that takes a BitList of lengthN
and resizes it to a BitList of lengthM
whereN
<M
. The newly resized BitList has the same bits set as the original. This is useful for electra related changes toAttestation
's in situations where we need to work with different sizedBitLists
depending on theAttestation
variant.