mul function

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

List<int> mul(List<int> scalar1, List<int> scalar2) {
  final out = List<int>.filled(32, 0);
  _mulAdd(out, scalar1, scalar2, scZero);

  return BytesUtils.toBytes(out);
}