Documentation ¶
Index ¶
- Constants
- func BufferStdin() *bufio.Reader
- func BuildMsg(inaddr0, inaddr1, addr0, addr1 common.Address, ...) types.SpendMsg
- func GetCheckPassword(prompt, prompt1 string, buf *bufio.Reader) (string, error)
- func GetKeyStore(dir string) *keystore.KeyStore
- func GetPassword(prompt string, buf *bufio.Reader) (pass string, err error)
- func ParseAmounts(amtStr string) (amount [2]uint64, err error)
- func ParsePositions(posStr string) (position [2]types.PlasmaPosition, err error)
- func StrToAddress(addrStr string) (common.Address, error)
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 BuildMsg ¶
func BuildMsg(inaddr0, inaddr1, addr0, addr1 common.Address, position0, position1 types.PlasmaPosition, amount0, amount1 uint64) types.SpendMsg
Build SpendMsg
func GetCheckPassword ¶
Prompts for a password twice to verify they match
func GetKeyStore ¶
initialize a keystore in the specified directory
func GetPassword ¶
Prompts for a password one-time Enforces minimum password length
func ParseAmounts ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.