Versions in this module Expand all Collapse all v0 v0.1.1 May 18, 2022 Changes in this version + const BLSPublicKeyLength + const BLSSecretKeyLength + const BLSSignatureLength + func GenerateNewKeypair() (*SecretKey, *PublicKey, error) + func VerifySignature(sig *Signature, pk *PublicKey, msg []byte) bool + func VerifySignatureBytes(msg, sigBytes, pkBytes []byte) (bool, error) + type PublicKey = blst.P1Affine + func PublicKeyFromBytes(pkBytes []byte) (*PublicKey, error) + func PublicKeyFromSecretKey(sk *SecretKey) *PublicKey + type SecretKey = blst.SecretKey + func GenerateRandomSecretKey() (*SecretKey, error) + func SecretKeyFromBytes(skBytes []byte) (*SecretKey, error) + type Signature = blst.P2Affine + func Sign(sk *SecretKey, msg []byte) *Signature + func SignatureFromBytes(sigBytes []byte) (*Signature, error)