All inputs must be numbers, G must be a point on the curve
nA and nB are optional but must be less than the order of the point G
Made by Bechara Rizk