justification_bitfield is specified uint64 in the spec.
Would it make more sense to specify it as bytes type? Since the bitfield keyword indicates a byte type and it involves many bitwise operations as well.
In python it's easier to do bit operations on integers than bytes :smile:
If we go bytes, then to keep the spec being correctly executable python, we would need to make helpers for bitwise_or, bitwise_and and shift.
Would it make sense to define justification_bitfield in bytes but specify the Python calculation by converting to an integer first? This has two benefits:
A discussion shows the feel to keep it as is (integer) is stronger.
Most helpful comment
In python it's easier to do bit operations on integers than bytes :smile:
If we go bytes, then to keep the spec being correctly executable python, we would need to make helpers for
bitwise_or,bitwise_andandshift.