New function: NewCurveKeypair()