Versions in this module Expand all Collapse all v0 v0.1.0 Jun 22, 2020 Changes in this version + const BLST_FP_BYTES + const BLST_FP_LIMBS + const BLST_P1_COMPRESS_BYTES + const BLST_P1_SERIALIZE_BYTES + const BLST_P2_COMPRESS_BYTES + const BLST_P2_SERIALIZE_BYTES + const BLST_SCALAR_BYTES + const BLST_SCALAR_LIMBS + func PairingAggregatePkInG1(ctx Pairing, PK *P1Affine, sig *P2Affine, hash_or_encode bool, msg []byte, ...) int + func PairingAggregatePkInG2(ctx Pairing, PK *P2Affine, sig *P1Affine, hash_or_encode bool, msg []byte, ...) int + func PairingCommit(ctx Pairing) + func PairingFinalVerify(ctx Pairing, optional ...*Fp12) bool + func PairingMerge(ctx Pairing, ctx1 Pairing) int + func PrintBytes(val []byte, name string) + type Fp = C.blst_fp + func (e1 *Fp) Equals(e2 *Fp) bool + func (fp *Fp) ToBEndian() []byte + func (fp *Fp) ToLEndian() []byte + type Fp12 = C.blst_fp12 + type Fp2 = C.blst_fp2 + func (e1 *Fp2) Equals(e2 *Fp2) bool + func (f *Fp2) Print(name string) + type Fp6 = C.blst_fp6 + func (e1 *Fp6) Equals(e2 *Fp6) bool + type Message = []byte + type P1 = C.blst_p1 + func EncodeToG1(msg []byte, dst []byte, optional ...[]byte) *P1 + func HashToG1(msg []byte, dst []byte, optional ...[]byte) *P1 + func (p *P1) Print(name string) + func (p *P1) ToAffine() *P1Affine + func (p1 *P1) Compress() []byte + func (p1 *P1) Serialize() []byte + type P1Affine = C.blst_p1_affine + func (dummy *P1Affine) AggregateVerifyCompressed(sig []byte, pks [][]byte, msgs []Message, dst []byte, optional ...bool) bool + func (dummy *P1Affine) VerifyCompressed(sig []byte, pk []byte, msg Message, dst []byte, optional ...bool) bool + func (e1 *P1Affine) Equals(e2 *P1Affine) bool + func (p1 *P1Affine) Compress() []byte + func (p1 *P1Affine) Deserialize(in []byte) *P1Affine + func (p1 *P1Affine) Serialize() []byte + func (p1 *P1Affine) Uncompress(in []byte) *P1Affine + func (pk *P1Affine) From(s *Scalar) *P1Affine + func (sig *P1Affine) AggregateVerify(pks []*P2Affine, msgs []Message, dst []byte, optional ...interface{}) bool + func (sig *P1Affine) FastAggregateVerify(pks []*P2Affine, msg Message, dst []byte, optional ...interface{}) bool + func (sig *P1Affine) Sign(sk *SecretKey, msg []byte, dst []byte, optional ...interface{}) *P1Affine + func (sig *P1Affine) Verify(pk *P2Affine, msg Message, dst []byte, optional ...interface{}) bool + type P1Aggregate struct + func (agg *P1Aggregate) Add(elmt *P1Affine) *P1Aggregate + func (agg *P1Aggregate) AddAggregate(other *P1Aggregate) *P1Aggregate + func (agg *P1Aggregate) Aggregate(elmts []*P1Affine) *P1Aggregate + func (agg *P1Aggregate) AggregateCompressed(elmts [][]byte) *P1Aggregate + func (agg *P1Aggregate) ToAffine() *P1Affine + type P2 = C.blst_p2 + func EncodeToG2(msg []byte, dst []byte, optional ...[]byte) *P2 + func HashToG2(msg []byte, dst []byte, optional ...[]byte) *P2 + func (p *P2) Print(name string) + func (p *P2) ToAffine() *P2Affine + func (p2 *P2) Compress() []byte + func (p2 *P2) Serialize() []byte + type P2Affine = C.blst_p2_affine + func (dummy *P2Affine) AggregateVerifyCompressed(sig []byte, pks [][]byte, msgs []Message, dst []byte, optional ...bool) bool + func (dummy *P2Affine) VerifyCompressed(sig []byte, pk []byte, msg Message, dst []byte, optional ...bool) bool + func (e1 *P2Affine) Equals(e2 *P2Affine) bool + func (p2 *P2Affine) Compress() []byte + func (p2 *P2Affine) Deserialize(in []byte) *P2Affine + func (p2 *P2Affine) Serialize() []byte + func (p2 *P2Affine) Uncompress(in []byte) *P2Affine + func (pk *P2Affine) From(s *Scalar) *P2Affine + func (sig *P2Affine) AggregateVerify(pks []*P1Affine, msgs []Message, dst []byte, optional ...interface{}) bool + func (sig *P2Affine) FastAggregateVerify(pks []*P1Affine, msg Message, dst []byte, optional ...interface{}) bool + func (sig *P2Affine) Sign(sk *SecretKey, msg []byte, dst []byte, optional ...interface{}) *P2Affine + func (sig *P2Affine) Verify(pk *P1Affine, msg Message, dst []byte, optional ...interface{}) bool + type P2Aggregate struct + func (agg *P2Aggregate) Add(elmt *P2Affine) *P2Aggregate + func (agg *P2Aggregate) AddAggregate(other *P2Aggregate) *P2Aggregate + func (agg *P2Aggregate) Aggregate(elmts []*P2Affine) *P2Aggregate + func (agg *P2Aggregate) AggregateCompressed(elmts [][]byte) *P2Aggregate + func (agg *P2Aggregate) ToAffine() *P2Affine + type Pairing = []uint64 + func PairingCtx() Pairing + type Scalar = C.blst_scalar + func (fr *Scalar) ToBEndian() []byte + func (fr *Scalar) ToLEndian() []byte + func (s *Scalar) Deserialize(in []byte) *Scalar + func (s *Scalar) Print(name string) + func (s *Scalar) Serialize() []byte + func (s1 *Scalar) Equals(s2 *Scalar) bool + type SecretKey = Scalar + func KeyGen(ikm []byte, optional ...[]byte) *SecretKey