Module misc

Module misc 

Source

Functionsยง

le_bytes_iter
Produces an iterator emitting n items u32::to_le_bytes of the counter starting from zero.
le_bytes_iter_from_given_range
Produces an iterator of little endian bytes of each element contained in the range counter_range
n_affine_group_elements
Produces an iterator affine group elements created by hashing a label and a counter in the range counter_range
n_projective_group_elements
Produces an iterator of projective group elements created by hashing a label and a counter in the range counter_range
n_rand
Generates an iterator of randoms producing count elements using the supplied rng.
points
Produces points by multiplying supplied base by the provided scalars.
rand
Generates a random using given rng.
seq_inc_by_n_from
Produces a function which will check for each item to be equal previous plus n starting from the supplied value.
seq_pairs_satisfy
Ensures that each sequence pair satisfy provided predicate.