mul static method
Multiplies two scalar values represented as List<int> and returns the result as a List<int>.
This method multiplies two scalar values, scalar1 and scalar2, and stores the result in the out List<int>.
The multiplication is performed according to Ristretto255 scalar operations.
Parameters:
- scalar1: The first scalar value to multiply.
- scalar2: The second scalar value to multiply.
Returns:
A List<int> representing the result of the multiplication.
Implementation
static List<int> mul(List<int> scalar1, List<int> scalar2) {
final out = List<int>.filled(32, 0);
CryptoOps.scMulAdd(out, scalar1, scalar2, CryptoOpsConst.zero);
return BytesUtils.toBytes(out);
}