pub fn read_scalar<R: Read>(r: &mut R) -> Result<Scalar>
Expand description
Read a canonically-encoded scalar.
Some scalars within the Monero protocol are not enforced to be canonically encoded. For such
scalars, they should be represented as [u8; 32]
and later converted to scalars as relevant.