| Crates.io | ow_blob_codec |
| lib.rs | ow_blob_codec |
| version | 0.1.2 |
| created_at | 2024-09-26 08:51:34.727075+00 |
| updated_at | 2024-10-21 10:39:14.427984+00 |
| description | Convert xml files to EIP4844 BLOB |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1387189 |
| size | 33,907 |
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.