accounts

package
v0.0.0-...-54f9ae5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Address           string
	PrivateKey        *ecdsa.PrivateKey
	PrivateKeyEncoded string
	PublicKeyEncoded  string
}

type AccountRepository

type AccountRepository interface {
	CreateAccount(password string) (string, error)
	GetAccount(address string, password string) (Account, error)
}

func NewAccountRepository

func NewAccountRepository(keyStorePath string) AccountRepository

type AccountService

type AccountService interface {
	CreateAccount(password string) (string, error)
	GetAccount(address string, password string) (Account, error)
	GetBalance(ctx context.Context, address string) (big.Float, error)
}

func NewAccountService

func NewAccountService(accountRepository AccountRepository, client *ethclient.Client) AccountService

Jump to

Keyboard shortcuts

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