cashscript_py.helpers.data_encoding module
Utility functions for data encoding and conversions.
- flatten_bin_array(array: list[bytes]) bytes[source]
Flattens an array of byte sequences into a single byte sequence.
- int_to_bytes(i: int, length: int = 1) bytes[source]
Encode an integer as little-endian bytes of fixed length.