MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Add

Method Add

crypto/secp256k1/curve.go:132–135  ·  view source on GitHub ↗

Add returns the sum of (x1,y1) and (x2,y2).

(x1, y1, x2, y2 *big.Int)

Source from the content-addressed store, hash-verified

130
131// Add returns the sum of (x1,y1) and (x2,y2).
132func (BitCurve *BitCurve) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int) {
133 z := new(big.Int).SetInt64(1)
134 return BitCurve.affineFromJacobian(BitCurve.addJacobian(x1, y1, z, x2, y2, z))
135}
136
137// addJacobian takes two points in Jacobian coordinates, (x1, y1, z1) and
138// (x2, y2, z2) and returns their sum, also in Jacobian form.

Callers 15

TestConnAndSeqAllocationFunction · 0.45
startAckWorkersMethod · 0.45
runPeerListUpdaterFunction · 0.45
FormatDSNMethod · 0.45
TestCryptoConn_RWFunction · 0.45
VerifyMethod · 0.45
IsOnCurveMethod · 0.45
addJacobianMethod · 0.45
doubleJacobianMethod · 0.45
PublishMethod · 0.45
stopNodesFunction · 0.45

Calls 2

affineFromJacobianMethod · 0.95
addJacobianMethod · 0.95

Tested by 7

TestConnAndSeqAllocationFunction · 0.36
TestCryptoConn_RWFunction · 0.36
stopNodesFunction · 0.36
stopNodesFunction · 0.36
stopNodesFunction · 0.36
TestFullProcessFunction · 0.36