wallet

package
v0.0.0-...-00d5616 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBalance

func GetBalance() (uint64, error)

func GetPrivateKey

func GetPrivateKey() (*ecdsa.PrivateKey, error)

Opens the wallet and returns the private key

func GetStateNonce

func GetStateNonce() (uint64, error)

func GetWalletAddress

func GetWalletAddress() ([]byte, error)

func PrintInfo

func PrintInfo() error

func SetupWallet

func SetupWallet() error

func UpdateWallet

func UpdateWallet(balance, stateNonce uint64) error

func ValidRecipLen

func ValidRecipLen(recipient string) bool

ValidRecipLen validates the size of the recipient

Types

type Wallet

type Wallet struct {
	WalletAddress string
	Balance       uint64
	StateNonce    uint64
}

Jump to

Keyboard shortcuts

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