helper

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

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

	// Flags
	FlagHomeDir  = "home"
	FlagVerbose  = "verbose"
	FlagNode     = "node"
	FlagAddress  = "address"
	FlagPassword = "password"
)

Variables

This section is empty.

Functions

func BufferStdin

func BufferStdin() *bufio.Reader

Allows for reading prompts for stdin

func GetCheckPassword

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

Prompts for a password twice to verify they match

func GetKVProofInfo added in v0.4.0

func GetKVProofInfo(cli rpclient.Client, contractAddr common.Address, height int64, key, value cmn.HexBytes) (*proof.KVProofInfo, error)

GetKVProofInfo returns a proof of specified key-value pair existence

func GetPassword

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

Prompts for a password one-time Enforces minimum password length

func ParseAddrs

func ParseAddrs(addrsStr string) ([]common.Address, error)

func StrToAddress

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

Convert string to Ethereum Address

Types

This section is empty.

Jump to

Keyboard shortcuts

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