From b2311cb1194ac0c3840a3d785f35181670860a4d Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Fri, 20 Jun 2025 10:44:29 +0200 Subject: [PATCH] crypto/bn256/gnark: align marshaling behavior --- crypto/bn256/gnark/g2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/bn256/gnark/g2.go b/crypto/bn256/gnark/g2.go index 96fd3fe0c0..48a797e5a7 100644 --- a/crypto/bn256/gnark/g2.go +++ b/crypto/bn256/gnark/g2.go @@ -64,7 +64,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.0][32-byte x.1][32-byte y.0][32-byte y.1] +// [32-byte x.1][32-byte x.0][32-byte y.1][32-byte y.0] // where each value is a big-endian integer. func (g *G2) Marshal() []byte { output := make([]byte, 128)