I've noticed a slight mismatch between the Decode methods for Element and for Scalar. For a wrong-length byte slice Element.Decode will return an error, but Scalar.Decode will panic. See https://play.golang.org/p/EcBWChvIIj_v.
It would be nice if Scalar.Decode (really FromCanonicalBytes) would also return an error instead of panicking.
I've noticed a slight mismatch between the
Decode
methods forElement
and forScalar
. For a wrong-length byte sliceElement.Decode
will return an error, butScalar.Decode
will panic. See https://play.golang.org/p/EcBWChvIIj_v.It would be nice if
Scalar.Decode
(reallyFromCanonicalBytes
) would also return an error instead of panicking.