Versions in this module Expand all Collapse all v0 v0.0.3 Feb 19, 2025 v0.0.2 Jan 15, 2025 Changes in this version + type PointG1 struct + func NewPointG1() *PointG1 + func (po *PointG1) Add(p crypto.Point) (crypto.Point, error) + func (po *PointG1) Clone() crypto.Point + func (po *PointG1) Equal(p crypto.Point) (bool, error) + func (po *PointG1) GetUnderlyingObj() interface{} + func (po *PointG1) IsInterfaceNil() bool + func (po *PointG1) MarshalBinary() ([]byte, error) + func (po *PointG1) Mul(s crypto.Scalar) (crypto.Point, error) + func (po *PointG1) Neg() crypto.Point + func (po *PointG1) Null() crypto.Point + func (po *PointG1) Pick() (crypto.Point, error) + func (po *PointG1) Set(p crypto.Point) error + func (po *PointG1) Sub(p crypto.Point) (crypto.Point, error) + func (po *PointG1) UnmarshalBinary(point []byte) error + type PointG2 struct + func NewPointG2() *PointG2 + func (po *PointG2) Add(p crypto.Point) (crypto.Point, error) + func (po *PointG2) Clone() crypto.Point + func (po *PointG2) Equal(p crypto.Point) (bool, error) + func (po *PointG2) GetUnderlyingObj() interface{} + func (po *PointG2) IsInterfaceNil() bool + func (po *PointG2) MarshalBinary() ([]byte, error) + func (po *PointG2) Mul(s crypto.Scalar) (crypto.Point, error) + func (po *PointG2) Neg() crypto.Point + func (po *PointG2) Null() crypto.Point + func (po *PointG2) Pick() (crypto.Point, error) + func (po *PointG2) Set(p crypto.Point) error + func (po *PointG2) Sub(p crypto.Point) (crypto.Point, error) + func (po *PointG2) UnmarshalBinary(point []byte) error + type PointGT struct + func NewPointGT() *PointGT + func (po *PointGT) Add(p crypto.Point) (crypto.Point, error) + func (po *PointGT) Clone() crypto.Point + func (po *PointGT) Equal(p crypto.Point) (bool, error) + func (po *PointGT) GetUnderlyingObj() interface{} + func (po *PointGT) IsInterfaceNil() bool + func (po *PointGT) MarshalBinary() ([]byte, error) + func (po *PointGT) Mul(s crypto.Scalar) (crypto.Point, error) + func (po *PointGT) Neg() crypto.Point + func (po *PointGT) Null() crypto.Point + func (po *PointGT) Pick() (crypto.Point, error) + func (po *PointGT) Set(p crypto.Point) error + func (po *PointGT) Sub(p crypto.Point) (crypto.Point, error) + func (po *PointGT) UnmarshalBinary(point []byte) error + type Scalar struct + Scalar *bls.Fr + func NewScalar() *Scalar + func (sc *Scalar) Add(s crypto.Scalar) (crypto.Scalar, error) + func (sc *Scalar) Clone() crypto.Scalar + func (sc *Scalar) Div(s crypto.Scalar) (crypto.Scalar, error) + func (sc *Scalar) Equal(s crypto.Scalar) (bool, error) + func (sc *Scalar) GetUnderlyingObj() interface{} + func (sc *Scalar) Inv(s crypto.Scalar) (crypto.Scalar, error) + func (sc *Scalar) IsInterfaceNil() bool + func (sc *Scalar) MarshalBinary() ([]byte, error) + func (sc *Scalar) Mul(s crypto.Scalar) (crypto.Scalar, error) + func (sc *Scalar) Neg() crypto.Scalar + func (sc *Scalar) One() crypto.Scalar + func (sc *Scalar) Pick() (crypto.Scalar, error) + func (sc *Scalar) Set(s crypto.Scalar) error + func (sc *Scalar) SetBytes(s []byte) (crypto.Scalar, error) + func (sc *Scalar) SetInt64(v int64) + func (sc *Scalar) Sub(s crypto.Scalar) (crypto.Scalar, error) + func (sc *Scalar) UnmarshalBinary(s []byte) error + func (sc *Scalar) Zero() crypto.Scalar + type SuiteBLS12 struct + G1 *groupG1 + G2 *groupG2 + GT *groupGT + func NewSuiteBLS12() *SuiteBLS12 + func (s *SuiteBLS12) CheckPointValid(pointBytes []byte) error + func (s *SuiteBLS12) CreateKeyPair() (crypto.Scalar, crypto.Point) + func (s *SuiteBLS12) CreatePoint() crypto.Point + func (s *SuiteBLS12) CreatePointForScalar(scalar crypto.Scalar) (crypto.Point, error) + func (s *SuiteBLS12) CreateScalar() crypto.Scalar + func (s *SuiteBLS12) GetUnderlyingSuite() interface{} + func (s *SuiteBLS12) IsInterfaceNil() bool + func (s *SuiteBLS12) PointLen() int + func (s *SuiteBLS12) RandomStream() cipher.Stream + func (s *SuiteBLS12) ScalarLen() int + func (s *SuiteBLS12) String() string