From 3c03b0cbbc22b0a3601fb2aa72a469435ed5bcbe Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Mon, 14 Oct 2024 14:55:07 +0100 Subject: [PATCH] remove `Double` --- crypto/bn256/gnark/g1.go | 5 ----- crypto/bn256/gnark/g2.go | 5 ----- 2 files changed, 10 deletions(-) diff --git a/crypto/bn256/gnark/g1.go b/crypto/bn256/gnark/g1.go index bb25d7b834..cc80e06cc4 100644 --- a/crypto/bn256/gnark/g1.go +++ b/crypto/bn256/gnark/g1.go @@ -29,11 +29,6 @@ func (g *G1) ScalarMult(a *G1, scalar *big.Int) { g.inner.ScalarMultiplication(&a.inner, scalar) } -// Double adds `a` to itself, storing the result in `g` -func (g *G1) Double(a *G1) { - g.inner.Double(&a.inner) -} - // Unmarshal deserializes `buf` into `g` // // Note: whether the serialization is of a compressed diff --git a/crypto/bn256/gnark/g2.go b/crypto/bn256/gnark/g2.go index 86b1a8d747..c79d8604e0 100644 --- a/crypto/bn256/gnark/g2.go +++ b/crypto/bn256/gnark/g2.go @@ -21,11 +21,6 @@ func (g *G2) Add(a, b *G2) { g.inner.Add(&a.inner, &b.inner) } -// Double adds `a` to itself, storing the result in `g` -func (g *G2) Double(a *G2) { - g.inner.Double(&a.inner) -} - // Unmarshal deserializes `buf` into `g` // // Note: whether the serialization is of a compressed