Versions in this module Expand all Collapse all v0 v0.0.2 Jul 5, 2022 Changes in this version type PublicKey + func (p *PublicKey) Mul(sec *SecretKey) v0.0.1 Mar 24, 2022 Changes in this version + func Initialization(c CurveType) + type CurveType int32 + const MCL_BLS12_381 + const MCL_BN160 + const MCL_BN254 + const MCL_BN381_1 + const MCL_BN381_2 + const MCL_BN462 + const MCL_BN_SNARK1 + type ID struct + func (id *ID) Deserialize(buf []byte) error + func (id *ID) GetDecString() string + func (id *ID) GetHexString() string + func (id *ID) GetLittleEndian() []byte + func (id *ID) IsEqual(rhs *ID) bool + func (id *ID) IsZero() bool + func (id *ID) Serialize() []byte + func (id *ID) SerializeToHexStr() string + func (id *ID) SetDecString(s string) error + func (id *ID) SetHexString(s string) error + func (id *ID) SetInt(x int) + func (id *ID) SetLittleEndian(buf []byte) error + type PublicKey struct + func (p *PublicKey) Add(rhs *PublicKey) + func (p *PublicKey) Deserialize(serialBuf []byte) error + func (p *PublicKey) IsEqual(rhs *PublicKey) bool + func (p *PublicKey) IsValidOrder() bool + func (p *PublicKey) IsZero() bool + func (p *PublicKey) Recover(pubVec []PublicKey, idVec []ID) error + func (p *PublicKey) Serialize() []byte + func (p *PublicKey) SerializeToHexStr() string + func (p *PublicKey) SetByMpkAndID(mpk []PublicKey, id *ID) error + type SecretKey struct + func CreateSecretKey() *SecretKey + func (s *SecretKey) Add(rhs *SecretKey) + func (s *SecretKey) Deserialize(serialBuf []byte) error + func (s *SecretKey) GetPublicKey() (p *PublicKey) + func (s *SecretKey) IsEqual(rhs *SecretKey) bool + func (s *SecretKey) IsZero() bool + func (s *SecretKey) Recover(secVec []SecretKey, idVec []ID) error + func (s *SecretKey) Serialize() []byte + func (s *SecretKey) SerializeToHexStr() string + func (s *SecretKey) Set(msk []SecretKey, id *ID) error + func (s *SecretKey) SetByMskAndID(msk []SecretKey, id *ID) error + func (s *SecretKey) SetLittleEndian(buf []byte) error + func (s *SecretKey) SetLittleEndianMod(buf []byte) error + func (s *SecretKey) Sign(msg string) (sig *Signature) + func (s *SecretKey) SignHash(hash []byte) *Signature + type Signature struct + func (sig *Signature) Add(rhs *Signature) + func (sig *Signature) AggregateSignature(sigVec []Signature) + func (sig *Signature) Deserialize(serialBuf []byte) error + func (sig *Signature) FastAggregateVerify(pubVec []PublicKey, msg []byte) bool + func (sig *Signature) IsEqual(rhs *Signature) bool + func (sig *Signature) IsValidOrder() bool + func (sig *Signature) IsZero() bool + func (sig *Signature) Recover(sigVec []Signature, idVec []ID) error + func (sig *Signature) Serialize() []byte + func (sig *Signature) SerializeToHexStr() string + func (sig *Signature) Verify(p *PublicKey, msg string) bool + func (sig *Signature) VerifyAggregateHashes(pubVec []PublicKey, hash [][]byte) bool + func (sig *Signature) VerifyHash(p *PublicKey, hash []byte) bool