MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / Double

Method Double

crypto/secp256k1/curve.go:203–206  ·  view source on GitHub ↗

Double returns 2*(x,y).

(x1, y1 *big.Int)

Source from the content-addressed store, hash-verified

201
202// Double returns 2*(x,y).
203func (BitCurve *BitCurve) Double(x1, y1 *big.Int) (*big.Int, *big.Int) {
204 z1 := new(big.Int).SetInt64(1)
205 return BitCurve.affineFromJacobian(BitCurve.doubleJacobian(x1, y1, z1))
206}
207
208// doubleJacobian takes a point in Jacobian coordinates, (x, y, z), and
209// returns its double, also in Jacobian form.

Callers

nothing calls this directly

Calls 2

affineFromJacobianMethod · 0.95
doubleJacobianMethod · 0.95

Tested by

no test coverage detected