Module hash

Source
Expand description

Curve hash

Functionsยง

field_hash
Hash bytes array to a field
hash_points
Hash point to Scalar
hash_points_prefix
Hash points with prefix SCALAR_FROM_CURVE_POINTS_HASH_PREFIX = 2
hash_to_curve
Hash to curve
hash_to_curve_prefix
Hash to curve with prefix HASH_TO_CURVE_HASH_PREFIX = 1
new_candidate_point
Try to generate a point on the curve based on hashes
y_squared
Y squared, it was calculate by evaluate X