Versions in this module Expand all Collapse all v1 v1.11.11 Aug 6, 2024 Changes in this version + const PublicKeyLen + const SecretKeyLen + const SignatureLen + var ErrFailedPublicKeyDecompress = errors.New("couldn't decompress public key") + var ErrFailedSignatureDecompress = errors.New("couldn't decompress signature") + var ErrNoPublicKeys = errors.New("no public keys") + func PublicKeyToCompressedBytes(pk *PublicKey) []byte + func PublicKeyToUncompressedBytes(key *PublicKey) []byte + func SecretKeyToBytes(sk *SecretKey) []byte + func SignatureToBytes(sig *Signature) []byte + func Verify(pk *PublicKey, sig *Signature, msg []byte) bool + func VerifyProofOfPossession(pk *PublicKey, sig *Signature, msg []byte) bool + type AggregatePublicKey = blst.P1Aggregate + type AggregateSignature = blst.P2Aggregate + type PublicKey = blst.P1Affine + func AggregatePublicKeys(pks []*PublicKey) (*PublicKey, error) + func PublicFromSecretKey(sk *SecretKey) *PublicKey + func PublicKeyFromCompressedBytes(pkBytes []byte) (*PublicKey, error) + func PublicKeyFromValidUncompressedBytes(pkBytes []byte) *PublicKey + type SecretKey = blst.SecretKey + func NewSecretKey() (*SecretKey, error) + func SecretKeyFromBytes(skBytes []byte) (*SecretKey, error) + type Signature = blst.P2Affine + func AggregateSignatures(sigs []*Signature) (*Signature, error) + func Sign(sk *SecretKey, msg []byte) *Signature + func SignProofOfPossession(sk *SecretKey, msg []byte) *Signature + func SignatureFromBytes(sigBytes []byte) (*Signature, error)