geth

package
v0.0.0-...-ac8a210 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCouldNotDerivePublicKey = errors.New("could not derive public key from private key")
View Source
var ErrInvalidPublicKey = errors.New("could not parse the private key from the provided hex string")

Functions

func NewAgent

func NewAgent(cfg config.GethConfig) (*agent, error)

func NewDeployer

func NewDeployer(logger *zap.Logger, cfg config.GethConfig) (*deployer, error)

Types

type Wallet

type Wallet struct {
	// contains filtered or unexported fields
}

func NewWallet

func NewWallet() (*Wallet, error)

func NewWalletFromPrivateKeyHex

func NewWalletFromPrivateKeyHex(hex string) (*Wallet, error)

func (*Wallet) GetAddress

func (w *Wallet) GetAddress() common.Address

func (*Wallet) GetPrivateKey

func (w *Wallet) GetPrivateKey() *ecdsa.PrivateKey

func (*Wallet) GetPrivateKeyHex

func (w *Wallet) GetPrivateKeyHex() string

func (*Wallet) GetPublicKey

func (w *Wallet) GetPublicKey() *ecdsa.PublicKey

func (*Wallet) GetPublicKeyHex

func (w *Wallet) GetPublicKeyHex() string

Jump to

Keyboard shortcuts

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