[][src]Module fawkes_crypto_phase2::utils

Functions

hash_to_g2

Hashes to G2 using the first 32 bytes of digest. Panics if digest is less than 32 bytes. The input must be random.

merge_pairs

Computes a random linear combination over v1/v2.

p1_to_vec
p2_to_vec
pairing_to_vec
repr_to_big
same_ratio

Checks if pairs have the same ratio.