Crate wedpr_l_crypto_zkp_utils[−][src]
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. |