()
| 84 | } |
| 85 | |
| 86 | func (z *Point) Encode() [32]byte { |
| 87 | var e [32]byte |
| 88 | (*edwards25519.ExtendedGroupElement)(z).ToBytes(&e) |
| 89 | return e |
| 90 | } |
| 91 | |
| 92 | func (z *Point) Decode(e [32]byte) (*Point, bool) { |
| 93 | ok := (*edwards25519.ExtendedGroupElement)(z).FromBytes(&e) |