String returns hex representation of a EC point
()
| 17 | |
| 18 | // String returns hex representation of a EC point |
| 19 | func (p *Point) String() string { |
| 20 | return hex.EncodeToString(p.Bytes()) |
| 21 | } |
| 22 | |
| 23 | // MarshalBinary encodes the receiver into a binary form and returns the result (32-byte slice). |
| 24 | func (p *Point) MarshalBinary() ([]byte, error) { |