Versions in this module Expand all Collapse all v1 v1.3.9 Jun 11, 2024 v1.3.8 Apr 24, 2024 Changes in this version + var ErrAggregate = errors.New("bls: error while aggregating signatures") + var ErrInvalid = errors.New("bls: invalid BLS instance") + var ErrInvalidKey = errors.New("bls: invalid key") + var ErrKeyGen = errors.New("bls: too many unsuccessful key generation tries") + var ErrShortIKM = errors.New("bls: IKM material shorter than 32 bytes") + func VerifyAggregate[K KeyGroup](pubs []*PublicKey[K], msgs [][]byte, aggSig Signature) bool + func Verify[K KeyGroup](pub *PublicKey[K], msg []byte, sig Signature) bool + type G1 struct + type G2 struct + type KeyG1SigG2 = G1 + type KeyG2SigG1 = G2 + type KeyGroup interface + type PrivateKey struct + func KeyGen[K KeyGroup](ikm, salt, keyInfo []byte) (*PrivateKey[K], error) + func (k *PrivateKey[K]) Equal(x crypto.PrivateKey) bool + func (k *PrivateKey[K]) MarshalBinary() ([]byte, error) + func (k *PrivateKey[K]) Public() crypto.PublicKey + func (k *PrivateKey[K]) PublicKey() *PublicKey[K] + func (k *PrivateKey[K]) UnmarshalBinary(data []byte) error + func (k *PrivateKey[K]) Validate() bool + type PublicKey struct + func (k *PublicKey[K]) Equal(x crypto.PublicKey) bool + func (k *PublicKey[K]) MarshalBinary() ([]byte, error) + func (k *PublicKey[K]) UnmarshalBinary(data []byte) error + func (k *PublicKey[K]) Validate() bool + type Signature = []byte + func Aggregate[K KeyGroup](k K, sigs []Signature) (Signature, error) + func Sign[K KeyGroup](k *PrivateKey[K], msg []byte) Signature