darkfi_sdk::crypto::util

Function fp_mod_fv

Source
pub fn fp_mod_fv(val: Base) -> Scalar
Expand description

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

This requires no modular reduction because Pallas’ base field is smaller than its scalar field.