cli

package
v0.0.0-...-139c2bc Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildDate string

BuildDate is the build date of the binaries

View Source
var Version string

Version is the version of the binaries

Functions

func Assert

func Assert(condition bool, quiet bool, msg string)

Assert checks a condition and quits if it is false

func Err

func Err(quiet bool, msg string)

Err prints an erro rand quits

func ErrAssert

func ErrAssert(condition bool, err error, quiet bool, msg string)

ErrAssert checks a condition and quits if it is false

func ErrCheck

func ErrCheck(err error, quiet bool, msg string)

ErrCheck checks for an error and quits if it is present

func Log

func Log(really bool, msg string)

Log logs a message if really is true

func ObtainAccount

func ObtainAccount(wallet *accounts.Wallet, address *common.Address, passphrase string) (*accounts.Account, error)

ObtainAccount fetches the account for a given address

func ObtainWallet

func ObtainWallet(chainID *big.Int, address common.Address) (accounts.Wallet, error)

ObtainWallet fetches the wallet for a given address

func VerifyPassphrase

func VerifyPassphrase(wallet accounts.Wallet, account accounts.Account, passphrase string) bool

VerifyPassphrase confirms that a passphrase is correct for an account

Types

This section is empty.

Jump to

Keyboard shortcuts

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