Documentation ¶
Overview ¶
Package bls implements a go-wrapper around a library implementing the the BLS12-381 curve and signature scheme. This package exposes a public API for verifying and aggregating BLS signatures used by Ethereum 2.0.
Index ¶
- func AggregateSignatures(sigs []common.Signature) common.Signature
- func NewAggregateSignature() common.Signature
- func PublicKeyFromBytes(pubKey []byte) (common.PublicKey, error)
- func RandKey() (common.SecretKey, error)
- func SecretKeyFromBytes(privKey []byte) (common.SecretKey, error)
- func SignatureFromBytes(sig []byte) (common.Signature, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateSignatures ¶
AggregateSignatures converts a list of signatures into a single, aggregated sig.
func NewAggregateSignature ¶
NewAggregateSignature creates a blank aggregate signature.
func PublicKeyFromBytes ¶
PublicKeyFromBytes creates a BLS public key from a BigEndian byte slice.
func SecretKeyFromBytes ¶
SecretKeyFromBytes creates a BLS private key from a BigEndian byte slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.