From 5fc7fcdbf830e8cee5e73d9acb1d85c1b8cddd30 Mon Sep 17 00:00:00 2001 From: Kevaundray Wedderburn Date: Tue, 17 Jun 2025 15:19:24 +0200 Subject: [PATCH] less words -- appease felix even more --- crypto/bn256/gnark/g2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/bn256/gnark/g2.go b/crypto/bn256/gnark/g2.go index c7b0ad65d2..9d9c2cf2af 100644 --- a/crypto/bn256/gnark/g2.go +++ b/crypto/bn256/gnark/g2.go @@ -21,7 +21,7 @@ type G2 struct { // Unmarshal deserializes `buf` into `g` // // The input is expected to be in the EVM format: -// 128 bytes: [32-byte x.real][32-byte x.imag][32-byte y.real][32-byte y.imag] +// 128 bytes: [32-byte x.0][32-byte x.1][32-byte y.0][32-byte y.1] // where each value is a big-endian integer. // // This method also checks whether the point is on the @@ -72,7 +72,7 @@ func (g *G2) Unmarshal(buf []byte) (int, error) { // Marshal serializes the point into a byte slice. // // The output is in EVM format: 128 bytes total. -// [32-byte x.real][32-byte x.imag][32-byte y.real][32-byte y.imag] +// [32-byte x.0][32-byte x.1][32-byte y.0][32-byte y.1] // where each value is a big-endian integer. func (g *G2) Marshal() []byte { output := make([]byte, 128)