Crate light_utils

Source

Modules§

bigint
fee
offset
prime
rand

Enums§

UtilsError

Functions§

hash_to_bn254_field_size_be
hashv_to_bn254_field_size_be
Hashes the provided bytes with Keccak256 and ensures the result fits in the BN254 prime field by repeatedly hashing the inputs with various “bump seeds” and truncating the resulting hash to 31 bytes.
is_smaller_than_bn254_field_size_be
rustfmt
Applies rustfmt on the given string containing Rust code. The purpose of this function is to be able to format autogenerated code (e.g. with quote macro).