mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
less words -- appease felix even more
This commit is contained in:
parent
c83cdbb79a
commit
5fc7fcdbf8
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue