Expand description
Common utility functions for ZKP.
Structs§
- BASEPOINT_
G1 - A base point used by various crypto algorithms.
- BASEPOINT_
G2 - Another base point used by various crypto algorithms.
Functions§
- bytes_
to_ point - Converts a vector to RistrettoPoint.
- bytes_
to_ scalar - Converts a vector to Scalar.
- get_
random_ scalar - Gets a random Scalar.
- get_
random_ u32 - Gets a random u32 integer.
- hash_
to_ scalar - Converts an arbitrary string to Scalar. It will hash it first, and transform the numeric value of hash output to Scalar.
- point_
to_ bytes - Converts RistrettoPoint to a bytes vector.
- point_
to_ slice - Converts RistrettoPoint to a bytes slice.
- scalar_
to_ bytes - Converts Scalar to a vector.
- scalar_
to_ slice - Converts Scalar to a slice.