Function monero_wallet::io::read_scalar

source ยท
pub fn read_scalar<R>(r: &mut R) -> Result<Scalar, Error>
where R: Read,
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.