Versions in this module Expand all Collapse all v1 v1.0.0 May 30, 2021 Changes in this version + var ErrType = errors.New("type mismatch") + var ErrUnmarshal = errors.New("error unmarshaling") + type Element interface + Add func(Element, Element) Element + Dbl func(Element) Element + IsEqual func(Element) bool + IsIdentity func() bool + MarshalBinaryCompress func() ([]byte, error) + Mul func(Element, Scalar) Element + MulGen func(Scalar) Element + Neg func(Element) Element + type FieldHasher interface + HashToField func(u []big.Int, b []byte) + func NewExpanderMD(h crypto.Hash, p *big.Int, L uint, dst []byte) FieldHasher + type Group interface + Generator func() Element + HashToElement func(data, dst []byte) Element + HashToScalar func(data, dst []byte) Scalar + Identity func() Element + NewElement func() Element + NewScalar func() Scalar + Order func() Scalar + RandomElement func(io.Reader) Element + RandomScalar func(io.Reader) Scalar + var P256 Group = wG{ ... } + var P384 Group = wG{ ... } + var P521 Group = wG{ ... } + var Ristretto255 Group = ristrettoGroup{} + type Scalar interface + Add func(Scalar, Scalar) Scalar + Inv func(Scalar) Scalar + IsEqual func(Scalar) bool + Mul func(Scalar, Scalar) Scalar + Neg func(Scalar) Scalar + Sub func(Scalar, Scalar) Scalar