diff --git a/pairing/bn254/suite.go b/pairing/bn254/suite.go index 27478b59d..f5312e7ca 100644 --- a/pairing/bn254/suite.go +++ b/pairing/bn254/suite.go @@ -134,8 +134,8 @@ func (s *Suite) Pair(p1 kyber.Point, p2 kyber.Point) kyber.Point { // NB: Not safe for concurrent calls func (s *Suite) ValidatePairing(p1, p2, inv1, inv2 kyber.Point) bool { - p2.(*pointG2).g.MakeAffine() - inv2.(*pointG2).g.MakeAffine() + p2.Clone().(*pointG2).g.MakeAffine() + inv2.Clone().(*pointG2).g.MakeAffine() return s.Pair(p1, p2).Equal(s.Pair(inv1, inv2)) }