mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 21:56:43 +00:00
crypto/bn256/gnark: align marshaling behavior
This commit is contained in:
parent
a29786b480
commit
b2311cb119
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue