Module utils

Source
Expand description

Utilities for working with EIP-4844 field elements and implementing SidecarCoder.

Structs§

WholeFe
A wrapper for a slice of bytes that is a whole, valid field element.

Functions§

fits_in_fe
Determine whether a slice of bytes can be contained in a field element.
minimum_fe
Calculate the number of field elements required to store the given data.
minimum_fe_for_bytes
Calculate the number of field elements required to store the given number of bytes.