mul static method

List<int> mul(
  1. List<int> scalar1,
  2. List<int> scalar2
)

Multiplies two scalar values represented as List

This method multiplies two scalar values, scalar1 and scalar2, and stores the result in the out List

Parameters:

  • scalar1: The first scalar value to multiply.
  • scalar2: The second scalar value to multiply.

Returns: A List

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);
}