return &c, nil
}
+// Get the size of the point's coordinate in bytes.
+// 32 for 256-bit curves, 64 for 512-bit ones.
func (c *Curve) PointSize() int {
- return PointSize(c.P)
+ return pointSize(c.P)
}
func (c *Curve) pos(v *big.Int) {
((our.D == nil && their.D == nil) || our.D.Cmp(their.D) == 0) &&
our.Co.Cmp(their.Co) == 0
}
+
+func (c *Curve) String() string {
+ return c.Name
+}