EC Scalars

Index

ec-scalar/from-mp ec-scalar/random ec-scalar/to-mp

Reference

(ec-scalar/from-mp ec-group-obj mp-obj)

Returns a new scalar in `ec-group-obj` from the given MPI `mp-obj`. `mp-obj` must satisfy `0 < mp-obj < order`.

(ec-scalar/random ec-group-obj rng-obj)

Returns a new random scalar in `ec-group-obj` drawn from `rng-obj`.

(ec-scalar/to-mp ec-scalar-obj)

Returns the MPI object representing the value of `ec-scalar-obj`.