Documentation ¶
Overview ¶
Package blst implements a go-wrapper around a library implementing the BLS12-381 curve and signature scheme. This package exposes a public API for verifying and aggregating BLS signatures used by Ethereum.
This implementation uses the library written by Supranational, blst.
Index ¶
- func AggregateCompressedSignatures(multiSigs [][]byte) (common.Signature, error)
- func AggregateMultiplePubkeys(pubs []common.PublicKey) common.PublicKey
- func AggregateSignatures(_ []common.Signature) common.Signature
- func MultipleSignaturesFromBytes(multiSigs [][]byte) ([]common.Signature, error)
- func NewAggregateSignature() common.Signature
- func RandKey() (common.SecretKey, error)
- func VerifyCompressed(_, _, _ []byte) bool
- func VerifyMultipleSignatures(_ [][]byte, _ [][32]byte, _ []common.PublicKey) (bool, error)
- func VerifySignature(_ []byte, _ [32]byte, _ common.PublicKey) (bool, error)
- type PublicKey
- type SecretKey
- type Signature
- func (s Signature) AggregateVerify(_ []common.PublicKey, _ [][32]byte) bool
- func (s Signature) Copy() common.Signature
- func (s Signature) Eth2FastAggregateVerify(_ []common.PublicKey, _ [32]byte) bool
- func (s Signature) FastAggregateVerify(_ []common.PublicKey, _ [32]byte) bool
- func (s Signature) Marshal() []byte
- func (s Signature) Verify(_ common.PublicKey, _ []byte) bool
- func (s Signature) VerifyProof(_ common.PublicKey, _ []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateCompressedSignatures ¶
AggregateCompressedSignatures -- stub
func AggregateMultiplePubkeys ¶
AggregateMultiplePubkeys -- stub
func AggregateSignatures ¶
AggregateSignatures -- stub
func MultipleSignaturesFromBytes ¶
MultipleSignaturesFromBytes -- stub
func NewAggregateSignature ¶
NewAggregateSignature -- stub
func VerifyMultipleSignatures ¶
VerifyMultipleSignatures -- stub
Types ¶
type PublicKey ¶
type PublicKey struct{}
PublicKey -- stub
func AggregatePublicKeys ¶
AggregatePublicKeys -- stub
func PublicKeyFromBytes ¶
PublicKeyFromBytes -- stub
type SecretKey ¶
type SecretKey struct{}
SecretKey -- stub
func SecretKeyFromBytes ¶
SecretKeyFromBytes -- stub
type Signature ¶
type Signature struct{}
Signature -- stub
func SignatureFromBytes ¶
SignatureFromBytes -- stub
func (Signature) AggregateVerify ¶
AggregateVerify -- stub
func (Signature) Eth2FastAggregateVerify ¶
Eth2FastAggregateVerify -- stub
func (Signature) FastAggregateVerify ¶
FastAggregateVerify -- stub