scalarReduceVar static method
reduce scalar
Implementation
static List<int> scalarReduceVar(List<int> scalar) {
final toint = BigintUtils.fromBytes(scalar, byteOrder: Endian.little);
final reduce = toint % Curves.generatorED25519.order!;
final tobytes = BigintUtils.toBytes(reduce,
order: Endian.little,
length: BigintUtils.orderLen(Curves.generatorED25519.order!));
return tobytes;
}