Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneratePrivateKey ¶
func GeneratePrivateKey() (*ecdsa.PrivateKey, error)
GeneratePrivateKey generates a new private key
func PrivateKeyFromHex ¶
func PrivateKeyFromHex(hexKey string) (*ecdsa.PrivateKey, error)
PrivateKeyFromHex converts a hex string to private key
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client encapsulates Ethereum client connection information
func ClientFromSuite ¶
ClientFromSuite creates a Client from an existing Suite (for legacy code compatibility)
func NewClient ¶
NewClient creates a new Ethereum client from configuration This is the SINGLE entry point for creating clients, eliminating dial repetition
func NewClientWithPrivateKey ¶
func NewClientWithPrivateKey(cfg *config.Config, nodeIndex int, privateKey *ecdsa.PrivateKey) (*Client, error)
NewClientWithPrivateKey creates a client with a custom private key
func (*Client) Dial ¶
Dial establishes a connection to the node This is the unified dial method, replacing all the scattered dial code
func (*Client) DialAndPeer ¶
DialAndPeer establishes a connection and performs peering Pass nil for default peering
func (*Client) GetNodeName ¶
GetNodeName returns the node name