From aa4eb2b7563cd75b30a2d57f67a8e46bdb4e7229 Mon Sep 17 00:00:00 2001 From: Balazs Komuves Date: Fri, 1 May 2026 02:31:19 +0200 Subject: [PATCH] fix a mistake in an explanatory comment --- groth16/bn128/curves.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/groth16/bn128/curves.nim b/groth16/bn128/curves.nim index aeafe60..76edcac 100644 --- a/groth16/bn128/curves.nim +++ b/groth16/bn128/curves.nim @@ -256,7 +256,8 @@ func uncompressG1*( compr1 : ComprG1 ) : Option[G1] = #--------------------------------------- -# little-endian encoding of the X coord, with bit 255 set if `Y_imag > P/2` +# little-endian encoding of the X coord (real and imaginary components, in that order), +# with the last, 511-th bit set if `Y_imag > P/2` func compressG2*( pt : G2 ) : ComprG2 = var x_real_big : BigInt[254] var x_imag_big : BigInt[254]