Documentation ¶
Index ¶
- Constants
- func BufferStdin() *bufio.Reader
- func BuildMsg(inaddr1, inaddr2, addr1, addr2 common.Address, ...) types.SpendMsg
- func GetCheckPassword(prompt, prompt2 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 [3]uint64, err error)
- func ParsePositions(posStr string) (position [2]types.Position, 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(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 ¶
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 ¶
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.