client

package
v0.0.0-...-da22cf9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 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(inaddr0, inaddr1, addr0, addr1 common.Address, position0, position1 types.PlasmaPosition, amount0, amount1 uint64) types.SpendMsg

Build SpendMsg

func GetCheckPassword

func GetCheckPassword(prompt, prompt1 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 [2]uint64, err error)

Amounts will default to 0 if not provided

func ParsePositions

func ParsePositions(posStr string) (position [2]types.PlasmaPosition, 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
cmd

Jump to

Keyboard shortcuts

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