Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // For immediate clarity, using literal numbers instead of blst named constants SecretKeyLength = 32 PublicKeyLength = 48 SignatureLength = 96 // draft-irtf-cfrg-pairing-friendly-curves-11#4.2.1 BLS12_381 CurveOrderHex = "0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001" // draft-irtf-cfrg-bls-signature-05#4.2.3 DomainSeparationTag = []byte("BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_") )
View Source
var ( ErrSecretKeyGen = errors.New("BLS secret keygen failed") ErrSecretKeyUnmarshal = errors.New("BLS secret key unmarshal failed") ErrPublicKeyUnmarshal = errors.New("BLS public key unmarshal failed") ErrPublicKeyAggregate = errors.New("BLS public key aggregation failed") ErrSignatureUnmarshal = errors.New("BLS signature unmarshal failed") ErrSignatureAggregate = errors.New("BLS signature aggregation failed") ErrEmptyArray = errors.New("BLS aggregation failed due to empty array") )
Functions ¶
func ErrPublicKeyLength ¶
func ErrSecretKeyLength ¶
func ErrSignatureLength ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.