Documentation ¶
Index ¶
- func AggregateSignatures(signatures ...[]byte) (aggregatedSignature []byte, err error)
- func LoadKeyPair(keyPairLocation string) (privateKey, publicKey []byte, err error)
- func NewKeyPair() (privateKey, publicKey []byte, err error)
- func NewKeyPairFromBytes(seed []byte) (privateKey, publicKey []byte, err error)
- func Sign(data, privateKey []byte) (signature []byte, err error)
- func SignAndAggregate(data, privateKey, existingSignature []byte) (signature []byte, err error)
- func StoreKeyPair(privateKey, publicKey []byte, fileLocation string) error
- func Verify(data, signature []byte, pubKeys ...[]byte) (result bool, err error)
- type KeyPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AggregateSignatures ¶
AggregateSignatures aggregates multiple signatures together
func LoadKeyPair ¶
LoadKeyPair loads a BLS keypair from a file
func NewKeyPair ¶
NewKeyPair creates a new BLS keypair
func NewKeyPairFromBytes ¶
NewKeyPairFromBytes creates a new BLS keypair deterministically based on a given seed
func SignAndAggregate ¶
SignAndAggregate signs the data using the privateKey, then aggregate the signature with an existing signature
func StoreKeyPair ¶
StoreKeyPair stores a BLS keypair to a file
Types ¶
Click to show internal directories.
Click to hide internal directories.