less words -- appease felix even more

This commit is contained in:
Kevaundray Wedderburn 2025-06-17 15:19:24 +02:00
parent c83cdbb79a
commit 5fc7fcdbf8

View file

@ -21,7 +21,7 @@ type G2 struct {
// Unmarshal deserializes `buf` into `g` // Unmarshal deserializes `buf` into `g`
// //
// The input is expected to be in the EVM format: // 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. // where each value is a big-endian integer.
// //
// This method also checks whether the point is on the // 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. // Marshal serializes the point into a byte slice.
// //
// The output is in EVM format: 128 bytes total. // 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. // where each value is a big-endian integer.
func (g *G2) Marshal() []byte { func (g *G2) Marshal() []byte {
output := make([]byte, 128) output := make([]byte, 128)