Documentation ¶
Index ¶
- Constants
- func AggregateSignatures(signatures [][]byte) ([]byte, error)
- func ECDSAToBLS(privateKeyECDSA *ecdsa.PrivateKey) ([]byte, error)
- func EncodeEpochSnarkData(newValSet []SerializedPublicKey, maximumNonSignersPlusOne uint32, ...) ([]byte, error)
- func VerifyAggregatedSignature(publicKeys []SerializedPublicKey, message []byte, extraData []byte, ...) error
- func VerifySignature(publicKey SerializedPublicKey, message []byte, extraData []byte, ...) error
- type SerializedPublicKey
- type SerializedSignature
Constants ¶
View Source
const ( PUBLICKEYBYTES = bls.PUBLICKEYBYTES SIGNATUREBYTES = bls.SIGNATUREBYTES )
Variables ¶
This section is empty.
Functions ¶
func AggregateSignatures ¶
func ECDSAToBLS ¶
func ECDSAToBLS(privateKeyECDSA *ecdsa.PrivateKey) ([]byte, error)
func EncodeEpochSnarkData ¶
func EncodeEpochSnarkData(newValSet []SerializedPublicKey, maximumNonSignersPlusOne uint32, epochIndex uint16) ([]byte, error)
func VerifySignature ¶
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)
Click to show internal directories.
Click to hide internal directories.