[][src]Module storage_proofs::util

Constants

NODE_SIZE

Functions

bits_to_bytes

Converts a slice of bools into their byte representation, in little endian.

bytes_into_bits

Converts bytes into their bit representation, in little endian format.

bytes_into_boolean_vec

Converts the bytes into a boolean vector, in little endian format.

data_at_node

Returns the byte slice representing one node (of uniform size, NODE_SIZE) at position v in data.

data_at_node_offset

Returns the start position of the data, 0-indexed.