Cryptography, Cryptocurrency, Go, Mathematics, Security.
threeX := new(big.Int).Mul(big.NewInt(3), xx) twoY := new(big.Int).Mul(big.NewInt(2), Py) // Add the a of the curve's parameter to 3 * px^2 // Then multiply the result by the modular inverse of 2 * py S := new(big.Int).Mul(new(big.Int).Add(threeX, curve.A), new(big.Int).ModInverse(twoY, curve.P))