Skip to main content
Version: v0.83.1-alpha-testnet.0

fields_to_bytes

Standalone Functions

fields_to_bytes

fields_to_bytes(fields);

/ indistinguishable from random bytes.

Parameters

NameType
fields[Field; N]

fields_from_bytes

fields_from_bytes(bytes, N>);

/ Note 2: The max value check code was taken from std::field::to_be_bytes function.

Parameters

NameType
bytesBoundedVec<u8
N>

random_fields_to_bytes_and_back

random_fields_to_bytes_and_back(input);

Parameters

NameType
input[Field; 3]

to_fields_assert

to_fields_assert();

Takes no parameters.

fields_from_bytes_max_value

fields_from_bytes_max_value();

Takes no parameters.

fields_from_bytes_overflow

fields_from_bytes_overflow(random_value);

Parameters

NameType
random_valueu8