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 + type Element struct + func (e *Element) Add(element *Element) *Element + func (e *Element) Base() *Element + func (e *Element) Copy() *Element + func (e *Element) Decode(data []byte) error + func (e *Element) Double() *Element + func (e *Element) Encode() []byte + func (e *Element) Equal(element *Element) int + func (e *Element) Identity() *Element + func (e *Element) IsIdentity() bool + func (e *Element) MarshalBinary() ([]byte, error) + func (e *Element) MarshalText() (text []byte, err error) + func (e *Element) Multiply(scalar *Scalar) *Element + func (e *Element) Negate() *Element + func (e *Element) Set(element *Element) *Element + func (e *Element) Subtract(element *Element) *Element + func (e *Element) UnmarshalBinary(data []byte) error + func (e *Element) UnmarshalText(text []byte) error + type Group byte + const P256Sha256 + const P384Sha384 + const P521Sha512 + const Ristretto255Sha512 + func (g Group) Available() bool + func (g Group) Base() *Element + func (g Group) ElementLength() uint + func (g Group) EncodeToGroup(input, dst []byte) *Element + func (g Group) HashToGroup(input, dst []byte) *Element + func (g Group) HashToScalar(input, dst []byte) *Scalar + func (g Group) NewElement() *Element + func (g Group) NewScalar() *Scalar + func (g Group) RandomElement() *Element + func (g Group) RandomScalar() *Scalar + func (g Group) ScalarLength() uint + func (g Group) String() string + type Scalar struct + func (s *Scalar) Add(scalar *Scalar) *Scalar + func (s *Scalar) Copy() *Scalar + func (s *Scalar) Decode(in []byte) error + func (s *Scalar) Encode() []byte + func (s *Scalar) Equal(scalar *Scalar) int + func (s *Scalar) Invert() *Scalar + func (s *Scalar) IsZero() bool + func (s *Scalar) MarshalBinary() ([]byte, error) + func (s *Scalar) MarshalText() (text []byte, err error) + func (s *Scalar) Multiply(scalar *Scalar) *Scalar + func (s *Scalar) One() *Scalar + func (s *Scalar) Random() *Scalar + func (s *Scalar) Set(scalar *Scalar) *Scalar + func (s *Scalar) Subtract(scalar *Scalar) *Scalar + func (s *Scalar) UnmarshalBinary(data []byte) error + func (s *Scalar) UnmarshalText(text []byte) error + func (s *Scalar) Zero() *Scalar