Scalar
Represents a Scalar.
Implements
ShiftedScalar
Properties
high254
high254: Field;
Implementation of
ShiftedScalar.high254
Source
lowBit
lowBit: Bool;
We represent a scalar s in shifted form t = s - 2^255 mod q,
split into its low bit (t & 1) and high 254 bits (t >> 1).
The reason is that we can efficiently compute the scalar multiplication (t + 2^255) * P = s * P.
Implementation of
ShiftedScalar.lowBit
Source
ORDER
static ORDER: bigint = Fq.modulus;