Versions in this module Expand all Collapse all v0 v0.0.2 Jan 11, 2023 v0.0.1 Dec 18, 2022 Changes in this version + var ErrCastElement = errors.New(...) + var ErrCastScalar = errors.New(...) + var ErrParamNilPoint = errors.New("nil or empty point") + var ErrParamNilScalar = errors.New("nil or empty scalar") + var ErrWrongField = errors.New("incompatible field (different prime)") + type Element interface + Add func(ee Element) Element + Base func() Element + Copy func() Element + Decode func(data []byte) error + Double func() Element + Encode func() []byte + Equal func(ee Element) int + Identity func() Element + IsIdentity func() bool + Multiply func(s Scalar) Element + Negate func() Element + Set func(ee Element) Element + Subtract func(ee Element) Element + type Group interface + Base func() Element + Ciphersuite func() string + ElementLength func() uint + EncodeToGroup func(input, dst []byte) Element + HashToGroup func(input, dst []byte) Element + HashToScalar func(input, dst []byte) Scalar + NewElement func() Element + NewScalar func() Scalar + RandomElement func() Element + RandomScalar func() Scalar + ScalarLength func() uint + type Scalar interface + Add func(s Scalar) Scalar + Copy func() Scalar + Decode func(in []byte) error + Encode func() []byte + Equal func(s Scalar) int + Invert func() Scalar + IsZero func() bool + Multiply func(s Scalar) Scalar + One func() Scalar + Random func() Scalar + Set func(s Scalar) Scalar + Subtract func(s Scalar) Scalar + Zero func() Scalar