#xml #blob #deflate #convert #kzg #chunks #eip4844

ow_blob_codec

Convert xml files to EIP4844 BLOB

3 releases

0.1.2 Oct 21, 2024
0.1.1 Sep 27, 2024
0.1.0 Sep 26, 2024

#618 in Compression

MIT license

11KB
271 lines

WIP! Do not use in production code!

This code compress xml file/files under a given path into the single BLOB that conforms with the requirements for the KZG BLOB described HERE.

It uses DEFLATE compression algorithm. After compressing the file it cut received Vec<u8> into 31 byte long chunks and append 0 or 1 at the beginning of each. It appends 1 if it's the last chunk in the processed file and 0 for all the other cases.

Dependencies

~7MB
~192K SLoC