Documentation ¶
Index ¶
- type KyberMultiSignerBLS
- func (kms *KyberMultiSignerBLS) AggregatePublicKeys(suite crypto.Suite, pubKeys ...crypto.Point) ([]byte, error)
- func (kms *KyberMultiSignerBLS) AggregateSignatures(suite crypto.Suite, sigs ...[]byte) ([]byte, error)
- func (kms *KyberMultiSignerBLS) IsInterfaceNil() bool
- func (kms *KyberMultiSignerBLS) ScalarMulSig(suite crypto.Suite, scalar crypto.Scalar, sig []byte) ([]byte, error)
- func (kms *KyberMultiSignerBLS) SignShare(privKey crypto.PrivateKey, message []byte) ([]byte, error)
- func (kms *KyberMultiSignerBLS) VerifyAggregatedSig(suite crypto.Suite, aggPointsBytes []byte, aggSigBytes []byte, msg []byte) error
- func (kms *KyberMultiSignerBLS) VerifySigBytes(suite crypto.Suite, sig []byte) error
- func (kms *KyberMultiSignerBLS) VerifySigShare(pubKey crypto.PublicKey, message []byte, sig []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KyberMultiSignerBLS ¶
type KyberMultiSignerBLS struct{}
KyberMultiSignerBLS provides an implements of the crypto.LowLevelSignerBLS interface
func (*KyberMultiSignerBLS) AggregatePublicKeys ¶
func (kms *KyberMultiSignerBLS) AggregatePublicKeys(suite crypto.Suite, pubKeys ...crypto.Point) ([]byte, error)
AggregatePublicKeys produces an aggregation of BLS public keys (points)
func (*KyberMultiSignerBLS) AggregateSignatures ¶
func (kms *KyberMultiSignerBLS) AggregateSignatures(suite crypto.Suite, sigs ...[]byte) ([]byte, error)
AggregateSignatures produces an aggregation of single BLS signatures over the same message
func (*KyberMultiSignerBLS) IsInterfaceNil ¶ added in v1.0.16
func (kms *KyberMultiSignerBLS) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*KyberMultiSignerBLS) ScalarMulSig ¶
func (kms *KyberMultiSignerBLS) ScalarMulSig(suite crypto.Suite, scalar crypto.Scalar, sig []byte) ([]byte, error)
ScalarMulSig returns the result of multiplication of a scalar with a BLS signature
func (*KyberMultiSignerBLS) SignShare ¶
func (kms *KyberMultiSignerBLS) SignShare(privKey crypto.PrivateKey, message []byte) ([]byte, error)
SignShare produces a BLS signature share (single BLS signature) over a given message
func (*KyberMultiSignerBLS) VerifyAggregatedSig ¶
func (kms *KyberMultiSignerBLS) VerifyAggregatedSig( suite crypto.Suite, aggPointsBytes []byte, aggSigBytes []byte, msg []byte, ) error
VerifyAggregatedSig verifies if a BLS aggregated signature is valid over a given message
func (*KyberMultiSignerBLS) VerifySigBytes ¶
func (kms *KyberMultiSignerBLS) VerifySigBytes(suite crypto.Suite, sig []byte) error
VerifySigBytes provides an "cheap" integrity check of a signature given as a byte array It does not validate the signature over a message, only verifies that it is a signature
func (*KyberMultiSignerBLS) VerifySigShare ¶
func (kms *KyberMultiSignerBLS) VerifySigShare(pubKey crypto.PublicKey, message []byte, sig []byte) error
VerifySigShare verifies a BLS signature share (single BLS signature) over a given message