Versions in this module Expand all Collapse all v1 v1.4.2 Oct 4, 2021 v1.4.1 Oct 4, 2021 Changes in this version + const EPOCHENTROPYBYTES + const PUBLICKEYBYTES + const SIGNATUREBYTES + func AggregateSignatures(signatures [][]byte) ([]byte, error) + func ECDSAToBLS(privateKeyECDSA *ecdsa.PrivateKey) ([]byte, error) + func EncodeEpochSnarkData(newValSet []SerializedPublicKey, maximumNonSigners uint32, epochIndex uint16) ([]byte, []byte, error) + func EncodeEpochSnarkDataCIP22(newValSet []SerializedPublicKey, maximumNonSigners, maxValidators uint32, ...) ([]byte, []byte, error) + func EpochEntropyFromHash(hash common.Hash) bls.EpochEntropy + func UncompressKey(serialized SerializedPublicKey) ([]byte, error) + func VerifyAggregatedSignature(publicKeys []SerializedPublicKey, message []byte, extraData []byte, ...) error + func VerifySignature(publicKey SerializedPublicKey, message []byte, extraData []byte, ...) error + type SerializedPublicKey [PUBLICKEYBYTES]byte + func PrivateToPublic(privateKeyBytes []byte) (SerializedPublicKey, error) + func (pk *SerializedPublicKey) UnmarshalJSON(input []byte) error + func (pk *SerializedPublicKey) UnmarshalText(input []byte) error + func (pk SerializedPublicKey) MarshalText() ([]byte, error) + type SerializedSignature [SIGNATUREBYTES]byte + func SerializedSignatureFromBytes(serializedSignature []byte) (SerializedSignature, error) + func (sig *SerializedSignature) UnmarshalJSON(input []byte) error + func (sig *SerializedSignature) UnmarshalText(input []byte) error + func (sig SerializedSignature) MarshalText() ([]byte, error)