code: def _genMultiply(a, element, n, relicGenMultiplyFunc):
      
      # Ensure the scalar is a BigInt
      a = coerceBigInt(a)
      if not a:
          return NotImplemented
  
      # Shrink large scalars.
      a %= n
  
      result = element()
      relicGenMultiplyFunc(byref(result), byref(a))
      return result
docs: Multiplies scalar @a by the group generator using @relicGenMultiplyFunc
      and returns the result of type @element.