deltakit.core.decoding_graphs.FixedWidthBitstring.from_bits#

classmethod FixedWidthBitstring.from_bits(bits: Iterable[Literal[0, 1]]) Self#

Create a bitstring from a list of bits. The bits are assumed to be in little endian form, i.e. the lsb is the first item in the iterable.

>>> Bitstring.from_bits([1, 0, 0, 1, 1])
0b11001