blscrypto

package
v0.0.0-...-1efdddb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PUBLICKEYBYTES = bls.PUBLICKEYBYTES
	SIGNATUREBYTES = bls.SIGNATUREBYTES
)

Variables

This section is empty.

Functions

func AggregateSignatures

func AggregateSignatures(signatures [][]byte) ([]byte, error)

func ECDSAToBLS

func ECDSAToBLS(privateKeyECDSA *ecdsa.PrivateKey) ([]byte, error)

func EncodeEpochSnarkData

func EncodeEpochSnarkData(newValSet []SerializedPublicKey, maximumNonSigners uint32, epochIndex uint16) ([]byte, error)

func VerifyAggregatedSignature

func VerifyAggregatedSignature(publicKeys []SerializedPublicKey, message []byte, extraData []byte, signature []byte, shouldUseCompositeHasher bool) error

func VerifySignature

func VerifySignature(publicKey SerializedPublicKey, message []byte, extraData []byte, signature []byte, shouldUseCompositeHasher bool) error

Types

type SerializedPublicKey

type SerializedPublicKey [PUBLICKEYBYTES]byte

func PrivateToPublic

func PrivateToPublic(privateKeyBytes []byte) (SerializedPublicKey, error)

type SerializedSignature

type SerializedSignature [SIGNATUREBYTES]byte

func SerializedSignatureFromBytes

func SerializedSignatureFromBytes(serializedSignature []byte) (SerializedSignature, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL