Versions in this module Expand all Collapse all v1 v1.1.1 Feb 22, 2026 v1.1.0 Feb 19, 2026 Changes in this version + var ErrInvalidBLSSignature = errors.New("invalid BLS Signature") + var ErrInvalidChainID = errors.New("invalid chain ID") + var S256 = btcec.S256() + func BLSSecretKeyToPubkeyBytes(key *bls_sig.SecretKey) ([]byte, error) + func BytesToBLSSecretKey(input []byte) (*bls_sig.SecretKey, error) + func BytesToECDSAPrivateKey(input []byte) (*ecdsa.PrivateKey, error) + func CreateAddress(addr types.Address, nonce uint64) types.Address + func CreateAddress2(addr types.Address, salt [32]byte, inithash []byte) types.Address + func Ecrecover(hash, sig []byte) ([]byte, error) + func GenerateAndEncodeBLSSecretKey() (*bls_sig.SecretKey, []byte, error) + func GenerateAndEncodeECDSAPrivateKey() (*ecdsa.PrivateKey, []byte, error) + func GenerateBLSKey() (*bls_sig.SecretKey, error) + func GenerateECDSAKey() (*ecdsa.PrivateKey, error) + func GenerateOrReadPrivateKey(path string) (*ecdsa.PrivateKey, error) + func GetAddressFromKey(key goCrypto.PrivateKey) (types.Address, error) + func Keccak256(v ...[]byte) []byte + func Keccak256Hash(v ...[]byte) (hash types.Hash) + func MarshalECDSAPrivateKey(priv *ecdsa.PrivateKey) ([]byte, error) + func MarshalPublicKey(pub *ecdsa.PublicKey) []byte + func ParseECDSAPrivateKey(buf []byte) (*ecdsa.PrivateKey, error) + func ParsePublicKey(buf []byte) (*ecdsa.PublicKey, error) + func PubKeyToAddress(pub *ecdsa.PublicKey) types.Address + func ReadConsensusKey(manager secrets.SecretsManager) (*ecdsa.PrivateKey, error) + func RecoverPubkey(signature, hash []byte) (*ecdsa.PublicKey, error) + func Sign(priv *ecdsa.PrivateKey, hash []byte) ([]byte, error) + func SignByBLS(prv *bls_sig.SecretKey, msg []byte) ([]byte, error) + func UnmarshalBLSPublicKey(input []byte) (*bls_sig.PublicKey, error) + func UnmarshalBLSSignature(input []byte) (*bls_sig.Signature, error) + func ValidateSignatureValues(v, r, s *big.Int, isHomestead bool) bool + func VerifyBLSSignature(pubkey *bls_sig.PublicKey, sig *bls_sig.Signature, message []byte) error + func VerifyBLSSignatureFromBytes(rawPubkey, rawSig, message []byte) error + type EIP155Signer struct + func NewEIP155Signer(chainID uint64, isHomestead bool) *EIP155Signer + func (e *EIP155Signer) Hash(tx *types.Transaction) types.Hash + func (e *EIP155Signer) Sender(tx *types.Transaction) (types.Address, error) + func (e *EIP155Signer) SignTx(tx *types.Transaction, privateKey *ecdsa.PrivateKey) (*types.Transaction, error) + type FrontierSigner struct + func NewFrontierSigner(isHomestead bool) *FrontierSigner + func (f *FrontierSigner) Hash(tx *types.Transaction) types.Hash + func (f *FrontierSigner) Sender(tx *types.Transaction) (types.Address, error) + func (f *FrontierSigner) SignTx(tx *types.Transaction, privateKey *ecdsa.PrivateKey) (*types.Transaction, error) + type KeccakState interface + Read func([]byte) (int, error) + func NewKeccakState() KeccakState + type KeyType string + const KeyBLS + const KeyECDSA + type LondonSigner struct + func NewLondonSigner(chainID uint64, isHomestead bool, fallbackSigner TxSigner) *LondonSigner + func (e *LondonSigner) Hash(tx *types.Transaction) types.Hash + func (e *LondonSigner) Sender(tx *types.Transaction) (types.Address, error) + func (e *LondonSigner) SignTx(tx *types.Transaction, pk *ecdsa.PrivateKey) (*types.Transaction, error) + type TxSigner interface + Hash func(tx *types.Transaction) types.Hash + Sender func(tx *types.Transaction) (types.Address, error) + SignTx func(tx *types.Transaction, priv *ecdsa.PrivateKey) (*types.Transaction, error) + func NewSigner(forks chain.ForksInTime, chainID uint64) TxSigner