Documentation
¶
Index ¶
Constants ¶
View Source
const ( BLSPublicKeyLength int = 48 BLSSecretKeyLength int = 32 BLSSignatureLength int = 96 )
Variables ¶
View Source
var ( ErrDeserializeSecretKey = errors.New("could not deserialize secret key from bytes") ErrInvalidPubkey = errors.New("invalid pubkey") ErrInvalidPubkeyLength = errors.New("invalid pubkey length") ErrInvalidSecretKeyLength = errors.New("invalid secret key length") ErrInvalidSignature = errors.New("invalid signature") ErrInvalidSignatureLength = errors.New("invalid signature length") ErrUncompressPubkey = errors.New("could not uncompress public key from bytes") ErrUncompressSignature = errors.New("could not uncompress signature from bytes") )
Functions ¶
func GenerateNewKeypair ¶
func VerifySignatureBytes ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.