client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Minimum acceptable password length
	MinPassLength = 8

	// Flags
	FlagNode      = "node"
	FlagHeight    = "height"
	FlagTrustNode = "trust-node"
	FlagAddress   = "address"
)

Variables

This section is empty.

Functions

func BufferStdin

func BufferStdin() *bufio.Reader

Allows for reading prompts for stdin

func BuildMsg

func BuildMsg(inaddr1, inaddr2, addr1, addr2 common.Address, position1, position2 types.Position, confirmSigs1, confirmSigs2 [2]types.Signature, amount1, amount2, fee uint64) types.SpendMsg

Build SpendMsg

func GetCheckPassword

func GetCheckPassword(prompt, prompt2 string, buf *bufio.Reader) (string, error)

Prompts for a password twice to verify they match

func GetKeyStore

func GetKeyStore(dir string) *keystore.KeyStore

initialize a keystore in the specified directory

func GetPassword

func GetPassword(prompt string, buf *bufio.Reader) (pass string, err error)

Prompts for a password one-time Enforces minimum password length

func ParseAmounts

func ParseAmounts(amtStr string) (amount [3]uint64, err error)

Amounts will default to 0 if not provided

func ParsePositions

func ParsePositions(posStr string) (position [2]types.Position, err error)

value in a position defaults to 0 if not provided

func StrToAddress

func StrToAddress(addrStr string) (common.Address, error)

Convert string to Ethereum Address

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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