MCPcopy Create free account
hub / github.com/DOSNetwork/core / Add

Method Add

group/edwards25519/point.go:173–185  ·  view source on GitHub ↗
(P1, P2 kyber.Point)

Source from the content-addressed store, hash-verified

171}
172
173func (P *point) Add(P1, P2 kyber.Point) kyber.Point {
174 E1 := P1.(*point)
175 E2 := P2.(*point)
176
177 var t2 cachedGroupElement
178 var r completedGroupElement
179
180 E2.ge.ToCached(&t2)
181 r.Add(&E1.ge, &t2)
182 r.ToExtended(&P.ge)
183
184 return P
185}
186
187func (P *point) Sub(P1, P2 kyber.Point) kyber.Point {
188 E1 := P1.(*point)

Callers

nothing calls this directly

Calls 3

AddMethod · 0.95
ToExtendedMethod · 0.95
ToCachedMethod · 0.80

Tested by

no test coverage detected