Function reduce [src]

Reduce a scalar to the field size.

Prototype

pub fn reduce(s: CompressedScalar) CompressedScalar

Parameters

s: CompressedScalar

Source

pub fn reduce(s: CompressedScalar) CompressedScalar { var scalar = Scalar.fromBytes(s); return scalar.toBytes(); }