Module dleq::cross_group::scalar

source ·
Available on crate feature experimental only.
Expand description

Scalar utilities.

Functions§

  • Create a mutually valid scalar from bytes via bit truncation to not introduce bias.
  • Helper to convert a scalar between fields. Returns None if the scalar isn’t mutually valid.
  • Convert a uniform scalar into one usable on both fields, clearing the top bits as needed.