Example #1
0
func (p *point) Neg(a abstract.Point) abstract.Point {
	C.element_invert(&p.e[0], &a.(*point).e[0])
	return p
}
Example #2
0
func (s *scalar) Inv(a abstract.Scalar) abstract.Scalar {
	C.element_invert(&s.e[0], &a.(*scalar).e[0])
	return s
}