Function darkfi_sdk::crypto::util::fv_mod_fp_unsafe

source ·
pub fn fv_mod_fp_unsafe(val: Scalar) -> CtOption<Base>
Expand description

Converts from pallas::Scalar to pallas::Base (aka $x \pmod{r_\mathbb{P}}$).

This call is unsafe and liable to fail. Use with caution. The Pallas scalar field is bigger than the field we’re converting to here.