Module utilities
Expand description
Utility function that precompiles use, padding and converting between types.
Functionsยง
- bool_to_ b256 
- Converts a boolean to a left-padded B256value.
- bool_to_ bytes32 
- Converts a boolean to a left-padded 32-byte Bytesvalue.
- left_pad 
- Left-pads the given slice with zeroes until LEN.
- left_pad_ vec 
- Left-pads the given slice with zeroes until len.
- right_pad 
- Right-pads the given slice with zeroes until LEN.
- right_pad_ vec 
- Right-pads the given slice with zeroes until len.
- right_pad_ with_ offset 
- Right-pads the given slice at offsetwith zeroes untilLEN.
- right_pad_ with_ offset_ vec 
- Right-pads the given slice at offsetwith zeroes untillen.