pub fn key_gen(mode: Mode) -> Result<Vec<u8>, Error>
Generate a random Scalar on the given curve.
Scalar
Returns the scalar key bytes as u8 vector.
u8