()
| 70 | } |
| 71 | |
| 72 | func (z *Point) Encode() [32]byte { |
| 73 | var e [32]byte |
| 74 | (*edwards25519.ExtendedGroupElement)(z).ToBytes(&e) |
| 75 | return e |
| 76 | } |
| 77 | |
| 78 | func (z *Point) Decode(e [32]byte) (*Point, bool) { |
| 79 | ok := (*edwards25519.ExtendedGroupElement)(z).FromBytes(&e) |