scAdd method

  1. @override
BuBytes scAdd(
  1. List<int> a,
  2. List<int> b
)
override

Scalar addition mod n; both scalarLen bytes. Returns scalarLen bytes. Throws on invalid scalar.

Implementation

@override
BuBytes scAdd(List<int> a, List<int> b) {
  validateScalar(a, 'scAdd');
  validateScalar(b, 'scAdd');
  return call('scAdd', () => inner.scAdd(a, b));
}